Skip to content

Commit

Permalink
pyproject.toml: Move metadata here from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Feb 18, 2024
1 parent 3062478 commit 4f10227
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 35 deletions.
41 changes: 39 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
[build-system]
requires = ["setuptools", "wheel", "cython"]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=61.2",
"cython",
]
build-backend = "setuptools.build_meta"

[project]
name = "spherogram"
description = "Spherical diagrams for 3-manifold topology"
authors = [
{name = "Marc Culler", email = "culler@marc-culler.info"},
{name = "Nathan M. Dunfield", email = "nathan@dunfield.info"},
]
dependencies = [
"decorator",
"knot_floer_homology>=1.2",
"networkx",
"snappy_manifolds>=1.1.2",
]
requires-python = ">=3"
readme = "README.rst"
license = {text = "GPLv2+"}
keywords = ["knot", "link", "SnapPy"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: OS Independent",
"Programming Language :: C",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Mathematics",
]
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/3-manifolds/Spherogram"

[tool.setuptools.dynamic]
version = {attr = "spherogram.version.version"}
34 changes: 1 addition & 33 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,22 +196,7 @@ def run(self):

# Main module

exec(open('spherogram_src/version.py').read())

# Get long description from README
long_description = open('README.rst').read()
long_description = long_description.split('==\n')[1]
long_description = long_description.split('\nDeveloped')[0]

install_requires = ['decorator', 'networkx',
'snappy_manifolds>=1.1.2', 'knot_floer_homology>=1.2']

setup( name = 'spherogram',
version = version,
install_requires = install_requires,
python_requires = '>=3',
dependency_links = [],
packages = ['spherogram', 'spherogram.links',
setup( packages = ['spherogram', 'spherogram.links',
'spherogram.links.test', 'spherogram.codecs',
'spherogram.dev', 'spherogram.dev.dev_jennet'],
package_dir = {'spherogram' : 'spherogram_src', 'spherogram.dev':'dev'},
Expand All @@ -223,21 +208,4 @@ def run(self):
'pip_install':SpherogramPipInstall,
},
zip_safe = False,

description= 'Spherical diagrams for 3-manifold topology',
long_description = long_description,
author = 'Marc Culler and Nathan M. Dunfield',
author_email = 'culler@marc-culler.info, nathan@dunfield.info',
license='GPLv2+',
url = 'https://github.com/3-manifolds/Spherogram',
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Operating System :: OS Independent',
'Programming Language :: C',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Mathematics',
],
keywords = 'knot, link, SnapPy',
)

0 comments on commit 4f10227

Please sign in to comment.