ci-helper 0.3.0__tar.gz → 0.4.0__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.
- {ci_helper-0.3.0/ci_helper.egg-info → ci_helper-0.4.0}/PKG-INFO +3 -2
- {ci_helper-0.3.0 → ci_helper-0.4.0}/ci_helper/__main__.py +1 -1
- ci_helper-0.4.0/ci_helper/__version__.py +12 -0
- {ci_helper-0.3.0 → ci_helper-0.4.0/ci_helper.egg-info}/PKG-INFO +3 -2
- {ci_helper-0.3.0 → ci_helper-0.4.0}/ci_helper.egg-info/SOURCES.txt +0 -1
- ci_helper-0.3.0/ci_distinfo.py +0 -1
- ci_helper-0.3.0/ci_helper/__version__.py +0 -18
- {ci_helper-0.3.0 → ci_helper-0.4.0}/.gitignore +0 -0
- {ci_helper-0.3.0 → ci_helper-0.4.0}/LICENSE.txt +0 -0
- {ci_helper-0.3.0 → ci_helper-0.4.0}/README.md +0 -0
- {ci_helper-0.3.0 → ci_helper-0.4.0}/ci_helper/__init__.py +0 -0
- {ci_helper-0.3.0 → ci_helper-0.4.0}/ci_helper/command/__init__.py +0 -0
- {ci_helper-0.3.0 → ci_helper-0.4.0}/ci_helper/command/ci_distinfo.py +0 -0
- {ci_helper-0.3.0 → ci_helper-0.4.0}/ci_helper.egg-info/dependency_links.txt +0 -0
- {ci_helper-0.3.0 → ci_helper-0.4.0}/ci_helper.egg-info/entry_points.txt +0 -0
- {ci_helper-0.3.0 → ci_helper-0.4.0}/ci_helper.egg-info/requires.txt +0 -0
- {ci_helper-0.3.0 → ci_helper-0.4.0}/ci_helper.egg-info/top_level.txt +0 -0
- {ci_helper-0.3.0 → ci_helper-0.4.0}/pyproject.toml +0 -0
- {ci_helper-0.3.0 → ci_helper-0.4.0}/setup.cfg +0 -0
|
@@ -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
|
|
|
@@ -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}")
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
import importlib.metadata
|
|
3
|
+
|
|
4
|
+
root = Path(__file__).parent.parent
|
|
5
|
+
if (root / '.git').is_dir():
|
|
6
|
+
from setuptools_scm import get_version
|
|
7
|
+
__version__ = get_version(root, local_scheme="no-local-version")
|
|
8
|
+
else:
|
|
9
|
+
try:
|
|
10
|
+
__version__ = importlib.metadata.version(__package__)
|
|
11
|
+
except importlib.metadata.PackageNotFoundError:
|
|
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
|
|
ci_helper-0.3.0/ci_distinfo.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from ci_helper.ci_distinfo import ci_distinfo
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
from pathlib import Path
|
|
3
|
-
import importlib.metadata as 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
|
-
}
|
|
9
|
-
|
|
10
|
-
root = Path(__file__).parent.parent
|
|
11
|
-
if (root / '.git').is_dir():
|
|
12
|
-
from setuptools_scm import get_version
|
|
13
|
-
__version__ = get_version(root, **VERSION_SCHEME)
|
|
14
|
-
else:
|
|
15
|
-
try:
|
|
16
|
-
__version__ = importlib_metadata.version(__package__)
|
|
17
|
-
except importlib_metadata.PackageNotFoundError:
|
|
18
|
-
__version__ = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|