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.
Files changed (35) hide show
  1. {nodeenv-1.9.0 → nodeenv-1.9.1}/PKG-INFO +1 -1
  2. {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.egg-info/PKG-INFO +1 -1
  3. {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.py +6 -2
  4. {nodeenv-1.9.0 → nodeenv-1.9.1}/tests/nodeenv_test.py +6 -0
  5. {nodeenv-1.9.0 → nodeenv-1.9.1}/.coveragerc +0 -0
  6. {nodeenv-1.9.0 → nodeenv-1.9.1}/.github/workflows/main.yml +0 -0
  7. {nodeenv-1.9.0 → nodeenv-1.9.1}/.gitignore +0 -0
  8. {nodeenv-1.9.0 → nodeenv-1.9.1}/AUTHORS +0 -0
  9. {nodeenv-1.9.0 → nodeenv-1.9.1}/CHANGES +0 -0
  10. {nodeenv-1.9.0 → nodeenv-1.9.1}/LICENSE +0 -0
  11. {nodeenv-1.9.0 → nodeenv-1.9.1}/MANIFEST.in +0 -0
  12. {nodeenv-1.9.0 → nodeenv-1.9.1}/Makefile +0 -0
  13. {nodeenv-1.9.0 → nodeenv-1.9.1}/README +0 -0
  14. {nodeenv-1.9.0 → nodeenv-1.9.1}/README.rst +0 -0
  15. {nodeenv-1.9.0 → nodeenv-1.9.1}/README.ru.rst +0 -0
  16. {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/changelog +0 -0
  17. {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/compat +0 -0
  18. {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/control +0 -0
  19. {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/copyright +0 -0
  20. {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/nodeenv.links +0 -0
  21. {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/nodeenv.triggers +0 -0
  22. {nodeenv-1.9.0 → nodeenv-1.9.1}/debian-upstream/rules +0 -0
  23. {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.egg-info/SOURCES.txt +0 -0
  24. {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.egg-info/dependency_links.txt +0 -0
  25. {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.egg-info/entry_points.txt +0 -0
  26. {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.egg-info/not-zip-safe +0 -0
  27. {nodeenv-1.9.0 → nodeenv-1.9.1}/nodeenv.egg-info/top_level.txt +0 -0
  28. {nodeenv-1.9.0 → nodeenv-1.9.1}/pyproject.toml +0 -0
  29. {nodeenv-1.9.0 → nodeenv-1.9.1}/requirements-dev.txt +0 -0
  30. {nodeenv-1.9.0 → nodeenv-1.9.1}/setup.cfg +0 -0
  31. {nodeenv-1.9.0 → nodeenv-1.9.1}/setup.py +0 -0
  32. {nodeenv-1.9.0 → nodeenv-1.9.1}/tests/__init__.py +0 -0
  33. {nodeenv-1.9.0 → nodeenv-1.9.1}/tests/nodejs_index.json +0 -0
  34. {nodeenv-1.9.0 → nodeenv-1.9.1}/tests/test_install_activate.py +0 -0
  35. {nodeenv-1.9.0 → nodeenv-1.9.1}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nodeenv
3
- Version: 1.9.0
3
+ Version: 1.9.1
4
4
  Summary: Node.js virtual environment builder
5
5
  Home-page: https://github.com/ekalinin/nodeenv
6
6
  Author: Eugene Kalinin
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nodeenv
3
- Version: 1.9.0
3
+ Version: 1.9.1
4
4
  Summary: Node.js virtual environment builder
5
5
  Home-page: https://github.com/ekalinin/nodeenv
6
6
  Author: Eugene Kalinin
@@ -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.0'
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
- return tuple(map(int, version_str.replace('v', '').split('.')))
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