globus / globus-sdk-python

Globus SDK for Python
Apache License 2.0
68 stars 38 forks source link

Switch from `.in` files to `[dependency-groups]` #1089

Closed sirosen closed 1 month ago

sirosen commented 1 month ago

pip-tools does not yet support Dependency Groups, but it is in their tracker. Therefore, a small amount of shimming is needed to apply it here.

  1. Move the dependency groups from requirements/*.in files to [dependency-groups] in pyproject.toml
  2. Add a tox environment (freezedeps-print) which installs dependency-groups (the package) and uses it to print dependency groups to new .<name>.in files, hidden and gitignored
  3. Feed those files into pip-compile as before

Finally, run tox r -m freezedeps to confirm that the result works.


📚 Documentation preview 📚: https://globus-sdk-python--1089.org.readthedocs.build/en/1089/