Skip to content

Conversation

@abravalheri
Copy link
Contributor

@abravalheri abravalheri commented Apr 24, 2023

Summary of changes

  • Extract the logic for writing requires.txt from the egg_info module into _requirestxt.py.
  • Extract egg_info-specific processing of requirements from dist.py to _requitestxt.py.
  • Avoid direct modifications of install_requires and extra_requires.
    Instead only process them on demand, when the requires.txt file is needed for creating .egg-info directories.

This ensures dist.install_requires and dist.extra_requires remains compatible with core metadata and allow future changes to generate Requires-Dist in METADATA files (which are not compatible with requires.txt).


This is part of a series of PRs:

The motivation for this series of PRs is the following:


Pull Request Checklist

@abravalheri abravalheri force-pushed the dev/egg_info_requires branch from 64f35f0 to 0d6503b Compare August 23, 2023 12:35
This change extracts the logic for writing 'requires.txt' from
the ``egg_info`` module into ``_requirestxt``.

It also adds the missing pre-processing for ``install_requires`` and
``extras_require`` previously done in ``dist`` but now implemented in
``_requires.txt``.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant