Skip to content

Commit 24ad600

Browse files
mylibrarSuqi Sun
andauthored
Increment minor version for release (#763)
* Increment minor version * Update workflow and add version checking Co-authored-by: Suqi Sun <[email protected]>
1 parent cc2e63f commit 24ad600

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
cd forte-wrappers
109109
for d in ${{ matrix.notebook-details.dep }}; do pip install "src/"$d; done
110110
cd ..
111+
pip install --use-feature=in-tree-build --progress-bar off .[data_aug,ir,remote,audio_ext,stave,models,test,wikipedia,nlp,extractor]
111112
coverage run -m pytest tests/forte/notebooks
112113
fi
113114
test_backbone:

forte/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
_MAJOR = "0"
16-
_MINOR = "1"
17-
_REVISION = "2"
16+
_MINOR = "2"
17+
_REVISION = "0"
1818

1919
VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR)
2020
VERSION = "{0}.{1}.{2}".format(_MAJOR, _MINOR, _REVISION)

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,21 @@
99
if sys.version_info < (3, 6):
1010
sys.exit("Python>=3.6 is required by Forte.")
1111

12+
VERSION_VAR = "VERSION"
1213
version = {}
1314
with open(
1415
os.path.join(os.path.dirname(os.path.abspath(__file__)), "forte/version.py")
1516
) as fp:
1617
exec(fp.read(), version)
18+
if VERSION_VAR not in version or not version[VERSION_VAR]:
19+
raise ValueError(
20+
f"Cannot find {VERSION_VAR} in forte/version.py. Please make sure that "
21+
f"{VERSION_VAR} is correctly defined and formatted in forte/version.py."
22+
)
1723

1824
setuptools.setup(
1925
name="forte",
20-
version=version["VERSION"],
26+
version=version[VERSION_VAR],
2127
url="https://github.com/asyml/forte",
2228
description="Forte is extensible framework for building composable and "
2329
"modularized NLP workflows.",

0 commit comments

Comments
 (0)