-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When testing the behavior for git packages with a setup.py file, the Provider class would create a temporary virtual environment and execute python setup.py egg_info. Both actions are costly and take time. By mocking them, we can reduce the tests time by a factor of 4 or 5.
- Loading branch information
Showing
26 changed files
with
125 additions
and
9 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 |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
*.egg | ||
!/tests/**/*.egg | ||
/*.egg-info | ||
/tests/fixtures/**/*.egg-info | ||
/dist/* | ||
build | ||
_build | ||
|
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
12 changes: 12 additions & 0 deletions
12
tests/fixtures/git/github.com/demo/demo/demo.egg-info/PKG-INFO
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,12 @@ | ||
Metadata-Version: 2.1 | ||
Name: demo | ||
Version: 0.1.2 | ||
Summary: Demo project. | ||
Home-page: https://github.com/demo/demo | ||
Author: Sébastien Eustace | ||
Author-email: [email protected] | ||
License: MIT | ||
Description: UNKNOWN | ||
Platform: UNKNOWN | ||
Provides-Extra: bar | ||
Provides-Extra: foo |
7 changes: 7 additions & 0 deletions
7
tests/fixtures/git/github.com/demo/demo/demo.egg-info/SOURCES.txt
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,7 @@ | ||
setup.py | ||
demo/__init__.py | ||
demo.egg-info/PKG-INFO | ||
demo.egg-info/SOURCES.txt | ||
demo.egg-info/dependency_links.txt | ||
demo.egg-info/requires.txt | ||
demo.egg-info/top_level.txt |
Empty file.
7 changes: 7 additions & 0 deletions
7
tests/fixtures/git/github.com/demo/demo/demo.egg-info/requires.txt
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,7 @@ | ||
pendulum>=1.4.4 | ||
|
||
[bar] | ||
tomlkit | ||
|
||
[foo] | ||
cleo |
1 change: 1 addition & 0 deletions
1
tests/fixtures/git/github.com/demo/demo/demo.egg-info/top_level.txt
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 @@ | ||
demo |
10 changes: 10 additions & 0 deletions
10
tests/fixtures/git/github.com/demo/no-dependencies/demo.egg-info/PKG-INFO
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,10 @@ | ||
Metadata-Version: 1.0 | ||
Name: demo | ||
Version: 0.1.2 | ||
Summary: Demo project. | ||
Home-page: https://github.com/demo/demo | ||
Author: Sébastien Eustace | ||
Author-email: [email protected] | ||
License: MIT | ||
Description: UNKNOWN | ||
Platform: UNKNOWN |
6 changes: 6 additions & 0 deletions
6
tests/fixtures/git/github.com/demo/no-dependencies/demo.egg-info/SOURCES.txt
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,6 @@ | ||
setup.py | ||
demo/__init__.py | ||
demo.egg-info/PKG-INFO | ||
demo.egg-info/SOURCES.txt | ||
demo.egg-info/dependency_links.txt | ||
demo.egg-info/top_level.txt |
Empty file.
1 change: 1 addition & 0 deletions
1
tests/fixtures/git/github.com/demo/no-dependencies/demo.egg-info/top_level.txt
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 @@ | ||
demo |
12 changes: 12 additions & 0 deletions
12
tests/fixtures/git/github.com/demo/non-canonical-name/Demo.egg-info/PKG-INFO
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,12 @@ | ||
Metadata-Version: 2.1 | ||
Name: Demo | ||
Version: 0.1.2 | ||
Summary: Demo project. | ||
Home-page: https://github.com/demo/demo | ||
Author: Sébastien Eustace | ||
Author-email: [email protected] | ||
License: MIT | ||
Description: UNKNOWN | ||
Platform: UNKNOWN | ||
Provides-Extra: foo | ||
Provides-Extra: bar |
7 changes: 7 additions & 0 deletions
7
tests/fixtures/git/github.com/demo/non-canonical-name/Demo.egg-info/SOURCES.txt
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,7 @@ | ||
setup.py | ||
Demo.egg-info/PKG-INFO | ||
Demo.egg-info/SOURCES.txt | ||
Demo.egg-info/dependency_links.txt | ||
Demo.egg-info/requires.txt | ||
Demo.egg-info/top_level.txt | ||
demo/__init__.py |
Empty file.
7 changes: 7 additions & 0 deletions
7
tests/fixtures/git/github.com/demo/non-canonical-name/Demo.egg-info/requires.txt
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,7 @@ | ||
pendulum>=1.4.4 | ||
|
||
[bar] | ||
tomlkit | ||
|
||
[foo] | ||
cleo |
1 change: 1 addition & 0 deletions
1
tests/fixtures/git/github.com/demo/non-canonical-name/Demo.egg-info/top_level.txt
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 @@ | ||
demo |
10 changes: 10 additions & 0 deletions
10
tests/fixtures/project_with_setup/my_package.egg-info/PKG-INFO
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,10 @@ | ||
Metadata-Version: 1.0 | ||
Name: my-package | ||
Version: 0.1.2 | ||
Summary: Demo project. | ||
Home-page: https://github.com/demo/demo | ||
Author: Sébastien Eustace | ||
Author-email: [email protected] | ||
License: MIT | ||
Description: UNKNOWN | ||
Platform: UNKNOWN |
7 changes: 7 additions & 0 deletions
7
tests/fixtures/project_with_setup/my_package.egg-info/SOURCES.txt
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,7 @@ | ||
setup.py | ||
my_package/__init__.py | ||
my_package.egg-info/PKG-INFO | ||
my_package.egg-info/SOURCES.txt | ||
my_package.egg-info/dependency_links.txt | ||
my_package.egg-info/requires.txt | ||
my_package.egg-info/top_level.txt |
Empty file.
2 changes: 2 additions & 0 deletions
2
tests/fixtures/project_with_setup/my_package.egg-info/requires.txt
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,2 @@ | ||
pendulum>=1.4.4 | ||
cachy[msgpack]>=0.2.0 |
1 change: 1 addition & 0 deletions
1
tests/fixtures/project_with_setup/my_package.egg-info/top_level.txt
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 @@ | ||
my_package |
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,2 +1,2 @@ | ||
My Package | ||
========== | ||
========== |
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