twisted / twisted/twisted

sdist is missing dump_all_version_info.py

Open
#11,784 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
6k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
10

Description

Describe the incorrect behavior you saw
The tox.ini file as included in sdist at PyPI refers to dump_all_version_info.py, but dump_all_version_info.py is not included in the sdist. https://github.com/twisted/twisted/blob/twisted-22.10.0/tox.ini#L91

Describe how to cause this behavior

Any attempt to run tox fails with:

$(BLDDIR)/Twisted-22.10.0/.tox/lint/bin/python: can't open file '$(BLDDIR)/Twisted-22.10.0/admin/dump_all_version_info.py': [Errno 2] No such file or directory

Describe the correct behavior you'd like to see
Either the dump_all_version_info.py should be added to sdist, or tox.ini should not use it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tox.ini and admin/dump_all_version_info.py, then inspect how the source distribution is assembled. Build an sdist and verify that tox no longer fails because the script is missing; done when the packaged project either includes the script or no longer references it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.