From feccb33953113fccae71dd1fb3b6b345d72ab59f Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Wed, 19 Oct 2022 14:23:53 +0300 Subject: [PATCH] Moved the metadata from `setup.cfg` into `PEP 621`-compliant `pyproject.toml`. --- pyproject.toml | 60 +++++++++++++++++++++++++++++++++++++++++++++++++- setup.cfg | 55 --------------------------------------------- 2 files changed, 59 insertions(+), 56 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index bee6ddf43..2ddd9dfbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,63 @@ [build-system] -requires = ["setuptools>=42", "setuptools_scm[toml]>=3.4.3"] +requires = ["setuptools>=61.2", "setuptools_scm[toml]>=3.4.3"] build-backend = "setuptools.build_meta" +[project] +name = "securesystemslib" +authors = [{name = "https://www.updateframework.com", email = "theupdateframework@googlegroups.com"}] +license = {text = "MIT"} +description = "A library that provides cryptographic and general-purpose routines for Secure Systems Lab projects at NYU" +readme = "README.rst" +keywords = [ + "cryptography", + "keys", + "signatures", + "rsa", + "ed25519", + "ecdsa", +] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Operating System :: POSIX", + "Operating System :: POSIX :: Linux", + "Operating System :: MacOS :: MacOS X", + "Operating System :: Microsoft :: Windows", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Security", + "Topic :: Software Development", +] +requires-python = "~=3.7" +dependencies = [ + "six>=1.11.0", + 'subprocess32; python_version < "3"', + "python-dateutil>=2.8.0", +] +dynamic = ["version"] + +[project.urls] +Homepage = "https://github.com/secure-systems-lab/securesystemslib" +Source = "https://github.com/secure-systems-lab/securesystemslib" +Issues = "https://github.com/secure-systems-lab/securesystemslib/issues" + +[project.optional-dependencies] +colors = ["colorama>=0.3.9"] +crypto = ["cryptography>=37.0.0"] +pynacl = ["pynacl>1.2.0"] +testing = ['mock; python_version < "3.3"'] + +[tool.setuptools] +include-package-data = false + +[tool.setuptools.packages.find] +exclude = ["tests"] # debian +namespaces = false + [tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index d4356f4f8..000000000 --- a/setup.cfg +++ /dev/null @@ -1,55 +0,0 @@ -[metadata] -name = securesystemslib -author = https://www.updateframework.com -author_email = theupdateframework@googlegroups.com -license = MIT -description = A library that provides cryptographic and general-purpose routines for Secure Systems Lab projects at NYU -keywords = - cryptography, - keys, - signatures, - rsa, - ed25519, - ecdsa -url = https://github.com/secure-systems-lab/securesystemslib -long_description = file: README.rst -long_description_content_type = text/x-rst -classifiers = - Development Status :: 4 - Beta - Intended Audience :: Developers - License :: OSI Approved :: MIT License - Natural Language :: English - Operating System :: POSIX - Operating System :: POSIX :: Linux - Operating System :: MacOS :: MacOS X - Operating System :: Microsoft :: Windows - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: Implementation :: CPython - Topic :: Security - Topic :: Software Development -project_urls = - Source = https://github.com/secure-systems-lab/securesystemslib - Issues = https://github.com/secure-systems-lab/securesystemslib/issues -version = 0.25.0 - -[options] -packages = find: -install_requires = - six>=1.11.0 - subprocess32; python_version < "3" - python-dateutil>=2.8.0 -tests_require = mock; python_version < "3.3" -setup_requires = setuptools>=42; wheel; setuptools_scm[toml]>=3.4.3 -python_requires = ~=3.7 - -[options.packages.find] -exclude = tests; debian - -[options.extras_require] -colors = colorama>=0.3.9 -crypto = cryptography>=37.0.0 -pynacl = pynacl>1.2.0