Hasan Iqbal
commited on
Commit
•
8f03820
1
Parent(s):
c344c74
Fixed bump2version versioning issue with pre-release
Browse files- .bumpversion.cfg +24 -0
- pre-requirements.txt +1 -1
- pyproject.toml +1 -1
- src/openfactcheck/__init__.py +1 -1
.bumpversion.cfg
CHANGED
@@ -1,8 +1,32 @@
|
|
1 |
[bumpversion]
|
2 |
current_version = 0.2.5-dev2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
[bumpversion:file:pyproject.toml]
|
|
|
|
|
5 |
|
6 |
[bumpversion:file:src/openfactcheck/__init__.py]
|
|
|
|
|
7 |
|
8 |
[bumpversion:file:pre-requirements.txt]
|
|
|
|
|
|
1 |
[bumpversion]
|
2 |
current_version = 0.2.5-dev2
|
3 |
+
parse = ^
|
4 |
+
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) # Major, minor, patch (X.Y.Z)
|
5 |
+
(?:\- # Separator
|
6 |
+
(?P<prerel>a|alpha|b|beta|d|dev|rc) # Prerelease (a, alpha, b, beta, d, dev, rc)
|
7 |
+
(?P<prerelversion>\d+))? # Prerelease version
|
8 |
+
serialize =
|
9 |
+
{major}.{minor}.{patch}-{prerel}{prerelversion}
|
10 |
+
{major}.{minor}.{patch}
|
11 |
+
|
12 |
+
[bumpversion:part:prerel]
|
13 |
+
values =
|
14 |
+
a
|
15 |
+
alpha
|
16 |
+
b
|
17 |
+
beta
|
18 |
+
d
|
19 |
+
dev
|
20 |
+
rc
|
21 |
|
22 |
[bumpversion:file:pyproject.toml]
|
23 |
+
search = version = "{current_version}"
|
24 |
+
replace = version = "{new_version}"
|
25 |
|
26 |
[bumpversion:file:src/openfactcheck/__init__.py]
|
27 |
+
search = __version__ = "{current_version}"
|
28 |
+
replace = __version__ = "{new_version}"
|
29 |
|
30 |
[bumpversion:file:pre-requirements.txt]
|
31 |
+
search = openfactcheck=={current_version}
|
32 |
+
replace = openfactcheck=={new_version}
|
pre-requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
# This file is used to install the library in Hugging Face Spaces before running the pipeline
|
2 |
-
openfactcheck==0.2.5
|
|
|
1 |
# This file is used to install the library in Hugging Face Spaces before running the pipeline
|
2 |
+
openfactcheck==0.2.5-dev2
|
pyproject.toml
CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4 |
|
5 |
[project]
|
6 |
name = "openfactcheck"
|
7 |
-
version = "0.2.5"
|
8 |
authors = [
|
9 |
{name = "Hasan Iqbal", email = "[email protected]"},
|
10 |
{name = "Yuxia Wang", email = "[email protected]"},
|
|
|
4 |
|
5 |
[project]
|
6 |
name = "openfactcheck"
|
7 |
+
version = "0.2.5-dev2"
|
8 |
authors = [
|
9 |
{name = "Hasan Iqbal", email = "[email protected]"},
|
10 |
{name = "Yuxia Wang", email = "[email protected]"},
|
src/openfactcheck/__init__.py
CHANGED
@@ -4,4 +4,4 @@ from .state import *
|
|
4 |
from .solver import *
|
5 |
|
6 |
# Version of the openfactcheck package
|
7 |
-
__version__ =
|
|
|
4 |
from .solver import *
|
5 |
|
6 |
# Version of the openfactcheck package
|
7 |
+
__version__ = "0.2.5-dev2"
|