From bc0d728fabda319184b160ee111f25c2f262a234 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 11 Mar 2024 18:39:42 -0700 Subject: [PATCH 1/4] pyproject.toml: Move metadata here from setup.py --- pyproject.toml | 31 ++++++++++++++++++++++++++++++- setup.py | 28 ++-------------------------- 2 files changed, 32 insertions(+), 27 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b0ea8d0..edef02e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "sage-devel@googlegroups.com"}, +] +dependencies = [ + "Cython", +] +requires-python = ">=3.6" +readme = "README.md" +license = {text = "GPLv3"} +classifiers = [ + "Development Status :: 2 - Pre-Alpha", + "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" diff --git a/setup.py b/setup.py index ea0f705..39e182c 100644 --- a/setup.py +++ b/setup.py @@ -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", @@ -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='sage-devel@googlegroups.com', - 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'] - ) +) From c317945aa2f5c825c60904b15d9db32875f2d3a7 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Fri, 15 Mar 2024 22:56:36 -0700 Subject: [PATCH 2/4] pyproject.toml: Require python >= 3.8 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index edef02e..f85b4ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,11 +16,11 @@ authors = [ dependencies = [ "Cython", ] -requires-python = ">=3.6" +requires-python = ">=3.8" readme = "README.md" license = {text = "GPLv3"} classifiers = [ - "Development Status :: 2 - Pre-Alpha", + "Development Status :: 6 - Mature", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Cython", From 98169b4f4c2a822be9f50602828009736ca5fe65 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Fri, 15 Mar 2024 23:04:23 -0700 Subject: [PATCH 3/4] .github/workflows/main.yml: Update actions --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e27ee24..346a0f1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} From c093bccfa76ad57ceeddf0f560e2cf04cf513682 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Fri, 15 Mar 2024 23:04:36 -0700 Subject: [PATCH 4/4] .github/workflows/main.yml: Test 3.13-dev --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 346a0f1..8d502b8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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