Skip to content

Commit

Permalink
Merge pull request #362 from SNEWS2/JostMigenda/py3.13
Browse files Browse the repository at this point in the history
Support Python 3.13 (and drop 3.8)
  • Loading branch information
Sheshuk authored Oct 30, 2024
2 parents 25aecf2 + 4bee6ff commit 9fee180
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
matrix:
# Test all supported Python versions under Ubuntu
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
# Additionally, test one Python version under MacOS and Windows, to detect OS-specific issues
include:
- os: macos-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
matrix:
# Test all supported Python versions under Ubuntu
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
# Additionally, test one Python version under MacOS and Windows, to detect OS-specific issues
include:
- os: macos-latest
Expand Down
5 changes: 1 addition & 4 deletions python/snewpy/snowglobes_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@

import snowglobes_data
import sys
if sys.version_info >= (3, 9):
from importlib.resources import files
else:
from importlib_resources import files
from importlib.resources import files

def guess_material(detector):
if detector.startswith(('wc', 'ice', 'km3net')):
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ h5py
requests
pyyaml
snowglobes_data == 1.3.2
importlib_resources; python_version < "3.9"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# See https://setuptools.readthedocs.io/en/latest/userguide/entry_point.html
# setup_keywords['entry_points'] = {'console_scripts': ['to_snowglobes = snewpy.to_snowglobes:generate_time_series', ], },
setup_keywords['provides'] = [setup_keywords['name']]
setup_keywords['python_requires'] = '>=3.8'
setup_keywords['python_requires'] = '>=3.9'
setup_keywords['zip_safe'] = False
setup_keywords['packages'] = find_packages('python')
setup_keywords['package_dir'] = {'': 'python'}
Expand Down

0 comments on commit 9fee180

Please sign in to comment.