-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from mkoeppe/pyproject_metadata
Modernize metadata, declare build system
- Loading branch information
Showing
5 changed files
with
46 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ dist | |
MANIFEST | ||
*.c | ||
*.pyc | ||
*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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") | ||
|
@@ -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/*")), | ||
|