Skip to content

Commit 43b2090

Browse files
committed
Enable publishing with Py312
1 parent a01dd1e commit 43b2090

File tree

2 files changed

+28
-18
lines changed

2 files changed

+28
-18
lines changed

.github/workflows/pythonpublish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Build wheels
3939
run: python -m cibuildwheel --output-dir dist/
4040
env:
41-
CIBW_BUILD: "cp38* cp39* cp310* cp311*"
41+
CIBW_BUILD: "cp38* cp39* cp310* cp311* cp312*"
4242
CIBW_SKIP: "*_i686 *win32 *musllinux* pp*"
4343
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014"
4444
CIBW_TEST_REQUIRES: "pytest"

setup.py

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -199,35 +199,45 @@ def status_msgs(*msgs):
199199
print("Cannot determine version")
200200

201201

202+
install_requires = [
203+
"numpy>=2.0.0; python_version >= '3.9'",
204+
"numpy; python_version < '3.9'",
205+
"scipy",
206+
"six",
207+
]
208+
209+
202210
def run_setup(include_cext=True):
203211
setup(
204-
name='ms_peak_picker',
205-
description='A library to pick peaks from mass spectral data',
206-
long_description='A library to pick peaks from mass spectral data',
212+
name="ms_peak_picker",
213+
description="A library to pick peaks from mass spectral data",
214+
long_description="A library to pick peaks from mass spectral data",
207215
version=version,
208-
packages=find_packages(where='src'),
216+
packages=find_packages(where="src"),
209217
package_dir={"": "src"},
210218
zip_safe=False,
211-
install_requires=['numpy', "scipy", "six"],
219+
install_requires=install_requires,
212220
ext_modules=make_cextensions() if include_cext else None,
213221
cmdclass=cmdclass,
214-
author='Joshua Klein',
222+
author="Joshua Klein",
215223
author_email="[email protected]",
216-
maintainer='Joshua Klein',
224+
maintainer="Joshua Klein",
217225
maintainer_email="[email protected]",
218226
include_package_data=True,
219227
classifiers=[
220-
'Intended Audience :: Science/Research',
221-
'Programming Language :: Python :: 3.8',
222-
'Programming Language :: Python :: 3.9',
223-
'Programming Language :: Python :: 3.10',
224-
'Programming Language :: Python :: 3.11',
225-
'Topic :: Education',
226-
'Topic :: Scientific/Engineering :: Bio-Informatics',
227-
'Topic :: Scientific/Engineering :: Chemistry',
228-
'Topic :: Software Development :: Libraries'
228+
"Intended Audience :: Science/Research",
229+
"Programming Language :: Python :: 3.8",
230+
"Programming Language :: Python :: 3.9",
231+
"Programming Language :: Python :: 3.10",
232+
"Programming Language :: Python :: 3.11",
233+
"Programming Language :: Python :: 3.12",
234+
"Topic :: Education",
235+
"Topic :: Scientific/Engineering :: Bio-Informatics",
236+
"Topic :: Scientific/Engineering :: Chemistry",
237+
"Topic :: Software Development :: Libraries",
229238
],
230-
license='License :: OSI Approved :: Apache Software License')
239+
license="License :: OSI Approved :: Apache Software License",
240+
)
231241

232242

233243
try:

0 commit comments

Comments
 (0)