Skip to content

Commit

Permalink
Moved the metadata from setup.py into pyproject.toml.
Browse files Browse the repository at this point in the history
Moved all the "requirements*.txt" into `pyproject.toml` under extras.
  • Loading branch information
KOLANICH committed Nov 11, 2022
1 parent 6c481d9 commit 9ef16ae
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 69 deletions.
63 changes: 62 additions & 1 deletion pyproject.toml
@@ -1,3 +1,64 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "PGPy"
version = "0.6.0-dev"
authors = [{name = "Michael Greene", email = "mgreene@securityinnovation.com"}]
maintainers = [{name = "Security Innovation", email = "opensource@securityinnovation.com"}]
license = {text = "BSD-3-Clause"}
description = "Pretty Good Privacy for Python"
readme = "README.rst"
keywords = ["OpenPGP", "PGP", "Pretty Good Privacy", "GPG", "GnuPG", "openpgp", "pgp", "gnupg", "gpg", "encryption", "signature"]
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Security",
"Topic :: Security :: Cryptography",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: BSD License",
]
requires-python = ">=3.5"
dependencies = [
"cryptography>=2.6,<38", # TODO: fix support for cryptography >= 38.0.0 (https://github.com/SecurityInnovation/PGPy/issues/402)
"pyasn1",
"six>=1.9.0",
]

[project.optional-dependencies]
docs-build = ["sphinx", "sphinx-better-theme"]
test = [
"pytest",
"pytest-cov",
"pytest-order @ git+https://github.com/SecurityInnovation/pytest-order.git@07ceb36233fb083275f34d5c8abbd3e35cd00158#egg=pytest-order", # We need a patched version of pytest-order to run on 3.5 and handle parameterized tests,
"flake8",
"pep8-naming",
# "gpg", # is not here on purpose currently
]

[project.urls]
Homepage = "https://github.com/SecurityInnovation/PGPy"
Documentation = "https://pgpy.readthedocs.io/en/latest/"
"Bug Tracker" = "https://github.com/SecurityInnovation/PGPy/issues"

[tool.setuptools]
zip-safe = true
include-package-data = false

[tool.setuptools.packages.find]
include = ["pgpy", "pgpy.*"]

3 changes: 0 additions & 3 deletions requirements-rtd.txt

This file was deleted.

8 changes: 0 additions & 8 deletions requirements-test.txt

This file was deleted.

3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

55 changes: 1 addition & 54 deletions setup.cfg
@@ -1,57 +1,4 @@
[metadata]
name = PGPy
version = 0.6.0-dev
author = Michael Greene
author_email = mgreene@securityinnovation.com
maintainer = Security Innovation
maintainer_email = opensource@securityinnovation.com
license = BSD-3-Clause
description = Pretty Good Privacy for Python
keywords = OpenPGP, PGP, Pretty Good Privacy, GPG, GnuPG, openpgp, pgp, gnupg, gpg, encryption, signature
url = https://github.com/SecurityInnovation/PGPy
project_urls =
Documentation = https://pgpy.readthedocs.io/en/latest/
Bug Tracker = https://github.com/SecurityInnovation/PGPy/issues
long_description = file: README.rst
long_description_content_type = text/x-rst
classifiers =
Development Status :: 4 - Beta
Operating System :: POSIX :: Linux
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
Intended Audience :: Developers
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.5
Programming Language :: Python :: Implementation :: CPython
Topic :: Security
Topic :: Security :: Cryptography
Topic :: Software Development :: Libraries
Topic :: Software Development :: Libraries :: Python Modules
License :: OSI Approved :: BSD License

[options]
packages =
pgpy
pgpy.packet
pgpy.packet.subpackets
# TODO: fix support for cryptography >= 38.0.0 (https://github.com/SecurityInnovation/PGPy/issues/402)
install_requires =
cryptography>=2.6,<38
pyasn1
six>=1.9.0
python_requires = >=3.5

# doc_requires =
# sphinx
# sphinx-better-theme


# https://github.com/sphinx-doc/sphinx/issues/9473
[build_sphinx]
source-dir = docs/source
build-dir = docs/build
Expand Down

0 comments on commit 9ef16ae

Please sign in to comment.