Skip to content

Commit 52b3587

Browse files
build: require Python >=3.10, pin numpy<2, drop ppsetuptools
1 parent 841569f commit 52b3587

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999

100100
- name: "Build sdist"
101101
run: |
102-
pip3 install pipx ppsetuptools
102+
pip3 install pipx
103103
pipx run build --sdist
104104
105105
- name: "Upload build artifacts"

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = [
88
{ name = "Ivan Aksamentov" },
99
]
1010
readme = "README.md"
11-
requires-python = ">=3.6"
11+
requires-python = ">=3.10"
1212
keywords = ["packaging", "dependency", "infer", "pyproject.toml"]
1313
classifiers = [
1414
"Programming Language :: Python :: 3",
@@ -25,8 +25,7 @@ repository = "https://github.com/neherlab/ffpopsim"
2525
[build-system]
2626
build-backend = "setuptools.build_meta"
2727
requires = [
28-
"numpy",
29-
"ppsetuptools",
28+
"numpy<2",
3029
"setuptools",
3130
"wheel",
3231
]

setup.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
#!/usr/bin/env python
22
# vim: fdm=indent
33

4-
import sys
54
import subprocess
65
import os
76

8-
# Python 3.6 compatibility: Python 3.6 has no compatible version of setuptools that supports
9-
# PEP-517 (the `pyproject.toml`-based config), so we use a shim package `ppsetuptools` instead.
10-
if sys.version_info >= (3, 7):
11-
from setuptools import setup, Extension
12-
else:
13-
from ppsetuptools import setup, Extension
14-
7+
from setuptools import setup, Extension
158
import numpy as np
169

1710
# Get GSL include paths

0 commit comments

Comments
 (0)