iker-python-setup 1.0.5__tar.gz → 1.0.7__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.
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/.github/workflows/pr.yml +27 -2
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/.github/workflows/push.yml +1 -1
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/PKG-INFO +4 -3
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/pyproject.toml +2 -1
- iker_python_setup-1.0.7/resources/unittest/setup/VERSION +1 -0
- iker_python_setup-1.0.7/resources/unittest/setup/VERSION_EXCESSIVE_PATCH +1 -0
- iker_python_setup-1.0.7/resources/unittest/setup/VERSION_NO_PATCH +1 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/src/iker_python_setup.egg-info/PKG-INFO +4 -3
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/src/iker_python_setup.egg-info/SOURCES.txt +5 -1
- iker_python_setup-1.0.7/test/iker_tests/setup_test.py +83 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/.editorconfig +0 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/.gitignore +0 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/MANIFEST.in +0 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/README.md +0 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/VERSION +0 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/setup.cfg +0 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/setup.py +0 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/src/iker/setup/__init__.py +0 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/src/iker_python_setup.egg-info/dependency_links.txt +0 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/src/iker_python_setup.egg-info/not-zip-safe +0 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/src/iker_python_setup.egg-info/requires.txt +0 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/src/iker_python_setup.egg-info/top_level.txt +0 -0
- {iker_python_setup-1.0.5/test/iker_tests → iker_python_setup-1.0.7/test}/iker_test.py +0 -0
- {iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/test/iker_tests/__init__.py +0 -0
|
@@ -24,7 +24,7 @@ jobs:
|
|
|
24
24
|
sudo apt-get install libxml2-dev libxslt1-dev llvm-14-dev
|
|
25
25
|
python -m pip install --upgrade pip
|
|
26
26
|
python -m pip install .[test]
|
|
27
|
-
python -m pytest . --cov --cov-config pyproject.toml
|
|
27
|
+
python -m pytest . --cov --cov-report xml --cov-config pyproject.toml
|
|
28
28
|
|
|
29
29
|
build-python312:
|
|
30
30
|
runs-on: ubuntu-latest
|
|
@@ -42,4 +42,29 @@ jobs:
|
|
|
42
42
|
sudo apt-get install libxml2-dev libxslt1-dev llvm-14-dev
|
|
43
43
|
python -m pip install --upgrade pip
|
|
44
44
|
python -m pip install .[test]
|
|
45
|
-
python -m pytest . --cov --cov-config pyproject.toml
|
|
45
|
+
python -m pytest . --cov --cov-report xml --cov-config pyproject.toml
|
|
46
|
+
|
|
47
|
+
build-python313:
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
steps:
|
|
50
|
+
- name: Setup Python
|
|
51
|
+
uses: actions/setup-python@v5
|
|
52
|
+
with:
|
|
53
|
+
python-version: "3.13"
|
|
54
|
+
|
|
55
|
+
- name: Checkout
|
|
56
|
+
uses: actions/checkout@v4
|
|
57
|
+
|
|
58
|
+
- name: Build and Test
|
|
59
|
+
run: |
|
|
60
|
+
sudo apt-get install libxml2-dev libxslt1-dev llvm-14-dev
|
|
61
|
+
python -m pip install --upgrade pip
|
|
62
|
+
python -m pip install .[test]
|
|
63
|
+
python -m pytest . --cov --cov-report xml --cov-config pyproject.toml
|
|
64
|
+
|
|
65
|
+
- name: Upload Coverage Report
|
|
66
|
+
uses: codecov/codecov-action@v5
|
|
67
|
+
with:
|
|
68
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
69
|
+
slug: ryanshou/iker-python-setup
|
|
70
|
+
fail_ci_if_error: true
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: iker-python-setup
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
4
4
|
Classifier: Programming Language :: Python :: 3
|
|
5
5
|
Classifier: Programming Language :: Python :: 3.11
|
|
6
6
|
Classifier: Programming Language :: Python :: 3.12
|
|
7
|
-
|
|
7
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
8
|
+
Requires-Python: <3.14,>=3.11
|
|
8
9
|
Requires-Dist: setuptools>=75.0
|
|
9
10
|
Requires-Dist: setuptools-scm>=8.0
|
|
10
11
|
Provides-Extra: test
|
|
@@ -8,11 +8,12 @@ build-backend = "setuptools.build_meta"
|
|
|
8
8
|
[project]
|
|
9
9
|
name = "iker-python-setup"
|
|
10
10
|
dynamic = ["version"]
|
|
11
|
-
requires-python = ">=3.11,<3.
|
|
11
|
+
requires-python = ">=3.11,<3.14"
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Programming Language :: Python :: 3",
|
|
14
14
|
"Programming Language :: Python :: 3.11",
|
|
15
15
|
"Programming Language :: Python :: 3.12",
|
|
16
|
+
"Programming Language :: Python :: 3.13",
|
|
16
17
|
]
|
|
17
18
|
dependencies = [
|
|
18
19
|
"setuptools>=75.0",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.2.3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.2.3.4
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.2
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: iker-python-setup
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
4
4
|
Classifier: Programming Language :: Python :: 3
|
|
5
5
|
Classifier: Programming Language :: Python :: 3.11
|
|
6
6
|
Classifier: Programming Language :: Python :: 3.12
|
|
7
|
-
|
|
7
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
8
|
+
Requires-Python: <3.14,>=3.11
|
|
8
9
|
Requires-Dist: setuptools>=75.0
|
|
9
10
|
Requires-Dist: setuptools-scm>=8.0
|
|
10
11
|
Provides-Extra: test
|
{iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/src/iker_python_setup.egg-info/SOURCES.txt
RENAMED
|
@@ -7,6 +7,9 @@ pyproject.toml
|
|
|
7
7
|
setup.py
|
|
8
8
|
.github/workflows/pr.yml
|
|
9
9
|
.github/workflows/push.yml
|
|
10
|
+
resources/unittest/setup/VERSION
|
|
11
|
+
resources/unittest/setup/VERSION_EXCESSIVE_PATCH
|
|
12
|
+
resources/unittest/setup/VERSION_NO_PATCH
|
|
10
13
|
src/iker/setup/__init__.py
|
|
11
14
|
src/iker_python_setup.egg-info/PKG-INFO
|
|
12
15
|
src/iker_python_setup.egg-info/SOURCES.txt
|
|
@@ -14,5 +17,6 @@ src/iker_python_setup.egg-info/dependency_links.txt
|
|
|
14
17
|
src/iker_python_setup.egg-info/not-zip-safe
|
|
15
18
|
src/iker_python_setup.egg-info/requires.txt
|
|
16
19
|
src/iker_python_setup.egg-info/top_level.txt
|
|
20
|
+
test/iker_test.py
|
|
17
21
|
test/iker_tests/__init__.py
|
|
18
|
-
test/iker_tests/
|
|
22
|
+
test/iker_tests/setup_test.py
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import unittest
|
|
3
|
+
import unittest.mock
|
|
4
|
+
|
|
5
|
+
import iker.setup
|
|
6
|
+
from iker_tests import resources_directory
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Test(unittest.TestCase):
|
|
10
|
+
|
|
11
|
+
def test_read_version_tuple(self):
|
|
12
|
+
major, minor, patch = iker.setup.read_version_tuple(os.path.join(resources_directory, "unittest/setup"),
|
|
13
|
+
version_file="VERSION",
|
|
14
|
+
patch_env_var="DUMMY_BUILD")
|
|
15
|
+
self.assertEqual(major, 1)
|
|
16
|
+
self.assertEqual(minor, 2)
|
|
17
|
+
self.assertEqual(patch, 3)
|
|
18
|
+
|
|
19
|
+
def test_read_version_tuple__excessive_patch(self):
|
|
20
|
+
major, minor, patch = iker.setup.read_version_tuple(os.path.join(resources_directory, "unittest/setup"),
|
|
21
|
+
version_file="VERSION_EXCESSIVE_PATCH",
|
|
22
|
+
patch_env_var="DUMMY_BUILD")
|
|
23
|
+
self.assertEqual(major, 1)
|
|
24
|
+
self.assertEqual(minor, 2)
|
|
25
|
+
self.assertEqual(patch, 3)
|
|
26
|
+
|
|
27
|
+
def test_read_version_tuple__no_patch(self):
|
|
28
|
+
major, minor, patch = iker.setup.read_version_tuple(os.path.join(resources_directory, "unittest/setup"),
|
|
29
|
+
version_file="VERSION_NO_PATCH",
|
|
30
|
+
patch_env_var="DUMMY_BUILD")
|
|
31
|
+
self.assertEqual(major, 1)
|
|
32
|
+
self.assertEqual(minor, 2)
|
|
33
|
+
self.assertEqual(patch, 0)
|
|
34
|
+
|
|
35
|
+
def test_read_version_tuple__env_patch(self):
|
|
36
|
+
with unittest.mock.patch.dict(os.environ, {"DUMMY_BUILD": "12345"}):
|
|
37
|
+
major, minor, patch = iker.setup.read_version_tuple(os.path.join(resources_directory, "unittest/setup"),
|
|
38
|
+
version_file="VERSION_NO_PATCH",
|
|
39
|
+
patch_env_var="DUMMY_BUILD")
|
|
40
|
+
self.assertEqual(major, 1)
|
|
41
|
+
self.assertEqual(minor, 2)
|
|
42
|
+
self.assertEqual(patch, 12345)
|
|
43
|
+
|
|
44
|
+
def test_read_version_tuple__patch_out_of_range(self):
|
|
45
|
+
with unittest.mock.patch.dict(os.environ, {"DUMMY_BUILD": "123456789"}):
|
|
46
|
+
major, minor, patch = iker.setup.read_version_tuple(os.path.join(resources_directory, "unittest/setup"),
|
|
47
|
+
version_file="VERSION_NO_PATCH",
|
|
48
|
+
patch_env_var="DUMMY_BUILD")
|
|
49
|
+
self.assertEqual(major, 1)
|
|
50
|
+
self.assertEqual(minor, 2)
|
|
51
|
+
self.assertEqual(patch, 999999)
|
|
52
|
+
|
|
53
|
+
def test_version_string_local(self):
|
|
54
|
+
version_string = iker.setup.version_string_local(os.path.join(resources_directory, "unittest/setup"),
|
|
55
|
+
version_file="VERSION",
|
|
56
|
+
patch_env_var="DUMMY_BUILD")
|
|
57
|
+
self.assertEqual(version_string, "1.2.3")
|
|
58
|
+
|
|
59
|
+
def test_version_string_local__excessive_patch(self):
|
|
60
|
+
version_string = iker.setup.version_string_local(os.path.join(resources_directory, "unittest/setup"),
|
|
61
|
+
version_file="VERSION_EXCESSIVE_PATCH",
|
|
62
|
+
patch_env_var="DUMMY_BUILD")
|
|
63
|
+
self.assertEqual(version_string, "1.2.3")
|
|
64
|
+
|
|
65
|
+
def test_version_string_local__no_patch(self):
|
|
66
|
+
version_string = iker.setup.version_string_local(os.path.join(resources_directory, "unittest/setup"),
|
|
67
|
+
version_file="VERSION_NO_PATCH",
|
|
68
|
+
patch_env_var="DUMMY_BUILD")
|
|
69
|
+
self.assertEqual(version_string, "1.2.0")
|
|
70
|
+
|
|
71
|
+
def test_version_string_local__env_patch(self):
|
|
72
|
+
with unittest.mock.patch.dict(os.environ, {"DUMMY_BUILD": "12345"}):
|
|
73
|
+
version_string = iker.setup.version_string_local(os.path.join(resources_directory, "unittest/setup"),
|
|
74
|
+
version_file="VERSION_NO_PATCH",
|
|
75
|
+
patch_env_var="DUMMY_BUILD")
|
|
76
|
+
self.assertEqual(version_string, "1.2.12345")
|
|
77
|
+
|
|
78
|
+
def test_version_string_local__patch_out_of_range(self):
|
|
79
|
+
with unittest.mock.patch.dict(os.environ, {"DUMMY_BUILD": "123456789"}):
|
|
80
|
+
version_string = iker.setup.version_string_local(os.path.join(resources_directory, "unittest/setup"),
|
|
81
|
+
version_file="VERSION_NO_PATCH",
|
|
82
|
+
patch_env_var="DUMMY_BUILD")
|
|
83
|
+
self.assertEqual(version_string, "1.2.999999")
|
|
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
|
{iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/src/iker_python_setup.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/src/iker_python_setup.egg-info/requires.txt
RENAMED
|
File without changes
|
{iker_python_setup-1.0.5 → iker_python_setup-1.0.7}/src/iker_python_setup.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|