Skip to content

Bump version to 2.0.4 and make constants.py the single source of truth - #222

Open
Saegl wants to merge 1 commit into
mailersend:mainfrom
Saegl:fix/version-bump-2.0.4
Open

Bump version to 2.0.4 and make constants.py the single source of truth#222
Saegl wants to merge 1 commit into
mailersend:mainfrom
Saegl:fix/version-bump-2.0.4

Conversation

@Saegl

@Saegl Saegl commented Aug 4, 2026

Copy link
Copy Markdown

The project currently has version drift:

  • __init__.py reports version 2.0.0.
  • constants.py and pyproject.toml report version 2.0.3.
  • GitHub Releases already contains a 2.0.4 release.

This mismatch caused the PyPI publishing workflow to fail:

https://github.com/mailersend/mailersend-python/actions/runs/29732208568/job/88319075241

This PR makes the version in constants.py the single source of truth:

  • __init__.py now imports the version from constants.py.
  • pyproject.toml now uses dynamic = ["version"].

More information about this approach:

Follow-up required

Merging this PR alone will not fix the existing PyPI release. A maintainer will also need to update the Git tag and rerun the build-n-publish workflow:

git tag -f v2.0.4 <bump-commit-sha>
git push --force origin v2.0.4

Alternatively, a new v2.0.5 release can be created if force-updating the existing tag is not desirable.

@Saegl
Saegl force-pushed the fix/version-bump-2.0.4 branch from f5b9b60 to 1f1a5dc Compare August 4, 2026 20:48
@hfbmb

hfbmb commented Aug 10, 2026

Copy link
Copy Markdown

@igorhrcek Could you please take a look at this issue? This problem is currently preventing MailerSend Async v2.0.4 from being released to PyPI.

Please fix the issue and release a new version to PyPI once the fix is in place. It would be great to get this resolved so we can proceed with the updated release. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants