Skip to content

Commit cad3ebf

Browse files
committed
Replace setup.py with setup.cfg / pyproject.toml.
1 parent da9e89b commit cad3ebf

File tree

6 files changed

+91
-55
lines changed

6 files changed

+91
-55
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
os: [ubuntu-latest, macos-latest, windows-latest]
31-
python-version: ['2.7', '3.7', '3.8', '3.9', '3.10', 'pypy-2.7', 'pypy-3.7']
31+
python-version: ['2.7', '3.7', '3.8', '3.9', '3.10', '3.11-dev', 'pypy-2.7', 'pypy-3.9']
3232

3333
steps:
3434
- uses: actions/checkout@v2

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ Released: Not yet.
8181
* Fixed #166: Added keygrip values to the information collected when keys are listed.
8282
Thanks to Daniel Kilimnik for the feature request and patch.
8383

84+
* Fixed #173: Added extra_args to send_keys(), recv_keys() and search_keys() to allow
85+
passing options relating to key servers.
8486

8587
0.4.8
8688
-----

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build-system]
2+
requires = [
3+
"setuptools >= 44",
4+
"wheel >= 0.29.0",
5+
]
6+
build-backend = 'setuptools.build_meta'

setup.cfg

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,56 @@
1+
[metadata]
2+
name = python-gnupg
3+
version = attr: gnupg.__version__
4+
description = A wrapper for the Gnu Privacy Guard (GPG or GnuPG)
5+
long_description =
6+
This module allows easy access to GnuPG's key management, encryption and signature
7+
functionality from Python programs. It is intended for use with Python 2.4 or
8+
greater.
9+
10+
Releases are normally signed using a GnuPG key with the user id
11+
[email protected] and the following fingerprint:
12+
13+
CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
14+
15+
As PyPI no longer shows signatures, you should be able to download release archives
16+
and signatures from
17+
18+
https://bitbucket.org/vinay.sajip/python-gnupg/downloads/
19+
20+
The archives should be the same as those uploaded to PyPI.
21+
22+
url = https://github.com/vsajip/python-gnupg
23+
author = Vinay Sajip
24+
author_email = [email protected]
25+
maintainer = Vinay Sajip
26+
maintainer_email = [email protected]
27+
license = BSD
28+
license_file = LICENSE.txt
29+
platforms = any
30+
classifiers =
31+
Development Status :: 5 - Production/Stable
32+
Intended Audience :: Developers
33+
License :: OSI Approved :: BSD License
34+
Programming Language :: Python
35+
Programming Language :: Python :: 2
36+
Programming Language :: Python :: 3
37+
Programming Language :: Python :: 2.7
38+
Programming Language :: Python :: 3.6
39+
Programming Language :: Python :: 3.7
40+
Programming Language :: Python :: 3.8
41+
Programming Language :: Python :: 3.9
42+
Programming Language :: Python :: 3.10
43+
Programming Language :: Python :: 3.11
44+
Operating System :: OS Independent
45+
Topic :: Software Development :: Libraries :: Python Modules
46+
project_urls =
47+
Documentation = https://gnupg.readthedocs.io/
48+
Source = https://github.com/vsajip/python-gnupg
49+
Tracker = https://github.com/vsajip/python-gnupg/issues
50+
keywords = GnuPG,cryptography,encryption,decryption,signing,verification
51+
52+
[options]
53+
py_modules = gnupg
54+
155
[bdist_wheel]
256
universal = 1

setup.py

Lines changed: 0 additions & 52 deletions
This file was deleted.

tox.ini

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55

66
[tox]
77
#envlist = py26, py27, py34, py35, py36, pypy
8-
envlist = py27, py36, py37, py38, py39, py310, pypy,
9-
py27gpg2, py36gpg2, py37gpg2, py38gpg2, py39gpg2, py310gpg2, pypygpg2
8+
envlist = py27, py36, py37, py38, py39, py310, py311, py312, pypy,
9+
py27gpg2, py36gpg2, py37gpg2, py38gpg2, py39gpg2, py310gpg2, py311gpg2, py312gpg2,
10+
pypygpg2
11+
isolated_build = True
1012

1113
[testenv]
1214
commands = {envpython} test_gnupg.py
@@ -94,6 +96,30 @@ passenv =
9496
HOME
9597
ENABLE_TOFU
9698

99+
[testenv:py311gpg2]
100+
envdir = {toxinidir}/.tox/py311
101+
basepython = python3.11
102+
setenv =
103+
LD_LIBRARY_PATH=/home/vinay/tmp/lib
104+
GPGBINARY=gpg2
105+
NO_EXTERNAL_TESTS=1
106+
107+
passenv =
108+
HOME
109+
ENABLE_TOFU
110+
111+
[testenv:py312gpg2]
112+
envdir = {toxinidir}/.tox/py312
113+
basepython = python3.12
114+
setenv =
115+
LD_LIBRARY_PATH=/home/vinay/tmp/lib
116+
GPGBINARY=gpg2
117+
NO_EXTERNAL_TESTS=1
118+
119+
passenv =
120+
HOME
121+
ENABLE_TOFU
122+
97123
[testenv:pypygpg2]
98124
envdir = {toxinidir}/.tox/pypy
99125
basepython = pypy

0 commit comments

Comments
 (0)