-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add python packaging approaches #25
Comments
I've been working with the new PEP518 based project format for grantami-bomanalytics and openapi-common, and I've come across a few things that would be worth mentioning in this section: File: and Attr: directivesNew-style setup.cfg based projects have added limited support for statically extracting variables from other python files. This means that many of the existing ways to extract a version number into the package definition. For example, if the version number is a module level variable that is defined somewhere as a literal you can do: This extends to README files and LICENSE files for the setup.cfg Dependabot and setup.cfg requirementsDependabot is extremely helpful to automatically monitor package dependencies and suggest updates for security vulnerabilities, it supports a wide range of languages, including python. Unfortunately it does not currently support parsing the For the ToxAt the moment any tox configuration must be done as a string within the pyproject.toml file, this is a bit messy, and we are promised that there will be integration into setup.cfg soon. |
Just as a quick comment, the limitations of the |
Short summary regarding the If the module is importable during build time, the If it is not (for example, because import fails when some dependencies are not yet installed), there are two options:
|
This was implemented in PR #44 and enhanced in PR #69. Ideally, all build system backends should be compliant with PEP 621. This topic is discussed in the Build System section. Templates for setup.py and pyproject.toml have been provided too. |
Add some guidance or documentation about various approaches to python packaging that cover PEP517 and PEP518.
The text was updated successfully, but these errors were encountered: