mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
build: convert to static setuptools metadata
This is preferred and removes the crutch of invoking setup.py as a CLI tool for building dists. Signed-off-by: Joshua Lock <jlock@vmware.com>
This commit is contained in:
parent
d3e34acd98
commit
38ea974674
2 changed files with 44 additions and 118 deletions
44
setup.cfg
44
setup.cfg
|
|
@ -1,6 +1,50 @@
|
|||
[metadata]
|
||||
name = tuf
|
||||
version = 0.19.0
|
||||
author = https://www.updateframework.com
|
||||
author_email = theupdateframework@googlegroups.com
|
||||
description = A secure updater framework for Python
|
||||
long_description = file: README.md
|
||||
long_description_content_type = text/markdown
|
||||
url = https://www.updateframework.com
|
||||
project_urls =
|
||||
Documentation = https://theupdateframework.readthedocs.io/en/stable/
|
||||
Issues = https://github.com/theupdateframework/python-tuf/issues
|
||||
Source = https://github.com/theupdateframework/python-tuf
|
||||
classifiers =
|
||||
Development Status :: 4 - Beta
|
||||
Intended Audience :: Developers
|
||||
License :: OSI Approved :: MIT License
|
||||
License :: OSI Approved :: Apache Software License
|
||||
Operating System :: POSIX
|
||||
Operating System :: POSIX :: Linux
|
||||
Operating System :: MacOS :: MacOS X
|
||||
Operating System :: Microsoft :: Windows
|
||||
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 :: 3.10
|
||||
Programming Language :: Python :: Implementation :: CPython
|
||||
Topic :: Security
|
||||
Topic :: Software Development
|
||||
keywords = update updater secure authentication key compromise revocation
|
||||
license_files = LICENSE LICENSE-MIT
|
||||
|
||||
[options]
|
||||
packages = find:
|
||||
scripts =
|
||||
tuf/scripts/repo.py
|
||||
tuf/scripts/client.py
|
||||
python_requires = ~=3.6
|
||||
install_requires =
|
||||
requests>=2.19.1
|
||||
securesystemslib>=0.20.0
|
||||
|
||||
[options.packages.find]
|
||||
exclude = tests
|
||||
|
||||
[check-manifest]
|
||||
ignore =
|
||||
requirements-dev.txt
|
||||
|
|
|
|||
118
setup.py
118
setup.py
|
|
@ -1,118 +0,0 @@
|
|||
# Copyright 2013 - 2018, New York University and the TUF contributors
|
||||
# SPDX-License-Identifier: MIT OR Apache-2.0
|
||||
|
||||
"""
|
||||
<Program Name>
|
||||
setup.py
|
||||
|
||||
<Author>
|
||||
Vladimir Diaz <vladimir.v.diaz@gmail.com>
|
||||
|
||||
<Started>
|
||||
March 2013.
|
||||
|
||||
<Copyright>
|
||||
See LICENSE-MIT OR LICENSE for licensing information.
|
||||
|
||||
<Purpose>
|
||||
BUILD SOURCE DISTRIBUTION
|
||||
|
||||
The following shell command generates a TUF source archive that can be
|
||||
distributed to other users. The packaged source is saved to the 'dist'
|
||||
folder in the current directory.
|
||||
|
||||
$ python3 -m build --sdist
|
||||
|
||||
|
||||
INSTALLATION OPTIONS
|
||||
|
||||
pip - installing and managing Python packages (recommended):
|
||||
|
||||
# Installing from Python Package Index (https://pypi.python.org/pypi).
|
||||
$ python3 -m pip install tuf
|
||||
|
||||
# Installing from local source archive.
|
||||
$ python3 -m pip install <path to archive>
|
||||
|
||||
# Or from the root directory of the unpacked archive.
|
||||
$ python3 -m pip install .
|
||||
|
||||
# Installing optional requirements (i.e., after installing tuf).
|
||||
# Support for creation of Ed25519 signatures and support for RSA and ECDSA
|
||||
# signatures in general requires optional dependencies:
|
||||
$ python3 -m pip install securesystemslib[crypto,pynacl]
|
||||
|
||||
|
||||
Alternate installation options:
|
||||
|
||||
Navigate to the root directory of the unpacked archive and
|
||||
run one of the following shell commands:
|
||||
|
||||
Install to the global site-packages directory.
|
||||
$ python3 -m pip install <path>
|
||||
|
||||
Install to the user site-packages directory.
|
||||
$ python3 -m pip install --user <path>
|
||||
|
||||
Note: The last installation option may require modification of
|
||||
Python's search path (i.e., 'sys.path') or updating an OS environment
|
||||
variable. For example, installing to the user site-packages directory might
|
||||
result in the installation of TUF scripts to '~/.local/bin'. The user may
|
||||
then be required to update his $PATH variable:
|
||||
$ export PATH=$PATH:~/.local/bin
|
||||
"""
|
||||
|
||||
from setuptools import setup
|
||||
from setuptools import find_packages
|
||||
|
||||
|
||||
with open('README.md') as file_object:
|
||||
long_description = file_object.read()
|
||||
|
||||
|
||||
setup(
|
||||
name = 'tuf',
|
||||
version = '0.19.0', # If updating version, also update it in tuf/__init__.py
|
||||
description = 'A secure updater framework for Python',
|
||||
long_description = long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
author = 'https://www.updateframework.com',
|
||||
author_email = 'theupdateframework@googlegroups.com',
|
||||
url = 'https://www.updateframework.com',
|
||||
keywords = 'update updater secure authentication key compromise revocation',
|
||||
classifiers = [
|
||||
'Development Status :: 4 - Beta',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'License :: OSI Approved :: Apache Software 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.6',
|
||||
'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={
|
||||
'Documentation': 'https://theupdateframework.readthedocs.io/en/stable/',
|
||||
'Issues': 'https://github.com/theupdateframework/python-tuf/issues',
|
||||
'Source': 'https://github.com/theupdateframework/python-tuf'
|
||||
},
|
||||
python_requires="~=3.6",
|
||||
install_requires = [
|
||||
'requests>=2.19.1',
|
||||
'securesystemslib>=0.20.0'
|
||||
],
|
||||
packages = find_packages(exclude=['tests']),
|
||||
scripts = [
|
||||
'tuf/scripts/repo.py',
|
||||
'tuf/scripts/client.py'
|
||||
]
|
||||
)
|
||||
Loading…
Reference in a new issue