diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..2d647dcf --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,57 @@ +[build-system] +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" +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] +crypto = ["cryptography>=37.0.0"] +pynacl = ["pynacl>1.2.0"] +PySPX = ["PySPX==0.5.0"] + +[tool.setuptools] +include-package-data = true + +[tool.setuptools.packages.find] +exclude = ["tests"] # debian +namespaces = false + +[tool.setuptools_scm] diff --git a/setup.py b/setup.py deleted file mode 100644 index 75f102df..00000000 --- a/setup.py +++ /dev/null @@ -1,109 +0,0 @@ -#! /usr/bin/env python - -""" - - setup.py - - - Vladimir Diaz - - - December 7, 2016. - - - See LICENSE for licensing information. - - - BUILD SOURCE DISTRIBUTION - - The following shell command generates a securesystemslib source archive that - can be distributed to other users. The packaged source is saved to the - 'dist' folder in the current directory. - - $ python setup.py sdist - - - INSTALLATION OPTIONS - - pip - installing and managing Python packages (recommended): - - # Installing from Python Package Index (https://pypi.python.org/pypi). - $ pip install securesystemslib - - # Installing from local source archive. - $ pip install - - # Or from the root directory of the unpacked archive. - $ pip install . - - 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. - $ python setup.py install - - Install to the user site-packages directory. - $ python setup.py install --user - - Install to a chosen directory. - $ python setup.py install --home= - - - Note: The last two installation options 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 scripts to '~/.local/bin'. The user may - then be required to update his $PATH variable: - $ export PATH=$PATH:~/.local/bin -""" - -from setuptools import find_packages, setup - -with open("README.rst") as file_object: - long_description = file_object.read() - -setup( - name="securesystemslib", - version="0.25.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 :: 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", - }, - python_requires="~=3.7", - extras_require={ - "crypto": ["cryptography>=37.0.0"], - "pynacl": ["pynacl>1.2.0"], - "PySPX": ["PySPX==0.5.0"], - }, - packages=find_packages(exclude=["tests", "debian"]), - scripts=[], -)