Skip to content

Commit

Permalink
Drop Python 3.7 and add Python 3.12 support
Browse files Browse the repository at this point in the history
- bump setuptools version needed for python 3.12;
- add setuptools to requirements to fix missing import of pkg_resources in python 3.12.
  • Loading branch information
mbaak committed Dec 23, 2023
1 parent 72c8918 commit 81d2257
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
platform: [windows-latest, macos-latest, ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

runs-on: ${{ matrix.platform }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ENVIRONMENT: MACOSX_DEPLOYMENT_TARGET=10.13
CIBW_BUILD: 'cp37-* cp38-* cp39-* cp310-* cp311-*'
CIBW_BUILD: 'cp38-* cp39-* cp310-* cp311-* cp312-*'
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: pytest {project}/tests/phik_python/test_phik.py
CIBW_ARCHS: "auto64"
Expand Down
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Release notes
=============

Version 0.12.4, Dec 2023
------------------------

- Drop support for Python 3.7, reached end of life.
- Add support for Python 3.12

Version 0.12.3, Dec 2022
------------------------

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Phi_K Correlation Analyzer Library
==================================

* Version: 0.12.3. Released: Dec 2022
* Version: 0.12.4. Released: Dec 2023
* Release notes: https://github.com/KaveIO/PhiK/blob/master/CHANGES.rst
* Repository: https://github.com/kaveio/phik
* Documentation: https://phik.readthedocs.io
Expand Down Expand Up @@ -47,7 +47,7 @@ calculate the Phi_K correlation matrix for a spark dataframe.
Check it out
============

The Phi_K library requires Python >= 3.7 and is pip friendly. To get started, simply do:
The Phi_K library requires Python >= 3.8 and is pip friendly. To get started, simply do:

.. code-block:: bash
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"setuptools>=68",
"wheel",
"scikit-build>=0.14.1",
"ninja; platform_system!='Windows'",
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

MAJOR = 0
REVISION = 12
PATCH = 3
PATCH = 4
DEV = False

# note: also update README.rst, CHANGES.rst
Expand All @@ -47,6 +47,7 @@
'pandas>=0.25.1',
'matplotlib>=2.2.3',
'joblib>=0.14.1',
'setuptools>=68',
]

EXTRA_REQUIREMENTS = {
Expand Down Expand Up @@ -98,7 +99,7 @@ def write_version_py(filename: str = 'phik/version.py') -> None:
'description': "Phi_K correlation analyzer library",
'long_description': long_description,
'long_description_content_type': "text/x-rst",
'python_requires': '>=3.7',
'python_requires': '>=3.8',
'packages': find_packages(exclude=EXCLUDE_PACKAGES),
# Setuptools requires that package data are located inside the package.
# This is a feature and not a bug, see
Expand Down

0 comments on commit 81d2257

Please sign in to comment.