pacparser 1.5.1.dev7__tar.gz → 1.5.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pacparser
3
- Version: 1.5.1.dev7
3
+ Version: 1.5.2
4
4
  Summary: Pacparser package
5
5
  Home-page: https://github.com/manugarg/pacparser
6
6
  Author: Manu Garg
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pacparser
3
- Version: 1.5.1.dev7
3
+ Version: 1.5.2
4
4
  Summary: Pacparser package
5
5
  Home-page: https://github.com/manugarg/pacparser
6
6
  Author: Manu Garg
@@ -59,8 +59,11 @@ def module_path():
59
59
  def sanitize_version(ver):
60
60
  ver = ver.strip()
61
61
  # Strip first 'v' and last part from git provided versions.
62
- # For example, v1.3.8-12-g231 becomes v1.3.8-12.
63
- ver = re.sub(r"^v?([\d]{1,3}\.[\d]{1,3}\.[\d]{1,3}(-[\d]{1,3})).*$", "\\1", ver)
62
+ # For example, v1.3.8-12-g231 becomes 1.3.8-12, and an exact tag like
63
+ # v1.3.8 becomes 1.3.8.
64
+ ver = re.sub(
65
+ r"^v?([\d]{1,3}\.[\d]{1,3}\.[\d]{1,3}(-[\d]{1,3})?)(-.*)?$", "\\1", ver
66
+ )
64
67
  # 1.3.8-12 becomes 1.3.8.dev12
65
68
  return ver.replace("-", ".dev")
66
69
 
@@ -0,0 +1 @@
1
+ VERSION=1.5.2
@@ -1 +0,0 @@
1
- VERSION=1.5.1.dev7
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes