scapy/MANIFEST.in

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
65 B
Plaintext
Raw Permalink Normal View History

2008-08-25 17:34:43 +00:00
include MANIFEST.in
2019-01-11 08:28:16 +00:00
include LICENSE
include run_scapy
Support new build methods (#3958) * Build and check the wheel in the twine check as well It should help to make sure that scapy can be installed from PyPI (or any other package index) using pip and its sdist. The check switched to the "build" build frontend because it builds wheels from sdists by default: https://pypa-build.readthedocs.io/en/stable/#python--m-build * Remove README In 669506bd42e4141718374ba297974881fe125fb8 scapy switched to pyproject.toml where 'readme' is dynamic and should be supplied by setup.py. setup.py reads README.md and it works from inside the source tree but since README.md isn't included in the sdist it fails when pip or the build frontend builds the wheel from the sdist with: ``` distutils.errors.DistutilsOptionError: No configuration found for dynamic 'readme'. Some dynamic fields need to be specified via `tool.setuptools.dynamic` others must be specified via the equivalent attribute in `setup.py`. ``` This patch addresses that by removing README and letting setuptools include README.md to the sdist automatcially. README was added in 4f71027fcd in 2016 and back then it probably made sense because setuptools didn't include README.md in the sdist automatically. These days setuptools can handle README.md just fine so it's no longer necessary to keep README any more. It makes it possible to build the wheel from the sdist again. Fixes: ``` python3 -m build ... * Building wheel from sdist * Creating venv isolated environment... * Installing packages in isolated environment... (setuptools>=62.0.0) * Getting build dependencies for wheel... ... File "/tmp/build-env-vtaxy4xl/lib64/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 351, in _obtain_readme self._ensure_previously_set(dist, "readme") File "/tmp/build-env-vtaxy4xl/lib64/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 307, in _ensure_previously_set raise OptionError(msg) distutils.errors.DistutilsOptionError: No configuration found for dynamic 'readme'. Some dynamic fields need to be specified via `tool.setuptools.dynamic` others must be specified via the equivalent attribute in `setup.py`. ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel ``` and ``` python3 -m pip install dist/scapy-2.5.0.dev56.tar.gz Processing ./dist/scapy-2.5.0.dev56.tar.gz Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ... ``` It's a follow-up to 669506bd42e4141718374ba297974881fe125fb8 * Update doc: installation & build instructions * Make sure VERSION is also exported in wheels * Cleanup MANIFEST.in * Add packaging instructions * Add git archive unit test * Use %(describe:tags=True) * Update doc/scapy/installation.rst Co-authored-by: Evgeny Vereshchagin <evvers@ya.ru> --------- Co-authored-by: Evgeny Vereshchagin <evvers@ya.ru>
2023-04-11 16:21:11 +00:00
prune test