Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration of some metadata into PEP 621-compliant pyproject.toml #409

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
65 changes: 64 additions & 1 deletion pyproject.toml
@@ -1,3 +1,66 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "PGPy"
version = "0.6.0"
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 :: 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.6"
dependencies = [
"cryptography>=3.3.2",
"pyasn1",
]

[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.*"]

[tool.distutils.build_sphinx]
source-dir = "docs/source"
build-dir = "docs/build"
all-files = 1
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.

2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

53 changes: 1 addition & 52 deletions setup.cfg
@@ -1,55 +1,4 @@
[metadata]
name = PGPy
version = 0.6.0
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 :: 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>=3.3.2
pyasn1
python_requires = >=3.6

# 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
3 changes: 0 additions & 3 deletions setup.py

This file was deleted.