-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from damianwasik98/vcs-urls
Parsing vcs urls in requirements and zope-event fix
- Loading branch information
Showing
9 changed files
with
66 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ wheel-filename | |
wheel-inspect>=1.6.0 | ||
pip>=1.5.3 | ||
junit-xml | ||
pip-requirements-parser>=32.0.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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
requests @ git+https://github.com/kennethreitz/requests@master | ||
requests @ git+ssh://github.com/kennethreitz/requests@master | ||
requests @ git+https://github.com/kennethreitz/[email protected] |
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 |
---|---|---|
|
@@ -8,10 +8,19 @@ | |
def test_read_requirements(): | ||
expected = [ | ||
('progressbar', '2.2'), | ||
('six', '1.7.3') | ||
('six', '1.7.3'), | ||
] | ||
assert expected == requirements.read_exact_versions('tests/fixture/sample_simple.txt') | ||
|
||
def test_read_vcs_requirements(): | ||
expected = [ | ||
('requests @ git+https://github.com/kennethreitz/requests@master', None), | ||
('requests @ git+ssh://github.com/kennethreitz/requests@master', None), | ||
('requests @ git+https://github.com/kennethreitz/[email protected]', None), | ||
] | ||
assert expected == requirements.read_exact_versions('tests/fixture/sample_vcs.txt') | ||
|
||
|
||
|
||
def test_multiple_versions(): | ||
expected = [ | ||
|
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 |
---|---|---|
|
@@ -9,9 +9,19 @@ | |
|
||
|
||
class TestBuilder: | ||
def test_build(self): | ||
@pytest.mark.parametrize( | ||
'args', ( | ||
('progressbar', '2.2'), | ||
('progressbar', None), | ||
('requests @ git+https://github.com/kennethreitz/[email protected]', None), | ||
('requests @ git+https://github.com/kennethreitz/requests@master', None), | ||
('zope-event', '5.0'), | ||
('devpi-common', '3.6.0'), | ||
) | ||
) | ||
def test_build(self, args): | ||
with wheeler.Builder() as builder: | ||
wheel_file = builder('progressbar', '2.2') | ||
wheel_file = builder(*args) | ||
assert re.match(r'.*\.whl$', wheel_file) | ||
assert path.exists(wheel_file) | ||
|
||
|