Skip to content

Commit

Permalink
Moved the metadata into setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
KOLANICH committed Jan 12, 2021
1 parent 0a8bde5 commit 62fb130
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 54 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
60 changes: 60 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
[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 :: 3.9
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


[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
58 changes: 4 additions & 54 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

"""
<Program Name>
Expand Down Expand Up @@ -60,56 +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.18.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.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'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',
},
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4",
install_requires = ['six>=1.11.0', 'subprocess32; python_version < "3"'],
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()

0 comments on commit 62fb130

Please sign in to comment.