Skip to content

Commit

Permalink
Drop support for Python 3.6 and add 3.11 + 3.12 (#16)
Browse files Browse the repository at this point in the history
Also remove the cron job from the test Action and simplify the test
matrix to only check oldest Python with oldest dependencies and newest
with newest.
  • Loading branch information
leouieda committed Feb 28, 2024
1 parent ce3d4b4 commit 6ad7169
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: "3.12"

- name: Install requirements
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: "3.12"

- name: Install requirements
run: python -m pip install -r env/requirements-style.txt
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: "3.12"

- name: Install requirements
run: python -m pip install -r env/requirements-style.txt
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ on:
release:
types:
- published
schedule:
# Run every Monday at 12:00 UTC
# * is a special character in YAML so you have to quote this string
- cron: '00 12 * * 1'

# Use bash by default in all jobs
defaults:
Expand All @@ -43,12 +39,14 @@ jobs:
- ubuntu
- macos
- windows
python:
- "3.6"
- "3.10"
dependencies:
- latest
- oldest
include:
- dependencies: oldest
python: "3.7"
- dependencies: latest
python: "3.12"
env:
# Used to tag codecov submissions
OS: ${{ matrix.os }}
Expand Down
5 changes: 2 additions & 3 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python==3.10
- python==3.12
- pip
- make
# Run-time
Expand All @@ -26,6 +26,5 @@ dependencies:
- flake8-mutable
- flake8-rst-docstrings
- flake8-simplify
- flake8-unused-arguments
- pep8-naming
- pip:
- flake8-unused-arguments
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ classifiers =
Operating System :: OS Independent
Topic :: Software Development :: Libraries
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
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
url = https://github.com/fatiando/dependente
project_urls =
Release Notes = https://github.com/fatiando/dependente/releases
Expand All @@ -36,7 +37,7 @@ project_urls =
zip_safe = True
packages = find:
include_package_data = True
python_requires = >=3.6
python_requires = >=3.7
install_requires =
click>=8.0.0,<9.0.0
tomli>=1.1.0,<3.0.0
Expand Down

0 comments on commit 6ad7169

Please sign in to comment.