Skip to content

Commit

Permalink
Merge pull request #30 from Becksteinlab/py312
Browse files Browse the repository at this point in the history
add testing for Python 3.12 and update Dev Status
  • Loading branch information
orbeckst authored Jun 14, 2024
2 parents 85d0ece + fc4a31f commit 7ffbef1
Show file tree
Hide file tree
Showing 11 changed files with 1,128 additions and 493 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,18 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
python-version: ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
exclude:
- os: macOS-latest
python-version: "3.7"
- os: macOS-latest
python-version: "3.8"
- os: macOS-latest
python-version: "3.9"
- os: macOS-latest
python-version: "3.10"
- os: macOS-latest
python-version: "3.11"
- os: windows-latest
python-version: "3.7"
- os: windows-latest
python-version: "3.8"
- os: windows-latest
python-version: "3.9"
- os: windows-latest
python-version: "3.10"
- os: windows-latest
python-version: "3.11"

Expand Down Expand Up @@ -76,5 +72,6 @@ jobs:
uses: codecov/codecov-action@v3
with:
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: false
25 changes: 14 additions & 11 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
# .readthedocs.yaml
# numkit .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
build:
os: "ubuntu-22.04"
tools:
python: "mambaforge-22.9"

sphinx:
configuration: docs/source/conf.py
fail_on_warning: false
configuration: docs/source/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optionally build your docs in additional formats such as PDF
formats:
- pdf

# Optionally set the version of Python and requirements required to build your docs
# install package
python:
version: "3"
install:
- requirements: docs/requirements.txt
- method: pip
path: .
system_packages: True

conda:
environment: ci/readthedocs/environment.yml
8 changes: 8 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
CHANGELOG for numkit
======================

2024-??-?? 1.3.0
orbeckst

* added support/testing for Python 3.12
* dropped support for Python 2.7 (ye served us well, RIP),
and dropped support for Python 3.7 & 3.8


2023-03-13 1.2.3
orbeckst

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ https://github.com/Becksteinlab/numkit ::
Python 2/3
==========

Python 2.7 is still supported. Python 3 support for releases 3.7 - 3.11
Python 2.7 is still supported. Python 3 support for releases 3.7 - 3.12
is tested.


Expand Down
10 changes: 10 additions & 0 deletions ci/readthedocs/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: numkit
channels:
- conda-forge
- defaults
dependencies:
- python=3.11
- numpy>=1.0
- scipy
- six
- sphinx_rtd_theme
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
'Source': 'https://github.com/Becksteinlab/numkit',
},
classifiers=[
'Development Status :: 4 - Beta',
'Development Status :: 6 - Mature',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
Expand All @@ -38,6 +38,7 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Libraries :: Python Modules',
],
Expand Down
5 changes: 2 additions & 3 deletions src/numkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,5 @@
class LowAccuracyWarning(Warning):
"""Warns that results may possibly have low accuracy."""

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from . import _version
__version__ = _version.get_versions()['version']
Loading

0 comments on commit 7ffbef1

Please sign in to comment.