Skip to content

Commit 872e36e

Browse files
authored
Merge pull request #77 from benjeffery/3.11
Support 3.10, 3.11, remove 3.7
2 parents 5b56993 + e05dcb1 commit 872e36e

File tree

8 files changed

+37
-27
lines changed

8 files changed

+37
-27
lines changed

.circleci/config.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
version: 2
1+
version: 2.1
2+
orbs:
3+
codecov: codecov/[email protected]
4+
25
jobs:
36
build:
47
docker:
5-
- image: circleci/python:3.7-buster
8+
- image: cimg/python:3.10
69
working_directory: /home/circleci/tszip
710
steps:
811
- checkout
@@ -12,7 +15,6 @@ jobs:
1215
- run:
1316
name: Install dependencies and set path
1417
command: |
15-
sudo apt-get install libgsl-dev # Needed for msprime
1618
pip install --user -r requirements/development.txt
1719
pip install twine --user
1820
echo 'export PATH=/home/circleci/.local/bin:$PATH' >> $BASH_ENV
@@ -30,6 +32,10 @@ jobs:
3032
codecov
3133
rm .coverage
3234
35+
- codecov/upload:
36+
flags: tszip
37+
token: CODECOV_TOKEN
38+
3339
- run:
3440
name: Build Python package
3541
command: |
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
PYTHON_VERSIONS=(
2+
cp311-cp311
3+
cp310-cp310
24
cp39-cp39
35
cp38-cp38
4-
cp37-cp37m
56
)

.github/workflows/wheels.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
with:
2020
submodules: true
2121

22-
- name: Set up Python 3.8
22+
- name: Set up Python 3.10
2323
uses: actions/setup-python@v2
2424
with:
25-
python-version: 3.8
25+
python-version: 3.10
2626

2727
- name: Build sdist
2828
shell: bash
@@ -51,7 +51,7 @@ jobs:
5151
runs-on: macos-latest
5252
strategy:
5353
matrix:
54-
python: [3.7, 3.8, 3.9]
54+
python: [3.8, 3.8, 3.9, "3.10", "3.11"]
5555
steps:
5656
- name: Download wheels
5757
uses: actions/download-artifact@v2
@@ -73,7 +73,7 @@ jobs:
7373
runs-on: windows-latest
7474
strategy:
7575
matrix:
76-
python: [3.7, 3.8, 3.9]
76+
python: [3.8, 3.8, 3.9, "3.10", "3.11"]
7777
wordsize: [64]
7878
steps:
7979
- name: Download wheels
@@ -97,7 +97,7 @@ jobs:
9797
needs: ['manylinux']
9898
strategy:
9999
matrix:
100-
python: [3.7, 3.8, 3.9]
100+
python: [3.8, 3.8, 3.9, "3.10", "3.11"]
101101
steps:
102102
- name: Download wheels
103103
uses: actions/download-artifact@v2

.mergify.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ queue_rules:
44
- "#approved-reviews-by>=1"
55
- "#changes-requested-reviews-by=0"
66
- status-success=Lint
7-
- status-success=Python (3.7, macos-latest)
8-
- status-success=Python (3.9, macos-latest)
9-
- status-success=Python (3.7, ubuntu-latest)
10-
- status-success=Python (3.9, ubuntu-latest)
11-
- status-success=Python (3.7, windows-latest)
12-
- status-success=Python (3.9, windows-latest)
7+
- status-success=Python (3.8, macos-latest)
8+
- status-success=Python (3.11, macos-latest)
9+
- status-success=Python (3.8, ubuntu-latest)
10+
- status-success=Python (3.11, ubuntu-latest)
11+
- status-success=Python (3.8, windows-latest)
12+
- status-success=Python (3.11, windows-latest)
1313
- "status-success=ci/circleci: build"
1414
pull_request_rules:
1515
- name: Automatic rebase, CI and merge
@@ -20,12 +20,12 @@ pull_request_rules:
2020
- base=main
2121
- label=AUTOMERGE-REQUESTED
2222
- status-success=Lint
23-
- status-success=Python (3.7, macos-latest)
24-
- status-success=Python (3.9, macos-latest)
25-
- status-success=Python (3.7, ubuntu-latest)
26-
- status-success=Python (3.9, ubuntu-latest)
27-
- status-success=Python (3.7, windows-latest)
28-
- status-success=Python (3.9, windows-latest)
23+
- status-success=Python (3.8, macos-latest)
24+
- status-success=Python (3.11, macos-latest)
25+
- status-success=Python (3.8, ubuntu-latest)
26+
- status-success=Python (3.11, ubuntu-latest)
27+
- status-success=Python (3.8, windows-latest)
28+
- status-success=Python (3.11 windows-latest)
2929
- "status-success=ci/circleci: build"
3030
actions:
3131
queue:

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ repos:
1515
rev: v3.15.0
1616
hooks:
1717
- id: pyupgrade
18-
args: [--py3-plus, --py36-plus]
18+
args: [--py3-plus, --py38-plus]
1919
- repo: https://github.com/psf/black
20-
rev: 23.9.1
20+
rev: 23.10.1
2121
hooks:
2222
- id: black
2323
language_version: python3

CHANGELOG.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
--------------------
2-
[0.2.3] - 2023-XX-XX
2+
[0.2.3] - 2023-10-30
33
--------------------
44

55
- Add `tszip.load` which loads both compressed and uncompressed trees sequences
66
(benjeffery, #75)
77

8+
- tszip now supports Python 3.10 and 3.11, 3.7 support has been removed.
9+
(benjeffery, #76)
810

911
--------------------
1012
[0.2.2] - 2022-02-22

requirements/development.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pre-commit
66
pytest
77
pytest-cov
88
pytest-xdist
9-
sphinx
9+
sphinx<=4.5.0
1010
sphinx-argparse
1111
sphinx_rtd_theme
1212
sphinx-issues

setup.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ project_urls =
1515
classifiers =
1616
Programming Language :: Python
1717
Programming Language :: Python :: 3
18-
Programming Language :: Python :: 3.7
1918
Programming Language :: Python :: 3.8
2019
Programming Language :: Python :: 3.9
20+
Programming Language :: Python :: 3.10
21+
Programming Language :: Python :: 3.11
2122
Programming Language :: Python :: 3 :: Only
2223
Development Status :: 5 - Production/Stable
2324
Environment :: Other Environment
@@ -38,7 +39,7 @@ platforms =
3839

3940
[options]
4041
packages = tszip
41-
python_requires = >=3.7
42+
python_requires = >=3.8
4243
include_package_data = True
4344
install_requires =
4445
numpy

0 commit comments

Comments
 (0)