Skip to content

Commit

Permalink
Increment minor version for release (#763)
Browse files Browse the repository at this point in the history
* Increment minor version

* Update workflow and add version checking

Co-authored-by: Suqi Sun <[email protected]>
  • Loading branch information
mylibrar and Suqi Sun authored Apr 27, 2022
1 parent cc2e63f commit 24ad600
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
cd forte-wrappers
for d in ${{ matrix.notebook-details.dep }}; do pip install "src/"$d; done
cd ..
pip install --use-feature=in-tree-build --progress-bar off .[data_aug,ir,remote,audio_ext,stave,models,test,wikipedia,nlp,extractor]
coverage run -m pytest tests/forte/notebooks
fi
test_backbone:
Expand Down
4 changes: 2 additions & 2 deletions forte/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

_MAJOR = "0"
_MINOR = "1"
_REVISION = "2"
_MINOR = "2"
_REVISION = "0"

VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR)
VERSION = "{0}.{1}.{2}".format(_MAJOR, _MINOR, _REVISION)
Expand Down
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,21 @@
if sys.version_info < (3, 6):
sys.exit("Python>=3.6 is required by Forte.")

VERSION_VAR = "VERSION"
version = {}
with open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "forte/version.py")
) as fp:
exec(fp.read(), version)
if VERSION_VAR not in version or not version[VERSION_VAR]:
raise ValueError(
f"Cannot find {VERSION_VAR} in forte/version.py. Please make sure that "
f"{VERSION_VAR} is correctly defined and formatted in forte/version.py."
)

setuptools.setup(
name="forte",
version=version["VERSION"],
version=version[VERSION_VAR],
url="https://github.com/asyml/forte",
description="Forte is extensible framework for building composable and "
"modularized NLP workflows.",
Expand Down

0 comments on commit 24ad600

Please sign in to comment.