Skip to content

Commit 57a94b7

Browse files
committed
pyproject with different python venvs
1 parent 4c0d917 commit 57a94b7

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

pyproject.toml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,20 @@ path = 'showcert/__init__.py'
4949
[tool.hatch.metadata]
5050
# license-files = ["LICENSE"]
5151

52+
[tool.hatch.envs]
53+
py38 = { python = "3.8" }
54+
py39 = { python = "3.9" }
55+
py310 = { python = "3.10" }
56+
py311 = { python = "3.11" }
57+
py312 = { python = "3.12" }
58+
5259
[tool.hatch.envs.default]
5360
dependencies = [
5461
"coverage[toml]>=6.5",
5562
"pytest",
5663
]
64+
65+
5766
[tool.hatch.envs.default.scripts]
5867
test = "pytest {args:tests}"
5968
test-cov = "coverage run -m pytest {args:tests}"
@@ -65,9 +74,13 @@ cov = [
6574
"cov-report",
6675
]
6776

77+
6878
[tool.coverage.report]
6979
exclude_lines = [
7080
"no cov",
7181
"if __name__ == .__main__.:",
7282
"if TYPE_CHECKING:",
73-
]
83+
]
84+
85+
86+

showcert/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.3.0'
1+
__version__ = '0.3.1'

showcert/cli/gencert_main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
# https://github.com/ikreymer/certauth/blob/master/certauth/certauth.py
3333

3434

35-
def generate_cert(hostnames: list[str], ip_addresses: list[str] = None,
35+
def generate_cert(hostnames: list, ip_addresses: list = None,
3636
cakey=None, cacert=None, days=365, bits=2048,
37-
ca=False) -> tuple[Certificate, rsa.RSAPrivateKey]:
37+
ca=False) -> tuple:
3838
"""Generates self signed certificate for a hostname, and optional IP addresses."""
3939

4040
# Generate our key
@@ -259,4 +259,4 @@ def main() -> int:
259259
return 0
260260

261261
if __name__ == '__main__':
262-
sys.exit(main())
262+
sys.exit(main())

0 commit comments

Comments
 (0)