Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for unreachable packages and wheels #217

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

konstin
Copy link
Member

@konstin konstin commented Sep 3, 2024

Add tests for astral-sh/uv#6959 and astral-sh/uv#6961.

Tested with:

[project]
name = "foo"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = ["unreachable-package", "unreachable-wheels", "requires-python-wheels"]

[tool.uv]
index-url = "http://localhost:3141"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

Lockfile:

version = 1
requires-python = ">=3.10"

[[package]]
name = "foo"
version = "0.1.0"
source = { editable = "." }
dependencies = [
    { name = "requires-python-wheels" },
    { name = "unreachable-package" },
    { name = "unreachable-wheels" },
]

[package.metadata]
requires-dist = [
    { name = "requires-python-wheels" },
    { name = "unreachable-package" },
    { name = "unreachable-wheels" },
]

[[package]]
name = "requires-python-wheels"
version = "0.0.0"
source = { registry = "http://localhost:3141/" }
dependencies = [
    { name = "requires-python-wheels-a" },
]
sdist = { url = "http://localhost:3141/packages/requires-python-wheels/requires_python_wheels-0.0.0.tar.gz", hash = "sha256:79ffa0fd695959b2dbee964c9990516db032ce8983af43c6d9b32ff4a84499a9" }

[[package]]
name = "requires-python-wheels-a"
version = "1.0.0"
source = { registry = "http://localhost:3141/" }
sdist = { url = "http://localhost:3141/packages/requires-python-wheels/requires_python_wheels_a-1.0.0.tar.gz", hash = "sha256:9a11ff73fdc513c4dab0d3e137f4145a00ef0dfc95154360c8f503eed62a03c9" }
wheels = [
    { url = "http://localhost:3141/packages/requires-python-wheels/requires_python_wheels_a-1.0.0-cp310-cp310-any.whl", hash = "sha256:b979494a0d7dc825b84d6c516ac407143915f6d2840d229ee2a36b3d06deb61d" },
    { url = "http://localhost:3141/packages/requires-python-wheels/requires_python_wheels_a-1.0.0-cp311-cp311-any.whl", hash = "sha256:b979494a0d7dc825b84d6c516ac407143915f6d2840d229ee2a36b3d06deb61d" },
]

[[package]]
name = "unreachable-package"
version = "0.0.0"
source = { registry = "http://localhost:3141/" }
dependencies = [
    { name = "unreachable-package-a", marker = "sys_platform == 'win32'" },
]
sdist = { url = "http://localhost:3141/packages/unreachable-package/unreachable_package-0.0.0.tar.gz", hash = "sha256:f5d940dd2f21645b87d052b22042cca4d10e5af1c456d32946325eb36eea818e" }

[[package]]
name = "unreachable-package-a"
version = "1.0.0"
source = { registry = "http://localhost:3141/" }
sdist = { url = "http://localhost:3141/packages/unreachable-package/unreachable_package_a-1.0.0.tar.gz", hash = "sha256:308f0b6772e99dcb33acee38003b176e3acffbe01c3c511585db9a7d7ec008f7" }
wheels = [
    { url = "http://localhost:3141/packages/unreachable-package/unreachable_package_a-1.0.0-py3-none-any.whl", hash = "sha256:cc472ded9f3b260e6cda0e633fa407a13607e190422cb455f02beebd32d6751f" },
]

[[package]]
name = "unreachable-wheels"
version = "0.0.0"
source = { registry = "http://localhost:3141/" }
dependencies = [
    { name = "unreachable-wheels-a", marker = "sys_platform == 'win32'" },
    { name = "unreachable-wheels-b", marker = "sys_platform == 'linux'" },
    { name = "unreachable-wheels-c", marker = "sys_platform == 'darwin'" },
]
sdist = { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels-0.0.0.tar.gz", hash = "sha256:6a1da25cbd20e512e219dae85569f20208377d16c004a3e1c5bcbd615c5f5e9e" }

[[package]]
name = "unreachable-wheels-a"
version = "1.0.0"
source = { registry = "http://localhost:3141/" }
sdist = { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_a-1.0.0.tar.gz", hash = "sha256:91c6619d1cfa227f3662c0c062b1c0c16efe11e589db2f1836e809e2c6d9961e" }
wheels = [
    { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_a-1.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:e9fb30c5eb114114f9031d0ad2238614c2dcce203c5992848305ccda8f38a53e" },
]

[[package]]
name = "unreachable-wheels-b"
version = "1.0.0"
source = { registry = "http://localhost:3141/" }
sdist = { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_b-1.0.0.tar.gz", hash = "sha256:253ae69b963651cd5ac16601a445e2e179db9eac552e8cfc37aadf73a88931ed" }
wheels = [
    { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_b-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3de2212ca86f1137324965899ce7f48640ed8db94578f4078d641520b77e13e" },
    { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_b-1.0.0-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:a3de2212ca86f1137324965899ce7f48640ed8db94578f4078d641520b77e13e" },
]

[[package]]
name = "unreachable-wheels-c"
version = "1.0.0"
source = { registry = "http://localhost:3141/" }
sdist = { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_c-1.0.0.tar.gz", hash = "sha256:5c4783e85f0fa57b720fd02b5c7e0ff8bc98121546fe2cce435710efe4a34b28" }
wheels = [
    { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_c-1.0.0-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:4b846c5b1646b04828a2bef6c9d180ff7cfd725866013dcec8933de7fb5f9e8d" },
]

Looks all correct

@konstin konstin merged commit ea4cd15 into astral-sh:main Sep 3, 2024
6 checks passed
@konstin konstin deleted the konsti/tags-and-markers-tests branch September 3, 2024 16:05
zanieb pushed a commit to konstin/packse that referenced this pull request Sep 3, 2024
Add tests for astral-sh/uv#6959 and
astral-sh/uv#6961.

Tested with:

```toml
[project]
name = "foo"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = ["unreachable-package", "unreachable-wheels", "requires-python-wheels"]

[tool.uv]
index-url = "http://localhost:3141"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
```

Lockfile:
```toml
version = 1
requires-python = ">=3.10"

[[package]]
name = "foo"
version = "0.1.0"
source = { editable = "." }
dependencies = [
    { name = "requires-python-wheels" },
    { name = "unreachable-package" },
    { name = "unreachable-wheels" },
]

[package.metadata]
requires-dist = [
    { name = "requires-python-wheels" },
    { name = "unreachable-package" },
    { name = "unreachable-wheels" },
]

[[package]]
name = "requires-python-wheels"
version = "0.0.0"
source = { registry = "http://localhost:3141/" }
dependencies = [
    { name = "requires-python-wheels-a" },
]
sdist = { url = "http://localhost:3141/packages/requires-python-wheels/requires_python_wheels-0.0.0.tar.gz", hash = "sha256:79ffa0fd695959b2dbee964c9990516db032ce8983af43c6d9b32ff4a84499a9" }

[[package]]
name = "requires-python-wheels-a"
version = "1.0.0"
source = { registry = "http://localhost:3141/" }
sdist = { url = "http://localhost:3141/packages/requires-python-wheels/requires_python_wheels_a-1.0.0.tar.gz", hash = "sha256:9a11ff73fdc513c4dab0d3e137f4145a00ef0dfc95154360c8f503eed62a03c9" }
wheels = [
    { url = "http://localhost:3141/packages/requires-python-wheels/requires_python_wheels_a-1.0.0-cp310-cp310-any.whl", hash = "sha256:b979494a0d7dc825b84d6c516ac407143915f6d2840d229ee2a36b3d06deb61d" },
    { url = "http://localhost:3141/packages/requires-python-wheels/requires_python_wheels_a-1.0.0-cp311-cp311-any.whl", hash = "sha256:b979494a0d7dc825b84d6c516ac407143915f6d2840d229ee2a36b3d06deb61d" },
]

[[package]]
name = "unreachable-package"
version = "0.0.0"
source = { registry = "http://localhost:3141/" }
dependencies = [
    { name = "unreachable-package-a", marker = "sys_platform == 'win32'" },
]
sdist = { url = "http://localhost:3141/packages/unreachable-package/unreachable_package-0.0.0.tar.gz", hash = "sha256:f5d940dd2f21645b87d052b22042cca4d10e5af1c456d32946325eb36eea818e" }

[[package]]
name = "unreachable-package-a"
version = "1.0.0"
source = { registry = "http://localhost:3141/" }
sdist = { url = "http://localhost:3141/packages/unreachable-package/unreachable_package_a-1.0.0.tar.gz", hash = "sha256:308f0b6772e99dcb33acee38003b176e3acffbe01c3c511585db9a7d7ec008f7" }
wheels = [
    { url = "http://localhost:3141/packages/unreachable-package/unreachable_package_a-1.0.0-py3-none-any.whl", hash = "sha256:cc472ded9f3b260e6cda0e633fa407a13607e190422cb455f02beebd32d6751f" },
]

[[package]]
name = "unreachable-wheels"
version = "0.0.0"
source = { registry = "http://localhost:3141/" }
dependencies = [
    { name = "unreachable-wheels-a", marker = "sys_platform == 'win32'" },
    { name = "unreachable-wheels-b", marker = "sys_platform == 'linux'" },
    { name = "unreachable-wheels-c", marker = "sys_platform == 'darwin'" },
]
sdist = { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels-0.0.0.tar.gz", hash = "sha256:6a1da25cbd20e512e219dae85569f20208377d16c004a3e1c5bcbd615c5f5e9e" }

[[package]]
name = "unreachable-wheels-a"
version = "1.0.0"
source = { registry = "http://localhost:3141/" }
sdist = { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_a-1.0.0.tar.gz", hash = "sha256:91c6619d1cfa227f3662c0c062b1c0c16efe11e589db2f1836e809e2c6d9961e" }
wheels = [
    { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_a-1.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:e9fb30c5eb114114f9031d0ad2238614c2dcce203c5992848305ccda8f38a53e" },
]

[[package]]
name = "unreachable-wheels-b"
version = "1.0.0"
source = { registry = "http://localhost:3141/" }
sdist = { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_b-1.0.0.tar.gz", hash = "sha256:253ae69b963651cd5ac16601a445e2e179db9eac552e8cfc37aadf73a88931ed" }
wheels = [
    { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_b-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3de2212ca86f1137324965899ce7f48640ed8db94578f4078d641520b77e13e" },
    { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_b-1.0.0-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:a3de2212ca86f1137324965899ce7f48640ed8db94578f4078d641520b77e13e" },
]

[[package]]
name = "unreachable-wheels-c"
version = "1.0.0"
source = { registry = "http://localhost:3141/" }
sdist = { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_c-1.0.0.tar.gz", hash = "sha256:5c4783e85f0fa57b720fd02b5c7e0ff8bc98121546fe2cce435710efe4a34b28" }
wheels = [
    { url = "http://localhost:3141/packages/unreachable-wheels/unreachable_wheels_c-1.0.0-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:4b846c5b1646b04828a2bef6c9d180ff7cfd725866013dcec8933de7fb5f9e8d" },
]
```
Looks all correct
konstin added a commit that referenced this pull request Sep 4, 2024
konstin added a commit that referenced this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants