-
Notifications
You must be signed in to change notification settings - Fork 623
Add Python project definition and pip smoke test #5040
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
base: master
Are you sure you want to change the base?
Conversation
e4f0b30 to
e7433da
Compare
|
So I'm open to this in general but I'm confused about how this, as it stands, would be used in practice. It seems like the pyproject.toml is not being installed anywhere, so how is the user expected to get it? Also while I'm not sure where |
|
I see multiple options here:
Regarding the position of the file in the repository: just tell me your preference, no fixed opinion on my side. |
|
I'll test moving this file to |
|
Moving If these lines are removed, moving the file is possible. |
This can be used to publish botan python bindings to PyPI. Signed-off-by: Markus Theil <[email protected]>
e7433da to
26a415c
Compare
|
@randombit moved to |
- Only run on Linux, as pip is already pre-installed there - Use clean venv and install botan to it from pyproject.toml - Run small smoke test: check version, check hash Signed-off-by: Markus Theil <[email protected]>
Signed-off-by: Markus Theil <[email protected]>
26a415c to
a091aaa
Compare
To make the issue close on merge, change the wording to |
This adds a python package definition for botan 3.9.0. The pyproject.toml can be removed later, as upstream support is pending, see: randombit/botan#5040. Co-authored-by: Acid Bong <[email protected]> Signed-off-by: Markus Theil <[email protected]>
|
I would be in favor of placing the [tool.black]
line-length = 120 |
This adds a python package definition for botan 3.9.0. The pyproject.toml can be removed later, as upstream support is pending, see: randombit/botan#5040. Co-authored-by: Acid Bong <[email protected]> Signed-off-by: Markus Theil <[email protected]>
|
@thillux @arckoor Do you think it would make sense to vendor a prebuilt If I understand the situation correctly, on Ubuntu I would otherwise have to |
|
For distribution via The lupa package has a similar usecase, and they include a prebuilt version in their wheel, so I think something like that would be the way to go here too? |
|
A PyPI package is helpful. For distributions, being able to use the system provided botan shared library instead of creating another copy is better. |
|
@reneme No hard opinion on the inclusion of botan as shared object. IMHO I'd prefer to get that from my Linux distribution outside of the pip package. |
|
This is really helpful. Makes packaging for Fedora much better: Have the pyproject.toml file at the top level is nice, but it is possible Rebased on current head of repository: Happy to add tooling to be able to publish to PyPI and produce wheels. |
|
This would help resolve #5103 |
Closes #5038.