Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port static configs to setup.cfg #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eli-schwartz
Copy link
Contributor

@eli-schwartz eli-schwartz commented Nov 29, 2024

This reverts commit 6b51403.

The commit never made sense. It deleted MANIFEST, but a couple years
later MANIFEST.in got added right back, which included the same files
MANIFEST did. And the commit added a data_files argument to setup.py
which was totally invalid -- it tried to install README.rst as
/usr/README.rst which was clearly wrong.

The original intention appears to have been to borrow the side effect of
data_files, and have the files appear in the sdist so setup.py could
read them, but it was the wrong way to do it.

Fixes: ikegami-yukino#28
setup.cfg can be freely mixed with setup.py and settings from both are
merged together. Using the cfg file, it is possible to encode most
metadata statically, and use a few powerful new tools in the process --
in particular, it is no longer necessary to regex the `__init__.py` file
for the version, since setuptools can natively extract the relevant
property (and yes, it does so without importing the module).
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.

README.rst and CHANGES.rst are installed in wrong location
1 participant