Skip to content

Commit 62fb130

Browse files
committed
Moved the metadata into setup.cfg
1 parent 0a8bde5 commit 62fb130

File tree

3 files changed

+69
-54
lines changed

3 files changed

+69
-54
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4.3"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools_scm]

setup.cfg

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
[metadata]
2+
name = securesystemslib
3+
author = https://www.updateframework.com
4+
author_email = [email protected]
5+
license = MIT
6+
description = A library that provides cryptographic and general-purpose routines for Secure Systems Lab projects at NYU
7+
keywords =
8+
cryptography,
9+
keys,
10+
signatures,
11+
rsa,
12+
ed25519,
13+
ecdsa
14+
url = https://github.com/secure-systems-lab/securesystemslib
15+
long_description = file: README.rst
16+
long_description_content_type = text/x-rst
17+
classifiers =
18+
Development Status :: 4 - Beta
19+
Intended Audience :: Developers
20+
License :: OSI Approved :: MIT License
21+
Natural Language :: English
22+
Operating System :: POSIX
23+
Operating System :: POSIX :: Linux
24+
Operating System :: MacOS :: MacOS X
25+
Operating System :: Microsoft :: Windows
26+
Programming Language :: Python
27+
Programming Language :: Python :: 2
28+
Programming Language :: Python :: 2.7
29+
Programming Language :: Python :: 3
30+
Programming Language :: Python :: 3.5
31+
Programming Language :: Python :: 3.6
32+
Programming Language :: Python :: 3.7
33+
Programming Language :: Python :: 3.8
34+
Programming Language :: Python :: 3.9
35+
Programming Language :: Python :: Implementation :: CPython
36+
Topic :: Security
37+
Topic :: Software Development
38+
39+
project_urls =
40+
Source = https://github.com/secure-systems-lab/securesystemslib
41+
Issues = https://github.com/secure-systems-lab/securesystemslib/issues
42+
43+
44+
[options]
45+
packages = find:
46+
install_requires =
47+
six>=1.11.0
48+
subprocess32; python_version < "3"
49+
python-dateutil>=2.8.0
50+
tests_require = mock; python_version < "3.3"
51+
setup_requires = setuptools>=42; wheel; setuptools_scm[toml]>=3.4.3
52+
53+
54+
[options.packages.find]
55+
exclude = tests; debian
56+
57+
[options.extras_require]
58+
colors = colorama>=0.3.9
59+
crypto = cryptography>=2.6
60+
pynacl = pynacl>1.2.0

setup.py

Lines changed: 4 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#! /usr/bin/env python3
22

33
"""
44
<Program Name>
@@ -60,56 +60,6 @@
6060
"""
6161

6262
from setuptools import setup
63-
from setuptools import find_packages
64-
65-
66-
with open('README.rst') as file_object:
67-
long_description = file_object.read()
68-
69-
setup(
70-
name = 'securesystemslib',
71-
version = '0.18.0',
72-
description = 'A library that provides cryptographic and general-purpose'
73-
' routines for Secure Systems Lab projects at NYU',
74-
license = 'MIT',
75-
long_description = long_description,
76-
long_description_content_type = 'text/x-rst',
77-
author = 'https://www.updateframework.com',
78-
author_email = '[email protected]',
79-
url = 'https://github.com/secure-systems-lab/securesystemslib',
80-
keywords = 'cryptography, keys, signatures, rsa, ed25519, ecdsa',
81-
classifiers = [
82-
'Development Status :: 4 - Beta',
83-
'Intended Audience :: Developers',
84-
'License :: OSI Approved :: MIT License',
85-
'Natural Language :: English',
86-
'Operating System :: POSIX',
87-
'Operating System :: POSIX :: Linux',
88-
'Operating System :: MacOS :: MacOS X',
89-
'Operating System :: Microsoft :: Windows',
90-
'Programming Language :: Python',
91-
'Programming Language :: Python :: 2',
92-
'Programming Language :: Python :: 2.7',
93-
'Programming Language :: Python :: 3',
94-
'Programming Language :: Python :: 3.6',
95-
'Programming Language :: Python :: 3.7',
96-
'Programming Language :: Python :: 3.8',
97-
'Programming Language :: Python :: 3.9',
98-
'Programming Language :: Python :: Implementation :: CPython',
99-
'Topic :: Security',
100-
'Topic :: Software Development'
101-
],
102-
project_urls = {
103-
'Source': 'https://github.com/secure-systems-lab/securesystemslib',
104-
'Issues': 'https://github.com/secure-systems-lab/securesystemslib/issues',
105-
},
106-
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4",
107-
install_requires = ['six>=1.11.0', 'subprocess32; python_version < "3"'],
108-
extras_require = {
109-
'colors': ['colorama>=0.3.9'],
110-
'crypto': ['cryptography>=2.6'],
111-
'pynacl': ['pynacl>1.2.0']},
112-
tests_require = 'mock; python_version < "3.3"',
113-
packages = find_packages(exclude=['tests', 'debian']),
114-
scripts = []
115-
)
63+
64+
if __name__ == "__main__":
65+
setup()

0 commit comments

Comments
 (0)