We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6d6904 commit db5432bCopy full SHA for db5432b
noxfile.py
@@ -101,8 +101,19 @@ def test(session):
101
)
102
session.log(msg)
103
104
- # Install sources
105
- run_with_protected_pip(session, "install", ".")
+ # Build source distribution
+ sdist_dir = os.path.join(session.virtualenv.location, "sdist")
106
+ session.run(
107
+ "python", "setup.py", "sdist",
108
+ "--formats=zip", "--dist-dir", sdist_dir,
109
+ silent=True,
110
+ )
111
+ generated_files = os.listdir(sdist_dir)
112
+ assert len(generated_files) == 1
113
+ generated_sdist = os.path.join(sdist_dir, generated_files[0])
114
+
115
+ # Install source distribution
116
+ run_with_protected_pip(session, "install", generated_sdist)
117
118
# Install test dependencies
119
run_with_protected_pip(session, "install", "-r", REQUIREMENTS["tests"])
0 commit comments