nodeenv 1.9.0__tar.gz → 1.9.1__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.
- {nodeenv-1.9.0 → nodeenv-1.9.1}/PKG-INFO +1 -1
- {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.egg-info/PKG-INFO +1 -1
- {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.py +6 -2
- {nodeenv-1.9.0 → nodeenv-1.9.1}/tests/nodeenv_test.py +6 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/.coveragerc +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/.github/workflows/main.yml +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/.gitignore +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/AUTHORS +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/CHANGES +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/LICENSE +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/MANIFEST.in +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/Makefile +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/README +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/README.rst +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/README.ru.rst +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/changelog +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/compat +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/control +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/copyright +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/nodeenv.links +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/nodeenv.triggers +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/rules +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.egg-info/SOURCES.txt +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.egg-info/dependency_links.txt +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.egg-info/entry_points.txt +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.egg-info/not-zip-safe +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.egg-info/top_level.txt +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/pyproject.toml +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/requirements-dev.txt +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/setup.cfg +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/setup.py +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/tests/__init__.py +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/tests/nodejs_index.json +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/tests/test_install_activate.py +0 -0
- {nodeenv-1.9.0 → nodeenv-1.9.1}/tox.ini +0 -0
|
@@ -48,7 +48,7 @@ except ImportError: # pragma: no cover (py3 only)
|
|
|
48
48
|
import http
|
|
49
49
|
IncompleteRead = http.client.IncompleteRead
|
|
50
50
|
|
|
51
|
-
nodeenv_version = '1.9.
|
|
51
|
+
nodeenv_version = '1.9.1'
|
|
52
52
|
|
|
53
53
|
join = os.path.join
|
|
54
54
|
abspath = os.path.abspath
|
|
@@ -175,7 +175,11 @@ def parse_version(version_str):
|
|
|
175
175
|
"""
|
|
176
176
|
Parse version string to a tuple of integer parts
|
|
177
177
|
"""
|
|
178
|
-
|
|
178
|
+
v = version_str.replace('v', '').split('.')[:3]
|
|
179
|
+
# remove all after '+' in the PATCH part of the version
|
|
180
|
+
if len(v) >= 3:
|
|
181
|
+
v[2] = v[2].split('+')[0]
|
|
182
|
+
return tuple(map(int, v))
|
|
179
183
|
|
|
180
184
|
|
|
181
185
|
def node_version_from_args(args):
|
|
@@ -161,3 +161,9 @@ def test__download_node_file():
|
|
|
161
161
|
n_attempt=5
|
|
162
162
|
)
|
|
163
163
|
assert m_urlopen.call_count == 5
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
def test_parse_version():
|
|
167
|
+
assert nodeenv.parse_version("v21.7") == (21, 7)
|
|
168
|
+
assert nodeenv.parse_version("v21.7.3") == (21, 7, 3)
|
|
169
|
+
assert nodeenv.parse_version("v21.7.3+0-b20240228T18452699") == (21, 7, 3)
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|