iker-python-setup 1.0.10__tar.gz → 1.0.12__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.10 → iker_python_setup-1.0.12}/.github/workflows/push.yml +1 -1
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/PKG-INFO +1 -1
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/README.md +1 -1
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/src/iker_python_setup.egg-info/PKG-INFO +1 -1
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/test/iker_tests/setup_test.py +58 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/.editorconfig +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/.github/workflows/pr.yml +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/.gitignore +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/MANIFEST.in +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/VERSION +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/pyproject.toml +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/resources/unittest/setup/VERSION +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/resources/unittest/setup/VERSION_EXCESSIVE_PATCH +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/resources/unittest/setup/VERSION_NO_PATCH +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/setup.cfg +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/setup.py +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/src/iker/setup/__init__.py +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/src/iker_python_setup.egg-info/SOURCES.txt +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/src/iker_python_setup.egg-info/dependency_links.txt +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/src/iker_python_setup.egg-info/not-zip-safe +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/src/iker_python_setup.egg-info/requires.txt +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/src/iker_python_setup.egg-info/top_level.txt +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/test/iker_test.py +0 -0
- {iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/test/iker_tests/__init__.py +0 -0
|
@@ -81,7 +81,7 @@ the [official site](https://www.anaconda.com/products/distribution)
|
|
|
81
81
|
Create a Conda environment and install the modules and their dependencies in it
|
|
82
82
|
|
|
83
83
|
```shell
|
|
84
|
-
conda create -n iker python=3.
|
|
84
|
+
conda create -n iker python=3.13
|
|
85
85
|
conda activate iker
|
|
86
86
|
|
|
87
87
|
pip install .
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import os
|
|
2
|
+
import re
|
|
2
3
|
import unittest
|
|
3
4
|
import unittest.mock
|
|
4
5
|
|
|
6
|
+
import pytest
|
|
7
|
+
|
|
5
8
|
import iker.setup
|
|
6
9
|
from iker_tests import resources_directory
|
|
7
10
|
|
|
@@ -81,3 +84,58 @@ class Test(unittest.TestCase):
|
|
|
81
84
|
version_file="VERSION_NO_PATCH",
|
|
82
85
|
patch_env_var="DUMMY_BUILD")
|
|
83
86
|
self.assertEqual(version_string, "1.2.999999")
|
|
87
|
+
|
|
88
|
+
def test_version_string_scm(self):
|
|
89
|
+
version_string = iker.setup.version_string_scm(os.path.join(resources_directory, "unittest/setup"),
|
|
90
|
+
version_file="VERSION",
|
|
91
|
+
patch_env_var="DUMMY_BUILD",
|
|
92
|
+
scm_branch_name="dummy_branch",
|
|
93
|
+
scm_branch_env_var="DUMMY_BRANCH")
|
|
94
|
+
self.assertTrue(version_string.startswith("1.2.0"))
|
|
95
|
+
self.assertTrue(re.match(r"^\d+\.\d+\.\d+(\+g[0-9a-f]{7}(\.dirty)?)?$", version_string))
|
|
96
|
+
|
|
97
|
+
def test_version_string_scm__env_branch(self):
|
|
98
|
+
with unittest.mock.patch.dict(os.environ, {"DUMMY_BRANCH": "dummy_branch"}):
|
|
99
|
+
version_string = iker.setup.version_string_scm(os.path.join(resources_directory, "unittest/setup"),
|
|
100
|
+
version_file="VERSION",
|
|
101
|
+
patch_env_var="DUMMY_BUILD",
|
|
102
|
+
scm_branch_name="dummy_branch",
|
|
103
|
+
scm_branch_env_var="DUMMY_BRANCH")
|
|
104
|
+
self.assertEqual(version_string, "1.2.3")
|
|
105
|
+
|
|
106
|
+
def test_version_string(self):
|
|
107
|
+
version_string = iker.setup.version_string(os.path.join(resources_directory, "unittest/setup"),
|
|
108
|
+
version_file="VERSION",
|
|
109
|
+
patch_env_var="DUMMY_BUILD",
|
|
110
|
+
scm_branch_name="dummy_branch",
|
|
111
|
+
scm_branch_env_var="DUMMY_BRANCH")
|
|
112
|
+
self.assertTrue(version_string.startswith("1.2.0"))
|
|
113
|
+
self.assertTrue(re.match(r"^\d+\.\d+\.\d+(\+g[0-9a-f]{7}(\.dirty)?)?$", version_string))
|
|
114
|
+
|
|
115
|
+
def test_version_string__env_branch(self):
|
|
116
|
+
with unittest.mock.patch.dict(os.environ, {"DUMMY_BRANCH": "dummy_branch"}):
|
|
117
|
+
version_string = iker.setup.version_string(os.path.join(resources_directory, "unittest/setup"),
|
|
118
|
+
version_file="VERSION",
|
|
119
|
+
patch_env_var="DUMMY_BUILD",
|
|
120
|
+
scm_branch_name="dummy_branch",
|
|
121
|
+
scm_branch_env_var="DUMMY_BRANCH")
|
|
122
|
+
self.assertEqual(version_string, "1.2.3")
|
|
123
|
+
|
|
124
|
+
def test_version_string__with_exception_handled(self):
|
|
125
|
+
with unittest.mock.patch("iker.setup.version_string_scm", side_effect=Exception()):
|
|
126
|
+
version_string = iker.setup.version_string(os.path.join(resources_directory, "unittest/setup"),
|
|
127
|
+
version_file="VERSION",
|
|
128
|
+
patch_env_var="DUMMY_BUILD",
|
|
129
|
+
scm_branch_name="dummy_branch",
|
|
130
|
+
scm_branch_env_var="DUMMY_BRANCH")
|
|
131
|
+
self.assertEqual(version_string, "1.2.3")
|
|
132
|
+
|
|
133
|
+
def test_version_string__with_exception_raised(self):
|
|
134
|
+
with unittest.mock.patch("iker.setup.version_string_scm", side_effect=Exception()):
|
|
135
|
+
with pytest.raises(Exception):
|
|
136
|
+
version_string = iker.setup.version_string(os.path.join(resources_directory, "unittest/setup"),
|
|
137
|
+
version_file="VERSION",
|
|
138
|
+
patch_env_var="DUMMY_BUILD",
|
|
139
|
+
scm_branch_name="dummy_branch",
|
|
140
|
+
scm_branch_env_var="DUMMY_BRANCH",
|
|
141
|
+
strict=True)
|
|
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.10 → iker_python_setup-1.0.12}/resources/unittest/setup/VERSION_NO_PATCH
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/src/iker_python_setup.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/src/iker_python_setup.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/src/iker_python_setup.egg-info/requires.txt
RENAMED
|
File without changes
|
{iker_python_setup-1.0.10 → iker_python_setup-1.0.12}/src/iker_python_setup.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|