Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 38 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,50 @@ dependencies = [
# [end] getsentry
]

# Note: instead of using a build system, we use tools/fast_editable.py
# to install sentry editably as well as console scripts.
# Otherwise, you need to define a build system (uv_build)
# and console scripts here, and call uv sync then uv pip install -e .

[tool.uv]
environments = ["sys_platform == 'darwin' or sys_platform == 'linux'"]
no-build-package = [
"avalara",
"fido2",
"google-crc32c",
"hiredis",
"maxminddb",
"mmh3",
"petname",
"pycountry",
"python-rapidjson",
"python-u2flib-server",
"simplejson",
"xmlsec",
"zstandard",
]

[[tool.uv.index]]
# We don't allow using public pypi - submit a PR to
# https://github.com/getsentry/pypi to add a dependency.
name = "sentry-pypi"
url = "https://pypi.devinfra.sentry.io/simple"
default = true
explicit = true

# Note: instead of using a build system, we use tools/fast_editable.py
# to install sentry editably as well as console scripts.
# Otherwise, you need to define a build system (uv_build)
# and console scripts here, and call uv sync then uv pip install -e .
# These dependencies don't yet have wheels in upstream PyPI,
# so we get those wheels from internal PyPI.
[tool.uv.sources]
avalara = { index = "sentry-pypi" }
fido2 = { index = "sentry-pypi" }
google-crc32c = { index = "sentry-pypi" }
hiredis = { index = "sentry-pypi" }
maxminddb = { index = "sentry-pypi" }
mmh3 = { index = "sentry-pypi" }
petname = { index = "sentry-pypi" }
pycountry = { index = "sentry-pypi" }
python-rapidjson = { index = "sentry-pypi" }
python-u2flib-server = { index = "sentry-pypi" }
simplejson = { index = "sentry-pypi" }
xmlsec = { index = "sentry-pypi" }
zstandard = { index = "sentry-pypi" }

[dependency-groups]
dev = [
Expand Down
8 changes: 5 additions & 3 deletions tools/lint_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ def main(argv: Sequence[str] | None = None) -> int:
continue

# non-specifier requirements won't have registry as a source
if (
package["source"].get("registry", "")
!= "https://pypi.devinfra.sentry.io/simple"
package_registry = package["source"].get("registry", "")

if package_registry not in (
"https://pypi.org/simple",
"https://pypi.devinfra.sentry.io/simple",
):
raise SystemExit(
f"""
Expand Down
Loading
Loading