Skip to content

Switch to setuptools-scm, include tests in source tarball. #232

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

Merged
merged 5 commits into from
May 27, 2025

Conversation

rhpvorderman
Copy link
Collaborator

@rhpvorderman rhpvorderman commented May 27, 2025

Checklist

  • Pull request details were added to CHANGELOG.rst
  • Documentation was updated (if needed)

Fixes #231

@mgorny, does this fix your problems?

I managed to find the issue with setuptools-scm. Exclude-package-data works, but somehow something is cached in the build dir. Unless you delete it, there is no effect of your actions in pyproject.toml. Which leads to a lot of frustrations in the "why doesn't this setting work" category. I only found this on the THIRD attempt at using setuptools-scm.

Python packaging: slightly better than C packaging!

@mgorny
Copy link

mgorny commented May 27, 2025

Thanks! With this changes, the generated sdist works for us.

Could you make similar changes to zlib-ng too? I didn't want to file a separate issue before getting feedback on the first project.

@rhpvorderman
Copy link
Collaborator Author

Sure, I will add this to python-zlib-ng as well.

I cannot promise to make a release asap, but I will take a look at the bug that was discovered eventually, and then that will be the moment I release the new version.

@rhpvorderman rhpvorderman merged commit 993f529 into develop May 27, 2025
19 checks passed
@rhpvorderman rhpvorderman deleted the modernpackaging branch May 27, 2025 12:40
@mgorny
Copy link

mgorny commented May 27, 2025

Thanks! No hurry with the release, we've patched the issue for now. Having it solved in the next release is a major gain too.

@rhpvorderman
Copy link
Collaborator Author

Done. Now also fixed in python-zlib-ng.

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.

Please provide a source distribution with tests
2 participants