Remove __about__.py files, use __init__.py instead
Marco Ricci

Marco Ricci commited on 2024-06-08 19:07:53
Zeige 8 geänderte Dateien mit 11 Einfügungen und 18 Löschungen.


Apparently, this is a `hatch` convention/tradeoff, but one that doesn't
appear sensible to a project like this.

On that note, since we're starting with a clear target API in mind,
start directly at release 0.1.0 instead of the `hatch` default 0.0.1.
... ...
@@ -55,7 +55,7 @@ testpaths = ['src', 'tests']
55 55
 xfail_strict = true
56 56
 
57 57
 [tool.hatch.version]
58
-path = "src/derivepassphrase/__about__.py"
58
+path = "src/derivepassphrase/__init__.py"
59 59
 
60 60
 [tool.hatch.envs.hatch-test]
61 61
 default-args = ['src', 'tests']
... ...
@@ -89,7 +89,6 @@ source_pkgs = ["derivepassphrase", "tests"]
89 89
 branch = true
90 90
 parallel = true
91 91
 omit = [
92
-  "src/derivepassphrase/__about__.py",
93 92
   "src/derivepassphrase/__main__.py",
94 93
 ]
95 94
 
... ...
@@ -1,5 +0,0 @@
1
-# SPDX-FileCopyrightText: 2024 Marco Ricci <m@the13thletter.info>
2
-#
3
-# SPDX-License-Identifier: MIT
4
-__version__ = "0.0.1"
5
-__author__ = "Marco Ricci <m@the13thletter.info>"
... ...
@@ -18,6 +18,9 @@ from typing import assert_type, reveal_type
18 18
 import sequin
19 19
 import ssh_agent_client
20 20
 
21
+__author__ = "Marco Ricci <m@the13thletter.info>"
22
+__version__ = "0.1.0"
23
+
21 24
 class Vault:
22 25
     """A work-alike of James Coglan's vault.
23 26
 
... ...
@@ -3,8 +3,10 @@
3 3
 # SPDX-License-Identifier: MIT
4 4
 import click
5 5
 
6
-from derivepassphrase.__about__ import __version__
6
+import derivepassphrase as dpp
7 7
 
8
+__author__ = dpp.__author__
9
+__version__ = dpp.__version__
8 10
 
9 11
 __all__ = ('derivepassphrase',)
10 12
 
... ...
@@ -1,5 +0,0 @@
1
-# SPDX-FileCopyrightText: 2024 Marco Ricci <m@the13thletter.info>
2
-#
3
-# SPDX-License-Identifier: MIT
4
-__version__ = "0.0.1"
5
-__author__ = "Marco Ricci <m@the13thletter.info>"
... ...
@@ -28,6 +28,8 @@ from collections.abc import Iterator, MutableSequence, Sequence
28 28
 from typing import assert_type, Literal, TypeAlias
29 29
 
30 30
 __all__ = ('Sequin', 'SequinExhaustedException')
31
+__author__ = 'Marco Ricci <m@the13thletter.info>'
32
+__version__ = "0.1.0"
31 33
 
32 34
 class Sequin:
33 35
     """Generate pseudorandom non-negative numbers in different ranges.
... ...
@@ -1,5 +0,0 @@
1
-# SPDX-FileCopyrightText: 2024 Marco Ricci <m@the13thletter.info>
2
-#
3
-# SPDX-License-Identifier: MIT
4
-__version__ = "0.0.1"
5
-__author__ = "Marco Ricci <m@the13thletter.info>"
... ...
@@ -18,6 +18,8 @@ from typing import Any, NamedTuple, Self, TypeAlias
18 18
 from ssh_agent_client.types import KeyCommentPair, SSH_AGENT, SSH_AGENTC
19 19
 
20 20
 __all__ = ('SSHAgentClient',)
21
+__author__ = 'Marco Ricci <m@the13thletter.info>'
22
+__version__ = "0.1.0"
21 23
 
22 24
 _socket = socket
23 25
 
24 26