Skip to content

Commit

Permalink
Drop py3.7 support, change CI. (#132)
Browse files Browse the repository at this point in the history
* Drop py3.7 support, change CI.

* -protobuf version fix.

* - code formatting.

* - numpy version fix.
  • Loading branch information
devrimcavusoglu authored Oct 8, 2023
1 parent af55763 commit 992cf91
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.7, 3.8, 3.9]
python-version: [3.8, 3.9, '3.10', '3.11']
fail-fast: false

steps:
Expand Down
2 changes: 1 addition & 1 deletion jury/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from jury.core import Jury
from jury.metrics import AutoMetric, list_metrics, load_metric

__version__ = "2.2.4"
__version__ = "2.3-rc.1"
21 changes: 8 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,26 @@ def add_pywin(reqs: List[str]) -> None:
"black==21.7b0",
"deepdiff==5.5.0",
"flake8==3.9.2",
'importlib-metadata>=1.1.0,<4.3;python_version<"3.8"',
"isort==5.9.2",
"pytest>=7.0.1",
"pytest-cov>=3.0.0",
"pytest-timeout>=2.1.0",
]

_PRISM_REQUIREMENTS = [
"fairseq==0.9.0",
'numpy>=1.23,<1.24;python_version>="3.8"',
'numpy==1.21.6;python_version<"3.8"',
]
_PRISM_REQUIREMENTS = ["fairseq==0.9.0", "numpy>=1.23,<1.24"]

_METRIC_REQUIREMENTS = [
"sacrebleu>=2.0.0",
"bert_score==0.3.11",
"jiwer>=2.3.0",
"seqeval==1.2.2",
"sentencepiece==0.1.96",
'unbabel-comet>=1.1.2,<2;python_version<"3.8"',
'unbabel-comet>=2.0,<2.1;python_version>="3.8"',
"protobuf<3.20.1",
"sentencepiece>=0.1.99,<0.2",
"unbabel-comet==2.0.1",
"protobuf>=3.20.3,<3.21",
]

_METRIC_REQUIREMENTS.extend(_PRISM_REQUIREMENTS)
add_pywin(_METRIC_REQUIREMENTS)
# add_pywin(_METRIC_REQUIREMENTS)

extras = {
"prism": _PRISM_REQUIREMENTS,
Expand All @@ -82,7 +76,7 @@ def add_pywin(reqs: List[str]) -> None:
long_description_content_type="text/markdown",
url="https://github.com/obss/jury",
packages=setuptools.find_packages(exclude=["tests"]),
python_requires=">=3.7",
python_requires=">=3.8",
install_requires=get_requirements(),
extras_require=extras,
include_package_data=True,
Expand All @@ -97,9 +91,10 @@ def add_pywin(reqs: List[str]) -> None:
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Education",
Expand Down

0 comments on commit 992cf91

Please sign in to comment.