Skip to content

Drop support for Python 3.9, move metadata to pyproject.toml#310

Open
dataflake wants to merge 2 commits intomasterfrom
config-with-pure-python-template-ba10c93f
Open

Drop support for Python 3.9, move metadata to pyproject.toml#310
dataflake wants to merge 2 commits intomasterfrom
config-with-pure-python-template-ba10c93f

Conversation

@dataflake
Copy link
Copy Markdown
Member

This PR does the following:

  • apply the latest zope.meta templates (tests were failing due to outdated configurations)
  • remove support for Python 3.9
  • move package metadata from setup.py to pyproject.toml

@dataflake dataflake requested review from icemac and loechel April 22, 2026 08:06
@dataflake dataflake self-assigned this Apr 22, 2026
@dataflake dataflake enabled auto-merge (squash) April 22, 2026 08:08
Copy link
Copy Markdown
Contributor

@perrinjerome perrinjerome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not have very good knowledge of the details of python 3.9 (I mean it would be good if somebody else could also review), but this looks good to me.

Comment thread src/RestrictedPython/transformer.py Outdated

else: # pragma: no cover
# Index, Slice and ExtSlice are only defined Slice types.
# Slice is the only defined Slice type.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I followed correctly, all this code became not used in 3.9 and new PEG parser. In 3.9 the names still existed but were already not used.

It seems fine to remove this code now it was probably even possible to remove when dropping python 3.8.

I just want to suggest updating the docstring, because this does not transform anything now.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually ended up removing the transformation altogether, it was obsolete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants