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

Request for Information: Pypi publications steps for this plugin. #3

Open
duttonw opened this issue Oct 14, 2024 · 2 comments
Open

Comments

@duttonw
Copy link

duttonw commented Oct 14, 2024

Hi @smotornyuk

I'm one of my maintainers of data.qld.gov.au publications.qld.gov.au ckan instances. Which is deployed by https://github.com/qld-gov-au/ckan-qld-infrastructure/ .

I'm wondering if you can provide commands you run to deploy this plugin repo to pypi as you have been keeping it quite up to date in last last couple of years.

The reason i'm asking is that I'm looking for a general standardized approach that people use on packaging and deployed to pypi.

If you can you provide your steps (without creds etc) that you follow it would be great since with that I may be able to contribute a fully automated github action workflow for you based on it.

Also just a heads up, my area will be contributing features into your product to handle logout correctly for SSO users. You can get a sneak peak at master...qld-gov-au:ckanext-oidc-pkce:develop

Regards,

@duttonw

smotornyuk pushed a commit that referenced this issue Oct 14, 2024
[QOLSVC-5478] add flash message if account isn't found
@smotornyuk
Copy link
Member

Yes, sure.
I'm using conventional commit messages and compile them into CHANGELOG.md using git-changelog. That's why my standard release workflow looks like:

  1. Update version of the package inside setup.cfg or whatever place keeps the version
  2. Build changelog via git changelog -c conventional -o CHANGELOG.md -B <NEW.VERSION.NUMBER>
  3. commit changes with chore: update changelog/bump version message.
  4. build the package via python -m build
  5. Upload the package to PyPI via twine upload dist/*. I'm using ~/.pypirc config so credentials are not specified in CLI
  6. Remove dist folder

@duttonw
Copy link
Author

duttonw commented Oct 16, 2024

Hi @smotornyuk ,

Thanks for the bootstrap on deployment.

You can have a look at a crude auto deployment using github provide oidc auth.

https://github.com/ckan/ckanext-xloader/blob/master/.github/workflows/publish.yml#L96

pypi config you can see here: ckan/ckanext-xloader#214 (comment)
and GitHub environment setup (so you can restrict who can deploy) ckan/ckanext-xloader#214 (comment)

I'm still working on major improvements and it does require a 'Service Account bot' for proper 'bump' commit deployments via github actions.

ckan/ckanext-xloader#229

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