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

Feedback : Section 6 - Publishing Python Packages #21

Open
ns-rse opened this issue Jun 27, 2024 · 2 comments
Open

Feedback : Section 6 - Publishing Python Packages #21

ns-rse opened this issue Jun 27, 2024 · 2 comments

Comments

@ns-rse
Copy link

ns-rse commented Jun 27, 2024

The final challenge here lacks a clear solution where people can have a solid takeaway/reference to understand and refer back to.

The description is still fairly manual but there is the pypa/gh-action-pypi-publish that can be leveraged to make the task somewhat simpler.

I've used this in a couple of packages, you can see example in AFM-SPM/TopoStats. I have an additional set of project.optional-dependencies defined in pyproject.toml in the list pypi which are specifically installed prior to building the package...

[project.optional-dependencies]
...
pypi = [
  "build",
  "setuptools_scm[toml]",
  "wheel",
]

Also PyPI now supports Trusted Publishers which makes it really simple to configure GitHub/GitLab to publish packages.

@RicCampbell
Copy link

In the licensing section, would it be possible to change '..your selection of license may be influenced by the licenses of your dependencies.' to constrained please as it does have a direct impact on choice (or lack of) of licence. All very good though!

@f-allian
Copy link
Collaborator

The final challenge here lacks a clear solution where people can have a solid takeaway/reference to understand and refer back to.

The description is still fairly manual but there is the pypa/gh-action-pypi-publish that can be leveraged to make the task somewhat simpler.

I've used this in a couple of packages, you can see example in AFM-SPM/TopoStats. I have an additional set of project.optional-dependencies defined in pyproject.toml in the list pypi which are specifically installed prior to building the package...

[project.optional-dependencies]
...
pypi = [
  "build",
  "setuptools_scm[toml]",
  "wheel",
]

Also PyPI now supports Trusted Publishers which makes it really simple to configure GitHub/GitLab to publish packages.

@ns-rse thanks for this comment and apologies for the late reply, I must have missed it.

My thought process here was to first demonstrate the manual method of releasing packages before discussing automated workflows. Challenge 3 demos how to automate this. I think my solution was probably too manual, so I'll make it more interactive to rectify this.

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

3 participants