-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: drop setuptools, pkg_resources. Don't use pip internal for gl…
…obal scripts folder (#33) * Change: drop setuptools * Change: to_version_tuple -> packaging.version.parse * Drop setuptools * Bump dependencies * Change: don't use pip internal for global scripts folder * Fix: use utf8 encoding * Upgrade python version * Update doc
- Loading branch information
Showing
14 changed files
with
116 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
pylint==2.4.4 | ||
pytest==5.3.5 | ||
pylint==2.12.2 | ||
pytest==6.2.5 | ||
pyxcute==0.6.0 | ||
sphinx==2.3.1 | ||
twine==3.1.1 | ||
wheel==0.34.2 | ||
sphinx==4.3.2 | ||
twine==3.7.1 | ||
wheel==0.37.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
def test_pypi_compatible(): | ||
from vpip.pypi import is_compatible | ||
assert is_compatible("0.1.0", "0.2.0") is False | ||
assert is_compatible("1.1.0", "1.2.0") is True | ||
assert is_compatible("1.1.0", "2.2.0") is False | ||
from packaging.version import parse as p | ||
assert is_compatible(p("0.1.0"), p("0.2.0")) is False | ||
assert is_compatible(p("1.1.0"), p("1.2.0")) is True | ||
assert is_compatible(p("1.1.0"), p("2.2.0")) is False | ||
|
||
def test_global_script_folder(): | ||
# make sure the script folder is already in the path | ||
from vpip.venv import get_global_script_folders | ||
import os | ||
import pathlib | ||
paths = set(pathlib.Path(p) for p in os.environ["PATH"].split(os.pathsep)) | ||
assert any(pathlib.Path(f) in paths for f in get_global_script_folders()) | ||
|
||
assert any(f in paths for f in get_global_script_folders()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.