From 3cf1b4d390e47ebee6c6cb73a5907f25cf602815 Mon Sep 17 00:00:00 2001 From: Daniel Himmelstein Date: Tue, 28 Feb 2023 14:55:52 -0500 Subject: [PATCH] move package metadata to pyproject.toml delete setup.cfg. Assisted by ini2toml[full] --- pyproject.toml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++- setup.cfg | 43 --------------------------------------- 2 files changed, 54 insertions(+), 44 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 17654f8..c8cc84a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,63 @@ [build-system] -requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"] +requires = ["setuptools>=61.2", "wheel", "setuptools_scm[toml]>=6.2"] build-backend = "setuptools.build_meta" [tool.setuptools_scm] # including this section enables version inference +[project] +name = "nxontology" +maintainers = [{name = "Daniel Himmelstein", email = "dhimmel@related.vc"}] +license = {text = "Apache"} +description = "NetworkX for ontologies" +classifiers = [ + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Topic :: Scientific/Engineering :: Bio-Informatics", + "Topic :: Scientific/Engineering :: Information Analysis", +] +keywords = [ + "networkx", + "ontologies", + "similarity", + "graphs", + "networks", + "digraph", + "information-content", + "semantic-similarity", +] +requires-python = ">=3.8" +dependencies = [ + "fsspec[http]", + "networkx>=2", + "pronto>=2.4.0", +] +dynamic = ["version"] + +[project.readme] +file = "README.md" +content-type = "text/markdown; charset=UTF-8" + +[project.urls] +Homepage = "https://github.com/related-sciences/nxontology" + +[project.optional-dependencies] +dev = [ + "fire", + "pandas", + "pre-commit", + "pytest", +] +viz = ["pygraphviz"] + +[tool.setuptools] +packages = ["nxontology"] +zip-safe = false +include-package-data = true +license-files = ["LICENSE"] + [tool.black] target-version = ['py38', 'py39', 'py310', 'py311'] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index dcf56fb..0000000 --- a/setup.cfg +++ /dev/null @@ -1,43 +0,0 @@ -[metadata] -name = nxontology -maintainer = Daniel Himmelstein -maintainer_email = dhimmel@related.vc -license = Apache -license_file = LICENSE -description = NetworkX for ontologies -long_description = file: README.md -long_description_content_type = text/markdown; charset=UTF-8 -url = https://github.com/related-sciences/nxontology -classifiers = - License :: OSI Approved :: Apache Software License - Operating System :: OS Independent - Programming Language :: Python - Programming Language :: Python :: 3 -keywords = - networkx - ontologies - similarity - graphs - networks - digraph - information-content - semantic-similarity - -[options] -packages = nxontology -zip_safe = False -include_package_data = True -python_requires = >=3.8 -install_requires = - fsspec[http] - networkx>=2 - pronto>=2.4.0 - -[options.extras_require] -dev = - fire - pandas - pre-commit - pytest -viz = - pygraphviz