Hasan Iqbal
commited on
Commit
•
12cfa80
1
Parent(s):
3780e1f
Add pypi library support to hf pre-req
Browse files- .bumpversion.cfg +3 -1
- pre-requirements.txt +2 -1
- scripts/release.sh +4 -2
.bumpversion.cfg
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
[bumpversion]
|
2 |
-
current_version =
|
3 |
|
4 |
[bumpversion:file:pyproject.toml]
|
5 |
|
6 |
[bumpversion:file:src/openfactcheck/__init__.py]
|
|
|
|
|
|
1 |
[bumpversion]
|
2 |
+
current_version = 0.0.17
|
3 |
|
4 |
[bumpversion:file:pyproject.toml]
|
5 |
|
6 |
[bumpversion:file:src/openfactcheck/__init__.py]
|
7 |
+
|
8 |
+
[bumpversion:file:pre-requirements.txt]
|
pre-requirements.txt
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
|
|
|
|
1 |
+
# This file is used to install the library in Hugging Face Spaces before running the pipeline
|
2 |
+
openfactcheck==0.0.17
|
scripts/release.sh
CHANGED
@@ -32,6 +32,7 @@ confirmation()
|
|
32 |
}
|
33 |
|
34 |
VERSION=$1
|
|
|
35 |
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
36 |
|
37 |
# Require valid format for version
|
@@ -102,12 +103,13 @@ echo
|
|
102 |
|
103 |
# Modify the VERSION file
|
104 |
printf "$VERSION" > ./VERSION
|
105 |
-
bump2version patch --new-version $
|
106 |
|
107 |
# Commit and tag the release
|
108 |
git add ./VERSION
|
109 |
-
git add
|
110 |
git add ./pyproject.toml
|
|
|
111 |
git add ./src/openfactcheck/__init__.py
|
112 |
git commit -m "🚀 $MESSAGE"
|
113 |
git tag $VERSION
|
|
|
32 |
}
|
33 |
|
34 |
VERSION=$1
|
35 |
+
VERSION_BUMP=${VERSION:1}
|
36 |
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
37 |
|
38 |
# Require valid format for version
|
|
|
103 |
|
104 |
# Modify the VERSION file
|
105 |
printf "$VERSION" > ./VERSION
|
106 |
+
bump2version patch --new-version $VERSION_BUMP --allow-dirty --verbose
|
107 |
|
108 |
# Commit and tag the release
|
109 |
git add ./VERSION
|
110 |
+
git add ./.bumpversion.cfg
|
111 |
git add ./pyproject.toml
|
112 |
+
git add ./pre-requirements.txt
|
113 |
git add ./src/openfactcheck/__init__.py
|
114 |
git commit -m "🚀 $MESSAGE"
|
115 |
git tag $VERSION
|