ci-helper 0.3.0__py3-none-any.whl → 0.4.0__py3-none-any.whl
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.
- ci_helper/__main__.py +1 -1
- ci_helper/__version__.py +4 -10
- {ci_helper-0.3.0.dist-info → ci_helper-0.4.0.dist-info}/METADATA +3 -2
- ci_helper-0.4.0.dist-info/RECORD +11 -0
- {ci_helper-0.3.0.dist-info → ci_helper-0.4.0.dist-info}/WHEEL +1 -1
- ci_helper-0.3.0.dist-info/RECORD +0 -11
- {ci_helper-0.3.0.dist-info → ci_helper-0.4.0.dist-info}/entry_points.txt +0 -0
- {ci_helper-0.3.0.dist-info → ci_helper-0.4.0.dist-info/licenses}/LICENSE.txt +0 -0
- {ci_helper-0.3.0.dist-info → ci_helper-0.4.0.dist-info}/top_level.txt +0 -0
ci_helper/__main__.py
CHANGED
|
@@ -34,7 +34,7 @@ def setup_py(project_dir):
|
|
|
34
34
|
|
|
35
35
|
def get_pythons():
|
|
36
36
|
"""Return stable, non-end-of-life Python versions in X.Y format"""
|
|
37
|
-
URL = "https://
|
|
37
|
+
URL = "https://peps.python.org/api/release-cycle.json"
|
|
38
38
|
response = requests.get(URL, timeout=30)
|
|
39
39
|
if not response.ok:
|
|
40
40
|
raise ValueError(f"{response.status_code} {response.reason}")
|
ci_helper/__version__.py
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import os
|
|
2
1
|
from pathlib import Path
|
|
3
|
-
import importlib.metadata
|
|
4
|
-
|
|
5
|
-
VERSION_SCHEME = {
|
|
6
|
-
"version_scheme": os.getenv("SCM_VERSION_SCHEME", "guess-next-dev"),
|
|
7
|
-
"local_scheme": os.getenv("SCM_LOCAL_SCHEME", "node-and-date"),
|
|
8
|
-
}
|
|
2
|
+
import importlib.metadata
|
|
9
3
|
|
|
10
4
|
root = Path(__file__).parent.parent
|
|
11
5
|
if (root / '.git').is_dir():
|
|
12
6
|
from setuptools_scm import get_version
|
|
13
|
-
__version__ = get_version(root,
|
|
7
|
+
__version__ = get_version(root, local_scheme="no-local-version")
|
|
14
8
|
else:
|
|
15
9
|
try:
|
|
16
|
-
__version__ =
|
|
17
|
-
except
|
|
10
|
+
__version__ = importlib.metadata.version(__package__)
|
|
11
|
+
except importlib.metadata.PackageNotFoundError:
|
|
18
12
|
__version__ = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: ci-helper
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: Get info on how a package should be built on CI
|
|
5
5
|
Author-email: Christopher Billington <chrisjbillington@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -40,6 +40,7 @@ Requires-Dist: setuptools
|
|
|
40
40
|
Requires-Dist: setuptools_scm
|
|
41
41
|
Requires-Dist: toml
|
|
42
42
|
Requires-Dist: requests
|
|
43
|
+
Dynamic: license-file
|
|
43
44
|
|
|
44
45
|
# ci-helper
|
|
45
46
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
ci_helper/__init__.py,sha256=npB_KdSACjRyJBy26TlLH10bIQfUOiuSsY3qfbOPsrE,89
|
|
2
|
+
ci_helper/__main__.py,sha256=gGHSniQjrck8JwdRYIVHPMYlKSZE1e9XKYETOqbt1w0,4745
|
|
3
|
+
ci_helper/__version__.py,sha256=h4m8-2GhVmqxuv1qcdjQ_zfzpW0euhPUqu7z5e3ZiJM,385
|
|
4
|
+
ci_helper/command/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
ci_helper/command/ci_distinfo.py,sha256=aTfWgQ1mq2dNBW7IYv0Tv0DBogMyb5zgV2nf7sayc8M,2052
|
|
6
|
+
ci_helper-0.4.0.dist-info/licenses/LICENSE.txt,sha256=3mgN7gts5RUJpaxp4BZ8quNCSpZGbtsFib10aRfwGHc,1079
|
|
7
|
+
ci_helper-0.4.0.dist-info/METADATA,sha256=CrLQvaBs8AsN4-exc1IeZrZtmGqZ5tlyoPqRmHMXb8A,6931
|
|
8
|
+
ci_helper-0.4.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
9
|
+
ci_helper-0.4.0.dist-info/entry_points.txt,sha256=9elbjJQ006m9owk3zYufl-CMqaL9F5cgHVDeJcNFxwE,54
|
|
10
|
+
ci_helper-0.4.0.dist-info/top_level.txt,sha256=hDnJJ-LWQDv6CsxZ0T4b69G4yfSND5EofhlgMu8QrfU,10
|
|
11
|
+
ci_helper-0.4.0.dist-info/RECORD,,
|
ci_helper-0.3.0.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
ci_helper/__init__.py,sha256=npB_KdSACjRyJBy26TlLH10bIQfUOiuSsY3qfbOPsrE,89
|
|
2
|
-
ci_helper/__main__.py,sha256=0IqVYb97vAk3reh-WpokUdHoGVzu8G6b8LB5U1kcN-E,4791
|
|
3
|
-
ci_helper/__version__.py,sha256=5oJypwTr9_Ma-hQVpwN73Ldw8m6aRwAfacMEAWFMlU8,565
|
|
4
|
-
ci_helper/command/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
ci_helper/command/ci_distinfo.py,sha256=aTfWgQ1mq2dNBW7IYv0Tv0DBogMyb5zgV2nf7sayc8M,2052
|
|
6
|
-
ci_helper-0.3.0.dist-info/LICENSE.txt,sha256=3mgN7gts5RUJpaxp4BZ8quNCSpZGbtsFib10aRfwGHc,1079
|
|
7
|
-
ci_helper-0.3.0.dist-info/METADATA,sha256=2r_-7W0L80hnDgVwb85kIq-sAnbPPj4uQhO5NjzsJa8,6909
|
|
8
|
-
ci_helper-0.3.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
9
|
-
ci_helper-0.3.0.dist-info/entry_points.txt,sha256=9elbjJQ006m9owk3zYufl-CMqaL9F5cgHVDeJcNFxwE,54
|
|
10
|
-
ci_helper-0.3.0.dist-info/top_level.txt,sha256=hDnJJ-LWQDv6CsxZ0T4b69G4yfSND5EofhlgMu8QrfU,10
|
|
11
|
-
ci_helper-0.3.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|