Skip to content

Commit

Permalink
Drop python 3.9 and loosen requirement of numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Jan 24, 2025
1 parent 242c8b2 commit fd21d4b
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pypi_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup python
uses: actions/[email protected]
with:
python-version: '3.9'
python-version: "3.10"

- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Publish a Python distribution to PyPI
# Do the publishing
# Might want to add but does not work on workflow_dispatch :
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
# if: github.event_name == "push" && startsWith(github.ref, "refs/tags")
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.token }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
strategy:
fail-fast: False
matrix:
python-version: [ "3.9", "3.10" ]
test: [ 'coveralls', 'pytest', 'pytest_no_database' ]
python-version: ["3.10", "3.11"]
test: ["coveralls", "pytest", "pytest_no_database"]
# Drop some not crucial tests for python 3.10 and 3.11
exclude:
- python-version: "3.11"
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
- name: patch utilix file
# Secrets and required files
# Patch this file if we want to have access to the database
if: matrix.test != 'pytest_no_database'
if: matrix.test != "pytest_no_database"
run: bash .github/scripts/create_readonly_utilix_config.sh
env:
# RunDB
Expand All @@ -92,24 +92,24 @@ jobs:
- name: Create pre-apply function file
# In case we do not have database. We need to make a local file for
# The pre_apply_function (see #559).
if: env.HAVE_ACCESS_TO_SECRETS == null || matrix.test == 'pytest_no_database'
if: env.HAVE_ACCESS_TO_SECRETS == null || matrix.test == "pytest_no_database"
run: bash .github/scripts/create_pre_apply_function.sh $HOME

- name: Test package
# This is running a normal test
if: (matrix.test == 'pytest_no_database' || matrix.test == 'pytest')
if: (matrix.test == "pytest_no_database" || matrix.test == "pytest")
env:
TEST_MONGO_URI: 'mongodb://localhost:27017/'
TEST_MONGO_URI: "mongodb://localhost:27017/"
run: |
coverage run --source=straxen -m pytest --durations 0
coverage report
- name: Coveralls
# Make the coverage report and upload
env:
TEST_MONGO_URI: 'mongodb://localhost:27017/'
TEST_MONGO_URI: "mongodb://localhost:27017/"
NUMBA_DISABLE_JIT: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: matrix.test == 'coveralls' && (github.actor != 'dependabot[bot]') && env.HAVE_ACCESS_TO_SECRETS != null
if: matrix.test == "coveralls" && (github.actor != "dependabot[bot]") && env.HAVE_ACCESS_TO_SECRETS != null
run: |
# Install straxen first
pip install -e .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ 3.9 ]
python-version: ["3.10"]
steps:
- name: Setup python
uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build:
apt_packages:
- graphviz
tools:
python: "3.9"
python: "3.10"

python:
install:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def __getattr__(cls, name):
# -- Options for intersphinx extension ---------------------------------------

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {"https://docs.python.org/": None}
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}


def setup(app):
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Physics",
Expand All @@ -29,8 +30,8 @@ straxen_print_versions = "straxen.scripts.straxen_print_versions:main"
straxer = "straxen.scripts.straxer:main"

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
strax = ">=2.0.3"
python = ">=3.10,<3.13"
strax = ">=2.1.0"
bokeh = "*"
commentjson = "*"
gitpython = "*"
Expand All @@ -39,7 +40,7 @@ immutabledict = "*"
matplotlib = "*"
multihist = ">=0.6.3"
numba = ">=0.50.0"
numpy = "<2.0.0"
numpy = "*"
packaging = "*"
m2r = "==0.2.1"
docutils = "==0.18.1"
Expand Down

0 comments on commit fd21d4b

Please sign in to comment.