Skip to content

Commit

Permalink
FIX: do not substitute ~= by ~== when adapting version syntax for tox (
Browse files Browse the repository at this point in the history
…#229)

* do not substitute ~= by ~== when adapting version syntax for tox
* update release notes
  • Loading branch information
j-ittner authored Apr 7, 2021
1 parent 19b056e commit a7239b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions RELEASE_NOTES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Release Notes
*pytools* 1.0
-------------

1.0.4
~~~~~

- FIX: do not substitute ~= by ~== when adapting version syntax for tox


1.0.3
~~~~~

Expand Down
2 changes: 1 addition & 1 deletion make.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def build_path_suffix(self) -> str:

def adapt_version_syntax(self, version: str) -> str:
# PIP expects == instead of =
return re.sub(r"(?<![<=>])=(?![<=>])", "==", version)
return re.sub(r"(?<![<=>~])=(?![<=>])", "==", version)

def clean(self) -> None:
# nothing to do – .tar.gz of same version will simply be replaced and
Expand Down

0 comments on commit a7239b7

Please sign in to comment.