Skip to content

Commit

Permalink
Made pre-release version specification comply with PEP 440,
Browse files Browse the repository at this point in the history
setting current version to 1.0.0b1
  • Loading branch information
opcode81 committed Sep 5, 2023
1 parent c6f76f0 commit c40c660
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[bumpversion]
current_version = 1.0.0.alpha1
current_version = 1.0.0b1
commit = False
tag = False
allow_dirty = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<build>\d+))?
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<build>\d+))?
serialize =
{major}.{minor}.{patch}.{release}{build}
{major}.{minor}.{patch}{release}{build}
{major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = final
first_value = alpha
first_value = b
values =
alpha
b
final

[bumpversion:part:build]
Expand Down
8 changes: 4 additions & 4 deletions README-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ Results will be stored in `docs/build/`.

2. Bump the version that the new release shall change by using one of the following commands:

* `bumpversion patch --commit`
* `bumpversion patch --commit`
* `bumpversion minor --commit`
* `bumpversion major --commit`

This will create a new "-alpha" version which can be pushed without a release ending up on PyPI.
This will create a new beta version.

If you want to release an alpha version, you may change the build number via `bumpversion build --commit`.
If you intend to release a beta version, you may change the build number via `bumpversion build --commit`.

3. Push this version to github
`git push`
Expand All @@ -84,7 +84,7 @@ Results will be stored in `docs/build/`.
* Set the release version and add the respective git tag:
`bumpversion release --commit --tag`

(unless you want to publish the alpha version, in which case you need create the git tag manually.)
(unless you want to publish a beta version, in which case you need to skip this command and instead create the git tag manually.)

* Push the new release:
* `git push`
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def relaxed_requirements_from_file(path):
url="https://github.com/jambit/sensAI",
packages=find_namespace_packages(where="src"),
include_package_data=True,
version='1.0.0.alpha1',
version='1.0.0b1',
description='Library for sensible AI',
install_requires=relaxed_requirements_from_file("requirements.txt"),
dependency_links=["https://download.pytorch.org/whl/torch_stable.html"],
Expand Down
2 changes: 1 addition & 1 deletion src/sensai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
TensorToTensorClassificationModel, TensorToScalarClassificationModel
from .vector_model import VectorModelBase, VectorModel, VectorRegressionModel, VectorClassificationModel

__version__ = "1.0.0.alpha1"
__version__ = "1.0.0b1"

# The following submodules are not imported by default to avoid necessarily requiring their dependencies:
# tensorflow
Expand Down

0 comments on commit c40c660

Please sign in to comment.