Skip to content

Commit

Permalink
Merge pull request #37 from mkoeppe/pyproject_metadata
Browse files Browse the repository at this point in the history
Modernize metadata, declare build system
  • Loading branch information
Matthias Köppe authored Mar 21, 2024
2 parents 0b210f7 + 4e3a278 commit c9e0663
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 23 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:

permissions: read-all

concurrency:
# Cancel previous runs of this workflow for the same branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-20.04
Expand All @@ -29,7 +34,7 @@ jobs:
conda list
- name: Install pari-jupyter
shell: bash -l {0}
run: pip install --verbose --no-index .
run: pip install --verbose --no-build-isolation .
- name: Run test
shell: bash -l {0}
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist
MANIFEST
*.c
*.pyc
*.egg-info
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include LICENSE README.rst MANIFEST.in
recursive-include PARIKernel *.py *.pyx *.pxd *.c
recursive-include PARIKernel *.py *.pyx *.pxd
recursive-exclude PARIKernel *.c
37 changes: 37 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[build-system]
requires = ["setuptools",
"Cython>=0.29"]
build-backend = "setuptools.build_meta"

[project]
name = "pari-jupyter"
description = "A Jupyter kernel for PARI/GP"
authors = [
{name = "Jeroen Demeyer"},
]
maintainers = [
{name = "SageMath developers", email = "sage-devel@googlegroups.com"},
]
dependencies = [
"ipykernel",
]
requires-python = ">=3.8"
readme = "README.rst"
license = {text = "GNU General Public License (GPL) version 3 or later"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX",
"Programming Language :: Cython",
"Topic :: Scientific/Engineering :: Mathematics",
]
dynamic = [
"version",
]

[project.urls]
Homepage = "https://github.com/sagemath/pari-jupyter"

[tool.setuptools.dynamic]
version = {file = "VERSION"}
20 changes: 0 additions & 20 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from glob import glob
from setuptools import setup, Extension
from setuptools.command.bdist_egg import bdist_egg as _bdist_egg
import PARIKernel

kernelpath = os.path.join("share", "jupyter", "kernels", "pari_jupyter")
nbextpath = os.path.join("share", "jupyter", "nbextensions", "gp-mode")
Expand Down Expand Up @@ -45,25 +44,6 @@ def run(self):


setup(
name='pari-jupyter',
version=PARIKernel.__version__,
description='A Jupyter kernel for PARI/GP',
long_description=open("README.rst").read(),
long_description_content_type='text/x-rst',
platforms=["POSIX"],
author='Jeroen Demeyer',
author_email='pari-users@pari.math.u-bordeaux.fr',
license='GNU General Public License (GPL) version 3 or later',
url="https://github.com/sagemath/pari-jupyter",
classifiers=["Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX",
"Programming Language :: Cython",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Mathematics",
],
install_requires=['ipykernel'],

packages=['PARIKernel'],
ext_modules=extensions,
data_files=[(kernelpath, glob("spec/*")),
Expand Down

0 comments on commit c9e0663

Please sign in to comment.