-
Notifications
You must be signed in to change notification settings - Fork 2
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
Push first version to PyPi #266
Comments
So we indeed have to change the repo name to something different (e.g sed-processor), if we want that as our distribution name. scikit's repo and package name differ but their repo name and distribution name (pypi name) are the same: https://github.com/scikit-learn/scikit-learn and https://pypi.org/project/scikit-learn/ |
Saying this after also experiementing and reading at many places and I couldn't figure out a way. |
If I understand, we need to rename the github repo to, say, The internal folder can still be |
to double check, i locally made necessary changes and pushed to test pypi you can install by first setting up a new environment and then running
To answer your question, yes. I'd suggest you test it out too. |
Let me understand again: You can make a pypi package even without having a repository or github at all, no? So the requirement whould be to the name of the folder where you check the repository out to, no? This you can very easily change for the build process, without changing the repository name... |
The PyPi package isn't the problem but building is.
Now of course we can hack around in the workflow and change both dir name and name under tool.poetry only for building. But I find that really unintuitive. Would be confusing for future maintainers. |
I don't see a problem. I think you can just do
and change the name in the project file. Seems more simple to me than chaning the repository name. |
Ok I will try it out and inform how that goes |
Merge PR #277: Project Enhancements and Workflow Updates This pull request introduces several improvements to the project: 1. **Documentation Enhancements:** - Dependencies for documentation are now in a separate section in the toml file, ensuring they are not packaged for users. - Updated the documentation structure to prioritize README and tutorials. - Improved shields in the README for better visibility and accuracy. - Updated the license to reflect the current year. 2. **Workflow Updates:** - Renamed the documentation workflow for a more informative shield. - Modified the workflow to run on the main branch, ensuring it stays up-to-date. - Adjusted workflow dependencies to let other workflows complete before merging. 3. **Package Versioning:** - Implemented a workflow that runs a prerelease job on every push to the main branch and a release job on every tag push. - A publish to PyPI job is executed on every successful prerelease or release job. - If publish is successful, the version is updated in the pyproject.toml file and pushed to the main branch. These changes enhance the project's maintainability, versioning, and overall user experience. [Link to prerelease example run](https://github.com/OpenCOMPES/sed/actions/runs/6897868624) [Link to release example run](https://github.com/OpenCOMPES/sed/actions/runs/6898553103) [Link to this PR](#266)
For that, create a github workflow that does it when tagged, and depends on all other workflows passing.
The text was updated successfully, but these errors were encountered: