Skip to content

Commit b25ba6a

Browse files
author
Matthias Köppe
authored
Merge pull request #9 from mkoeppe/pyproject_metadata
Modernize Python metadata, require Python >= 3.8, test 3.13-dev
2 parents f1c45a3 + c093bcc commit b25ba6a

File tree

3 files changed

+35
-30
lines changed

3 files changed

+35
-30
lines changed

Diff for: .github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ubuntu-latest, macos-latest, windows-latest]
20-
python-version: ['3.8', '3.9', '3.10', '3.11.6', '3.12.0']
20+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13-dev']
2121
architecture: [x64, x86]
2222
exclude:
2323
- os: ubuntu-latest
@@ -26,12 +26,12 @@ jobs:
2626
architecture: x86
2727
steps:
2828
- name: Set up the repository
29-
uses: actions/checkout@v2
29+
uses: actions/checkout@v4
3030
with:
3131
submodules: recursive
3232
fetch-depth: 0
3333
- name: Set up Python ${{ matrix.python-version }}
34-
uses: actions/setup-python@v2
34+
uses: actions/setup-python@v5
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737
architecture: ${{ matrix.architecture }}

Diff for: pyproject.toml

+30-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "Cython", "Cython>=0.29.30; python_version > '3.10'"]
2+
requires = [
3+
"setuptools>=61.2",
4+
"Cython",
5+
"Cython>=0.29.30; python_version > '3.10'"
6+
]
37
build-backend = "setuptools.build_meta"
8+
9+
[project]
10+
name = "memory_allocator"
11+
version = "0.1.3"
12+
description = "An extension class to allocate memory easily with cython"
13+
authors = [
14+
{name = "Jeroen Demeyer, Nathann Cohen, Jonathan Kliem", email = "[email protected]"},
15+
]
16+
dependencies = [
17+
"Cython",
18+
]
19+
requires-python = ">=3.8"
20+
readme = "README.md"
21+
license = {text = "GPLv3"}
22+
classifiers = [
23+
"Development Status :: 6 - Mature",
24+
"Intended Audience :: Science/Research",
25+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
26+
"Programming Language :: Cython",
27+
"Programming Language :: Python :: 3",
28+
"Topic :: Scientific/Engineering :: Mathematics",
29+
]
30+
31+
[project.urls]
32+
Homepage = "https://github.com/sagemath/memory_allocator"

Diff for: setup.py

+2-26
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ def run(self):
1212
du_build_ext.run(self)
1313

1414

15-
with open("README.md", "r", encoding="utf-8") as fh:
16-
long_description = fh.read()
17-
1815
extensions = [
1916
Extension(
2017
"memory_allocator.memory_allocator",
@@ -24,29 +21,8 @@ def run(self):
2421
sources=["memory_allocator/test.pyx"]),
2522
]
2623

24+
2725
setup(
28-
name='memory_allocator',
29-
version='0.1.3',
30-
description='An extension class to allocate memory easily with cython',
31-
long_description=long_description,
32-
long_description_content_type='text/markdown',
33-
url='https://github.com/sagemath/memory_allocator',
34-
author='Jeroen Demeyer, Nathann Cohen, Jonathan Kliem',
35-
author_email='[email protected]',
36-
license='GPLv3',
3726
packages=find_packages(),
3827
ext_modules=extensions,
39-
zip_safe=False,
40-
python_requires='>=3.6',
41-
package_dir={'memory_allocator': 'memory_allocator'},
42-
install_requires=["Cython"],
43-
package_data={"memory_allocator": ["*.pxd"]},
44-
cmdclass={'build_ext': build_ext},
45-
classifiers=[
46-
'Development Status :: 2 - Pre-Alpha',
47-
'Intended Audience :: Science/Research',
48-
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
49-
'Programming Language :: Python :: 3',
50-
'Programming Language :: Cython',
51-
'Topic :: Scientific/Engineering :: Mathematics']
52-
)
28+
)

0 commit comments

Comments
 (0)