Skip to content

Conversation

@fnesveda
Copy link
Member

I've set up publishing of this package to PyPI via GitHub Actions. It works similarly as the publishing of apify-client-js to NPM:

  • the package version is single-sourced from src/apify_client/_version.py
  • on a commit to master, a new beta release is created and published to PyPI, automatically appending a beta number to the version, incrementing the beta number from the last published beta release for the current version
  • when a new GitHub Release is created, a new stable version is published to PyPI
  • if a version same as in src/apify_client/_version.py was already published, the publication fails
  • if CHANGELOG.md was not updated for the published version, the publication fails

It's pretty hard to test this properly live without polluting the PyPI listing for this package, but I've tested and debugged this exact same release process on TestPyPI with a dummy package in a private repo, and everything worked fine, so I'm reasonably confident this will work too.

@fnesveda fnesveda added enhancement New feature or request. capitalized Capitalizable work. labels May 13, 2021
@fnesveda fnesveda self-assigned this May 13, 2021
Copy link
Member

@mnmkng mnmkng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow looks good to me 👍

@mtrunkat mtrunkat requested review from dragonraid and removed request for mtrunkat May 17, 2021 14:10
@fnesveda fnesveda merged commit b00b2e5 into master May 17, 2021
@fnesveda fnesveda deleted the feature/publish-via-github-actions branch May 17, 2021 14:44
@mtrunkat mtrunkat added capitalized Capitalizable work. and removed capitalized Capitalizable work. labels Feb 14, 2023
@fnesveda fnesveda added the validated Issues that are resolved and their solutions fulfill the acceptance criteria. label May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capitalized Capitalizable work. enhancement New feature or request. validated Issues that are resolved and their solutions fulfill the acceptance criteria.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants