Skip to content

Commit

Permalink
Merge pull request #9 from mkoeppe/pyproject_metadata
Browse files Browse the repository at this point in the history
Modernize Python metadata, require Python >= 3.8, test 3.13-dev
  • Loading branch information
Matthias Köppe authored Mar 19, 2024
2 parents f1c45a3 + c093bcc commit b25ba6a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 30 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11.6', '3.12.0']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13-dev']
architecture: [x64, x86]
exclude:
- os: ubuntu-latest
Expand All @@ -26,12 +26,12 @@ jobs:
architecture: x86
steps:
- name: Set up the repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
Expand Down
31 changes: 30 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
[build-system]
requires = ["setuptools", "wheel", "Cython", "Cython>=0.29.30; python_version > '3.10'"]
requires = [
"setuptools>=61.2",
"Cython",
"Cython>=0.29.30; python_version > '3.10'"
]
build-backend = "setuptools.build_meta"

[project]
name = "memory_allocator"
version = "0.1.3"
description = "An extension class to allocate memory easily with cython"
authors = [
{name = "Jeroen Demeyer, Nathann Cohen, Jonathan Kliem", email = "[email protected]"},
]
dependencies = [
"Cython",
]
requires-python = ">=3.8"
readme = "README.md"
license = {text = "GPLv3"}
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Cython",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Mathematics",
]

[project.urls]
Homepage = "https://github.com/sagemath/memory_allocator"
28 changes: 2 additions & 26 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ def run(self):
du_build_ext.run(self)


with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

extensions = [
Extension(
"memory_allocator.memory_allocator",
Expand All @@ -24,29 +21,8 @@ def run(self):
sources=["memory_allocator/test.pyx"]),
]


setup(
name='memory_allocator',
version='0.1.3',
description='An extension class to allocate memory easily with cython',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/sagemath/memory_allocator',
author='Jeroen Demeyer, Nathann Cohen, Jonathan Kliem',
author_email='[email protected]',
license='GPLv3',
packages=find_packages(),
ext_modules=extensions,
zip_safe=False,
python_requires='>=3.6',
package_dir={'memory_allocator': 'memory_allocator'},
install_requires=["Cython"],
package_data={"memory_allocator": ["*.pxd"]},
cmdclass={'build_ext': build_ext},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3',
'Programming Language :: Cython',
'Topic :: Scientific/Engineering :: Mathematics']
)
)

0 comments on commit b25ba6a

Please sign in to comment.