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

Fix #344 Allow empty string for bump method #365

Merged
merged 1 commit into from
Mar 5, 2023

Conversation

tomschr
Copy link
Member

@tomschr tomschr commented Oct 8, 2022

The methods .bump_prerelease('') and .bump_build('') generates a prerelease and build part without the token.

@tomschr tomschr added Release_3.x.y Only for the major release 3 Enhancement Not a bug, but increases or improves in value, quality, desirability, or attractiveness labels Oct 8, 2022
@tomschr tomschr self-assigned this Oct 8, 2022
@tomschr tomschr force-pushed the feature/344-prerelease-build branch 2 times, most recently from 6e8231c to 4b30940 Compare December 21, 2022 13:09
OidaTiftla pushed a commit to OidaTiftla/python-semver that referenced this pull request Feb 9, 2023
* Improve pyproject.toml
  * Use setuptools
  * Add metadata
  * Taken approach from
    https://godatadriven.com/blog/a-practical-guide-to-setuptools-and-pyproject-toml/

* Doc: Describe building of semver

* Correct small glitches
  * Remove .travis.yml in MANIFEST.in (not needed anymore)
  * Distinguish between Python3.6 and others in tox.ini
  * Add skip_missing_interpreters option for tox.ini

* Add changelog entry

* GH Action:
  * Upgrade setuptools and setuptools-scm
  * Also test against 3.11.0-rc.2
OidaTiftla pushed a commit to OidaTiftla/python-semver that referenced this pull request Feb 9, 2023
@tomschr tomschr force-pushed the feature/344-prerelease-build branch 2 times, most recently from c5e732b to f7cbf24 Compare March 5, 2023 08:53
@tomschr tomschr marked this pull request as ready for review March 5, 2023 08:59
@tomschr tomschr force-pushed the feature/344-prerelease-build branch 2 times, most recently from cecbe8a to b1a01cd Compare March 5, 2023 09:06
The methods .bump_prerelease() and .bump_build() allow now
different types for the token argument:

* A string. This was already allowed and default was "rc".
  If the string is empty, we get only the raised number (without
  the "rc" part). The number starts from 1.
* None. Is the same as calling the method without any argument.
@tomschr tomschr force-pushed the feature/344-prerelease-build branch from b1a01cd to f8a182f Compare March 5, 2023 09:10
@tomschr tomschr merged commit a2a6169 into python-semver:master Mar 5, 2023
@tomschr tomschr deleted the feature/344-prerelease-build branch March 5, 2023 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Not a bug, but increases or improves in value, quality, desirability, or attractiveness Release_3.x.y Only for the major release 3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant