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

Publish on PyPI #343

Closed
mrrezaie opened this issue Oct 11, 2024 · 4 comments
Closed

Publish on PyPI #343

mrrezaie opened this issue Oct 11, 2024 · 4 comments

Comments

@mrrezaie
Copy link
Contributor

mrrezaie commented Oct 11, 2024

Hi @pariterre, I understand that publishing ezc3d to PyPI might be challenging and not have been a priority for you. However, it would be incredibly beneficial for many users, including myself.
Some are only permitted to work with official Python.

I believe the GitHub Actions could build and publish it on PyPI with minimal effort. Here is a tutorial: https://medium.com/@blackary/publishing-a-python-package-from-github-to-pypi-in-2024-a6fb8635d45d

Or, even a workflow to upload the Python binaries in Releases or Artifacts would be great as well.

Thank you in advance for your time and effort.

@mrrezaie
Copy link
Contributor Author

Hi, I found the solution; I could build ezc3d using GitHub Actions. The workflow clones ezc3d, builds it for Windows and Python 3.12, creates wheel file, and uploads it in artifacts: https://github.com/mrrezaie/testBuildEZC3D/blob/main/.github/workflows/build_ezc3d.yml

Then, the pip could install the ezc3d through the wheel file. The wheel file can also be published on PyPI for any Python user (please check the link in the previous comment).

Hope this helps.

@pariterre
Copy link
Member

Sweet! I won't have time to implement this before the week after the next, but I come back to this beginning of November!
Thanks for searching this :)

@pariterre
Copy link
Member

Dear @mrrezaie

That was quite a journey... but as of today, ezc3d can be installed using pip :)

So either :

pip install .

from the root folder or

pip install ezc3d

Enjoy!

@mrrezaie
Copy link
Contributor Author

🙏🙏🙏

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

No branches or pull requests

2 participants