diff --git a/pyproject.toml b/pyproject.toml index 7c517943a41..e99df9d113b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,17 +25,6 @@ classifiers = [ keywords = ["CPAN PyPI distutils eggs package management"] requires-python = ">=3.8" dependencies = [ - "packaging>=24", - "ordered-set>=3.1.1", - "more_itertools>=8.8", - "jaraco.text>=3.7", - "importlib_resources>=5.10.2", - "importlib_metadata>=6", - "tomli>=2.0.1", - "wheel>=0.43.0", - - # pkg_resources - "platformdirs >= 2.6.2", ] [project.urls] @@ -107,6 +96,19 @@ doc = [ ] ssl = [] certs = [] +full = [ + "packaging>=24", + "ordered-set>=3.1.1", + "more_itertools>=8.8", + "jaraco.text>=3.7", + "importlib_resources>=5.10.2", + "importlib_metadata>=6", + "tomli>=2.0.1", + "wheel>=0.43.0", + + # pkg_resources + "platformdirs >= 2.6.2", +] [project.entry-points."distutils.commands"] alias = "setuptools.command.alias:alias" diff --git a/tools/vendored.py b/tools/vendored.py index 5f8a6c09067..84cf5a8f183 100644 --- a/tools/vendored.py +++ b/tools/vendored.py @@ -1,4 +1,5 @@ import functools +import re import sys import subprocess @@ -29,11 +30,18 @@ def metadata(): return jaraco.packaging.metadata.load('.') +def upgrade_full(dep): + """ + Remove 'extra == "full"' from any dependency. + """ + return re.sub('''(;| and) extra == ['"]full['"]''', '', dep) + + def load_deps(): """ - Read the dependencies from `.`. + Read the dependencies from `.[full]`. """ - return metadata().get_all('Requires-Dist') + return list(map(upgrade_full, metadata().get_all('Requires-Dist'))) def min_python():