Hello Twisted devs! I wanted to give everyone a heads-up that there's an
open pull request <https://github.com/twisted/twisted/pull/11656> to update
the way the project is packaged. The main changes are:

1. metadata is now defined in a `pyproject.toml` file as specified by PEP
621 <https://peps.python.org/pep-0621/>/PEP 631
<https://peps.python.org/pep-0631/>
2. the `.whl` and `.tar.gz` artifacts are built by default in an isolated
manner as specified by PEP 517 <https://peps.python.org/pep-0517/>/PEP 660
<https://peps.python.org/pep-0660/>, now using Hatchling rather than
setuptools
3. names of optional dependency groups that contain underscores rather than
hyphens are deprecated as informed by PEP 685
<https://peps.python.org/pep-0685/>
4. the interpolation
<https://docs.python.org/3/library/configparser.html#interpolation-of-values>
INI feature used to keep optional dependencies DRY is replaced by
self-referential dependency definitions

While that seems like a lot, I think the impact will be minimal. 1 is a
subset of 2 so we'll ignore that, and for 3 I added a feature
<https://hatch.pypa.io/latest/config/metadata/#allowing-ambiguous-features>
to Hatchling to get us through the deprecation period so let's also ignore
that and only focus on 2 & 4 which require certain versions of pip.

pip gained support for PEP 517 in v19.0
<https://pip.pypa.io/en/stable/news/#v19-0> which was released on
2019-01-22 and has supported self-referential dependency definitions since
v21.2 <https://pip.pypa.io/en/stable/news/#v21-2> which was released on
2021-07-24.

My notion of things is that old distros and other situations where pip is
outdated will also be using old versions of Twisted, and newer setups will
either have a recent version of pip or follow best practices and use
virtualenv for managing apps which populates the virtual environments with
new versions of pip.

I'm curious to hear others' thoughts on this and any feedback from trying
out the actual branch!
_______________________________________________
Twisted mailing list -- twisted@python.org
To unsubscribe send an email to twisted-le...@python.org
https://mail.python.org/mailman3/lists/twisted.python.org/
Message archived at 
https://mail.python.org/archives/list/twisted@python.org/message/CCDCU4R2VLJEPENPGBJLRJL3IMRXVEYT/
Code of Conduct: https://twisted.org/conduct

Reply via email to