-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add support for zipped sdists and pinned url dependencies
Modified pybuild-deps internals to rely more on pip internals, which gave us both support for url dependencies and zip archived packages for "free". This should fix (or at least cover most of) issues #188 and #187. We will need to watch closely when pip releases new versions in order fix breaking changes in its internal APIs.
- Loading branch information
Showing
7 changed files
with
100 additions
and
60 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 |
---|---|---|
|
@@ -57,6 +57,27 @@ def test_main_succeeds(runner: CliRunner) -> None: | |
"setuptools-rust>=0.11.4", | ||
], | ||
), | ||
( | ||
"cryptography", | ||
"git+https://github.com/pyca/[email protected]", | ||
[ | ||
"setuptools>=61.0.0", | ||
"wheel", | ||
"cffi>=1.12; platform_python_implementation != 'PyPy'", | ||
"setuptools-rust>=0.11.4", | ||
], | ||
), | ||
( | ||
"cryptography", | ||
"https://github.com/pyca/cryptography/archive/refs/tags/43.0.0.tar.gz", | ||
[ | ||
"maturin>=1,<2", | ||
"cffi>=1.12; platform_python_implementation != 'PyPy'", | ||
"setuptools", | ||
], | ||
), | ||
("azure-identity", "1.14.1", []), | ||
("debugpy", "1.8.5", ["wheel", "setuptools"]), | ||
], | ||
) | ||
def test_find_build_deps( | ||
|
@@ -68,7 +89,7 @@ def test_find_build_deps( | |
assert result.exit_code == 0 | ||
assert result.stdout.splitlines() == expected_deps | ||
assert cache.exists() | ||
# repeating the same test to cover a cached version | ||
# repeating the same test to cover the cached version | ||
result = runner.invoke(main.cli, args=["find-build-deps", package_name, version]) | ||
assert result.exit_code == 0 | ||
assert result.stdout.splitlines() == expected_deps | ||
|
@@ -90,12 +111,12 @@ def test_find_build_deps( | |
( | ||
"some-package", | ||
"git+https://example.com", | ||
"Unsupported requirement (some-package @ git+https://example.com). Url requirements must use a VCS scheme like 'git+https'.", # noqa: E501 | ||
"Unsupported requirement 'some-package@ git+https://example.com'. Requirement must be either pinned (==), a vcs link with sha or a direct url.", # noqa: E501 | ||
), | ||
( | ||
"cryptography", | ||
"git+https://github.com/pyca/cryptography", | ||
"Unsupported requirement (cryptography @ git+https://github.com/pyca/cryptography). Url requirements must use a VCS scheme like 'git+https'.", # noqa: E501 | ||
"Unsupported requirement 'cryptography@ git+https://github.com/pyca/cryptography'. Requirement must be either pinned (==), a vcs link with sha or a direct url.", # noqa: E501 | ||
), | ||
], | ||
) | ||
|
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