Skip to content

Commit b17dcf9

Browse files
mirand863Fábio Malcher Miranda
andauthored
Add Python 3.13 support (#166)
* ci: add Python 3.13 support (metadata and CI) * build: make 'ray' dev extra conditional for Python <3.13 * fix: add requests to install_requires for tests * Make requests a requirement * test: ensure CI working dir exists in pyfakefs to avoid pytest-cov chdir error * test: ensure CI working dir exists via autouse fs fixture to prevent pyfakefs chdir errors * remover conftest.py * Update pyfakefs * Remove ray from requirements --------- Co-authored-by: Fábio Malcher Miranda <fabio.miranda@ifap.edu.br>
1 parent 44fbc62 commit b17dcf9

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/deploy-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- uses: actions/checkout@v1
31-
- name: Set up Python 3.12
31+
- name: Set up Python 3.13
3232
uses: actions/setup-python@v2
3333
with:
34-
python-version: 3.12
34+
python-version: 3.13
3535
- name: Install pypa/build
3636
run: |
3737
git fetch --tags

.github/workflows/test-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.10", "3.11", "3.12"]
18+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1919
os: [ubuntu-latest, macOS-latest, windows-latest]
2020
steps:
2121
- uses: actions/checkout@v2

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ exclude = **/__init__.py, docs/source/conf.py
1414
;file.py: error
1515

1616
[requires]
17-
python_version = ">=3.10,<3.13"
17+
python_version = ">=3.10,<3.14"
1818

1919
# See the docstring in versioneer.py for instructions. Note that you must
2020
# re-run 'versioneer.py setup' after changing this section, and commit the

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
URL_ISSUES = "https://github.com/scikit-learn-contrib/hiclass/issues"
2424
EMAIL = "fabio.malchermiranda@hpi.de, Niklas.Koehnecke@student.hpi.uni-potsdam.de"
2525
AUTHOR = "Fabio Malcher Miranda, Niklas Koehnecke"
26-
REQUIRES_PYTHON = ">=3.10,<3.13"
26+
REQUIRES_PYTHON = ">=3.10,<3.14"
2727
KEYWORDS = ["hierarchical classification"]
2828
DACS_SOFTWARE = "https://gitlab.com/dacs-hpi"
2929
# What packages are required for this module to be executed?
30-
REQUIRED = ["networkx", "numpy", "scikit-learn>=1.5", "scipy"]
30+
REQUIRED = ["networkx", "numpy", "scikit-learn>=1.5", "scipy", "requests"]
3131

3232
# What packages are optional?
3333
# 'fancy feature': ['django'],}
@@ -38,10 +38,10 @@
3838
"pytest",
3939
"pydocstyle",
4040
"pytest-cov==3.0.0",
41-
"pyfakefs==5.3.5",
41+
"pyfakefs==6.2.0",
4242
"black==26.3.0",
4343
"pre-commit==2.20.0",
44-
"ray",
44+
"ray; python_version < '3.13'",
4545
],
4646
}
4747

@@ -155,6 +155,7 @@ def run(self):
155155
"Programming Language :: Python :: 3.10",
156156
"Programming Language :: Python :: 3.11",
157157
"Programming Language :: Python :: 3.12",
158+
"Programming Language :: Python :: 3.13",
158159
"Programming Language :: Python :: Implementation :: CPython",
159160
"Programming Language :: Python :: Implementation :: PyPy",
160161
],

0 commit comments

Comments
 (0)