From f15865c825a77f7759f1427ed47d3098373e2fa6 Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Thu, 9 Jul 2020 13:37:47 +0300 Subject: [PATCH] Moved the metadata into setup.cfg --- pyproject.toml | 5 +++++ setup.cfg | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 54 ++++---------------------------------------------- 3 files changed, 62 insertions(+), 50 deletions(-) create mode 100644 pyproject.toml create mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..5f713a454 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4.3"] +build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 000000000..4a4897faf --- /dev/null +++ b/setup.cfg @@ -0,0 +1,53 @@ +[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 + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: Implementation :: CPython + Topic :: Security + Topic :: Software Development + +[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 + +[options.packages.find] +exclude = tests; debian + +[options.extras_require] +colors = colorama>=0.3.9 +crypto = cryptography>=2.6 +pynacl = pynacl>1.2.0 diff --git a/setup.py b/setup.py index ff5d05dfb..80795a5cc 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """ @@ -60,52 +60,6 @@ """ from setuptools import setup -from setuptools import find_packages - - -with open('README.rst') as file_object: - long_description = file_object.read() - -setup( - name = 'securesystemslib', - version = '0.15.0', - description = 'A library that provides cryptographic and general-purpose' - ' routines for Secure Systems Lab projects at NYU', - license = 'MIT', - long_description = long_description, - long_description_content_type = 'text/x-rst', - author = 'https://www.updateframework.com', - author_email = 'theupdateframework@googlegroups.com', - url = 'https://github.com/secure-systems-lab/securesystemslib', - 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', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: Implementation :: CPython', - 'Topic :: Security', - 'Topic :: Software Development' - ], - install_requires = ['six>=1.11.0', 'subprocess32; python_version < "3"', - 'python-dateutil>=2.8.0'], - extras_require = { - 'colors': ['colorama>=0.3.9'], - 'crypto': ['cryptography>=2.6'], - 'pynacl': ['pynacl>1.2.0']}, - tests_require = 'mock; python_version < "3.3"', - packages = find_packages(exclude=['tests', 'debian']), - scripts = [] -) + +if __name__ == "__main__": + setup()