Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize metadata, declare build system #37

Merged
merged 6 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = "[email protected]"},
]
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='[email protected]',
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
Loading