Skip to content

Commit 907338e

Browse files
build: moving to pythonic build with tox
1 parent 341b149 commit 907338e

9 files changed

Lines changed: 124 additions & 308 deletions

File tree

etcd3/__init__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from __future__ import absolute_import
2-
1+
from importlib import metadata
32
import etcd3.etcdrpc as etcdrpc
43
from etcd3.client import Endpoint
54
from etcd3.client import Etcd3Client
@@ -11,9 +10,9 @@
1110
from etcd3.locks import Lock
1211
from etcd3.members import Member
1312

14-
__author__ = 'Louis Taylor'
15-
__email__ = 'louis@kragniz.eu'
16-
__version__ = '0.12.0'
13+
__version__ = metadata.version("protect-device")
14+
__author__ = "Louis Taylor"
15+
__email__ = "louis@kragniz.eu"
1716

1817
__all__ = (
1918
'etcdrpc',

pyproject.toml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
[build-system]
2+
requires = ["setuptools>=64", "setuptools_scm>=8"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "etcd3"
7+
description = "Python client for the etcd3 API"
8+
dynamic = ["version"]
9+
requires-python = ">=3.7"
10+
readme = "README.rst"
11+
license = {file = "LICENSE"}
12+
authors = [
13+
{email = "Louis Taylor <louis@kragniz.eu>"},
14+
{email = "Ledger SAS <team-embedded-software+enclave@ledger.fr>"},
15+
]
16+
dependencies = [
17+
"grpcio==1.66.2",
18+
"protobuf>=5.27.1,<6",
19+
"six==1.16.0",
20+
]
21+
classifiers = [
22+
"Development Status :: 2 - Pre-Alpha",
23+
"Intended Audience :: Developers",
24+
"License :: OSI Approved :: Apache Software License",
25+
"Natural Language :: English",
26+
"Programming Language :: Python :: 3",
27+
"Programming Language :: Python :: 3 :: Only",
28+
"Programming Language :: Python :: 3.6",
29+
"Programming Language :: Python :: 3.7",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: 3.12",
35+
"Programming Language :: Python :: 3.13",
36+
"Operating System :: OS Independent",
37+
]
38+
39+
[project.optional-dependencies]
40+
tests = [
41+
"pifpaf",
42+
"PyYAML>=5.1",
43+
"bumpversion>=0.5.3",
44+
"coverage",
45+
"flake8-import-order",
46+
"flake8",
47+
"grpcio-tools>=1.66.2",
48+
"hypothesis",
49+
"pytest>=4.6.5",
50+
"pytest-cov",
51+
"flake8-docstrings>=1.3.0",
52+
"mock>=2.0.0",
53+
"tenacity>=5.0.2",
54+
]
55+
protoc = [
56+
"grpcio-tools",
57+
]
58+
doc = [
59+
"Sphinx>=1.8.2",
60+
]
61+
62+
[tool.isort]
63+
profile = "black"
64+
65+
[tool.mypy]
66+
python_version = "3.10"
67+
show_error_codes = true
68+
check_untyped_defs = true
69+
no_implicit_reexport = true
70+
warn_redundant_casts = true
71+
warn_unused_ignores = true
72+
follow_untyped_imports = true
73+
74+
[tool.bandit.assert_used]
75+
skips = ["tests/*.py"]
76+
77+
[tool.pydocstyle]
78+
convention = "pep257"
79+
80+
[tool.setuptools_scm]
81+
82+
[tool.pytest.ini_options]
83+
asyncio_default_fixture_loop_scope = "function"

requirements/base.in

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

requirements/base.txt

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

requirements/test.in

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

requirements/test.txt

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

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)