Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ updates:
schedule:
# Check for updates once a week
interval: 'weekly'
groups:
actions:
patterns:
- "*"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v5
- uses: conda-incubator/setup-miniconda@v3
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 100
target-version = ['py38']
target-version = ['py39']
skip-string-normalization = true

[tool.check-manifest]
Expand Down
6 changes: 3 additions & 3 deletions pythia_datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env python3
# flake8: noqa
"""Top-level module for pythia-datasets ."""
from pkg_resources import DistributionNotFound, get_distribution
from importlib.metadata import version as _version

from .datasets import DATASETS, locate

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound: # pragma: no cover
__version__ = _version(__name__)
except Exception: # pragma: no cover
# package is not installed
__version__ = 'unknown' # pragma: no cover
6 changes: 4 additions & 2 deletions pythia_datasets/datasets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pkg_resources
from importlib.resources import files

import pooch

DATASETS = pooch.create(
Expand All @@ -7,7 +8,8 @@
env='PYTHIA_DATASETS_DIR',
)

with pkg_resources.resource_stream('pythia_datasets', 'registry.txt') as registry_file:
ref = files('pythia_datasets').joinpath('registry.txt')
with ref.open('rb') as registry_file:
DATASETS.load_registry(registry_file)


Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extend-ignore = E203,E501,E402,W605

[isort]
known_first_party=pythia_datasets
known_third_party=pkg_resources,pooch,setuptools
known_third_party=pooch,setuptools
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@
setup(
maintainer='Project Pythia Team',
maintainer_email='',
python_requires='>=3.7',
python_requires='>=3.9',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'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',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Scientific/Engineering',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
Expand Down
Loading