dpapi-config 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dpapi-config
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Encrypt selected fields of a JSON config file with Windows DPAPI
5
5
  Author: suimajian
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://github.com/suimajian/dpapi-config
8
+ Project-URL: Source, https://github.com/suimajian/dpapi-config
9
+ Project-URL: Issues, https://github.com/suimajian/dpapi-config/issues
8
10
  Keywords: dpapi,windows,config,secrets,encryption
9
11
  Classifier: License :: OSI Approved :: MIT License
10
12
  Classifier: Operating System :: Microsoft :: Windows
@@ -131,9 +133,10 @@ Deliberately not in this package, so you know what you are getting:
131
133
 
132
134
  ## Status
133
135
 
134
- 0.1.0 — published on PyPI via Trusted Publishing (OIDC, no token stored in the
135
- repository). Tags (`v*`) still build sdist + wheel and attach them to the GitHub
136
- release; the upload itself runs from `publish.yml` on demand.
136
+ 0.1.2 — on PyPI (`pip install dpapi-config`); 0.1.0 is yanked because its project page
137
+ still carried the pre-release README. Trusted Publishing (OIDC) does the upload,
138
+ so no token lives in this repository. Tags (`v*`) build sdist + wheel and attach
139
+ them to the GitHub release.
137
140
 
138
141
  ## Tests
139
142
 
@@ -114,9 +114,10 @@ Deliberately not in this package, so you know what you are getting:
114
114
 
115
115
  ## Status
116
116
 
117
- 0.1.0 — published on PyPI via Trusted Publishing (OIDC, no token stored in the
118
- repository). Tags (`v*`) still build sdist + wheel and attach them to the GitHub
119
- release; the upload itself runs from `publish.yml` on demand.
117
+ 0.1.2 — on PyPI (`pip install dpapi-config`); 0.1.0 is yanked because its project page
118
+ still carried the pre-release README. Trusted Publishing (OIDC) does the upload,
119
+ so no token lives in this repository. Tags (`v*`) build sdist + wheel and attach
120
+ them to the GitHub release.
120
121
 
121
122
  ## Tests
122
123
 
@@ -28,6 +28,8 @@ Example::
28
28
 
29
29
  from __future__ import annotations
30
30
 
31
+ __version__ = "0.1.2"
32
+
31
33
  import base64
32
34
  import ctypes
33
35
  import json
@@ -1,10 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dpapi-config
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Encrypt selected fields of a JSON config file with Windows DPAPI
5
5
  Author: suimajian
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://github.com/suimajian/dpapi-config
8
+ Project-URL: Source, https://github.com/suimajian/dpapi-config
9
+ Project-URL: Issues, https://github.com/suimajian/dpapi-config/issues
8
10
  Keywords: dpapi,windows,config,secrets,encryption
9
11
  Classifier: License :: OSI Approved :: MIT License
10
12
  Classifier: Operating System :: Microsoft :: Windows
@@ -131,9 +133,10 @@ Deliberately not in this package, so you know what you are getting:
131
133
 
132
134
  ## Status
133
135
 
134
- 0.1.0 — published on PyPI via Trusted Publishing (OIDC, no token stored in the
135
- repository). Tags (`v*`) still build sdist + wheel and attach them to the GitHub
136
- release; the upload itself runs from `publish.yml` on demand.
136
+ 0.1.2 — on PyPI (`pip install dpapi-config`); 0.1.0 is yanked because its project page
137
+ still carried the pre-release README. Trusted Publishing (OIDC) does the upload,
138
+ so no token lives in this repository. Tags (`v*`) build sdist + wheel and attach
139
+ them to the GitHub release.
137
140
 
138
141
  ## Tests
139
142
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dpapi-config"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  description = "Encrypt selected fields of a JSON config file with Windows DPAPI"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -20,6 +20,8 @@ classifiers = [
20
20
 
21
21
  [project.urls]
22
22
  Homepage = "https://github.com/suimajian/dpapi-config"
23
+ Source = "https://github.com/suimajian/dpapi-config"
24
+ Issues = "https://github.com/suimajian/dpapi-config/issues"
23
25
 
24
26
  [tool.setuptools]
25
27
  packages = ["dpapi_config"]
@@ -153,3 +153,15 @@ def test_null_secret_is_left_as_null(tmp_path):
153
153
  save(path, {"user": "me", "password": None}, PATHS)
154
154
  assert json.loads(path.read_text(encoding="utf-8"))["password"] is None
155
155
  assert load(path, PATHS)["password"] is None
156
+
157
+
158
+ def test_version_matches_pyproject():
159
+ import pathlib
160
+ import re
161
+
162
+ import dpapi_config
163
+
164
+ repo = pathlib.Path(__file__).resolve().parents[1]
165
+ declared = re.search(r'^version = "([^"]+)"', (repo / "pyproject.toml").read_text(encoding="utf-8"), re.M)
166
+ assert declared, "version missing from pyproject.toml"
167
+ assert declared.group(1) == dpapi_config.__version__
File without changes
File without changes