Skip to content
Merged
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
50 changes: 50 additions & 0 deletions pccommon/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "pccommon"
dynamic = ["version"]
description = "Planetary Computer API - Common."
license = { text = "MIT" }
requires-python = ">=3.7"
dependencies = [
"azure-data-tables>=12.5.0",
"azure-identity>=1.16.1",
"azure-storage-blob>=12.20.0",
"cachetools~=5.3",
"fastapi-slim>=0.111.0",
"html-sanitizer>=2.4.4",
"idna>=3.7.0",
"lxml_html_clean>=0.1.0",
"opencensus-ext-azure>=1.1.13",
"opencensus-ext-logging>=0.1.1",
"orjson>=3.10.4",
"pydantic-settings>=2.3",
"pydantic>=2.7",
"pyhumps>=3.5.3",
"redis>=4.6.0",
"requests>=2.32.3",
"starlette>=0.37.2",
"types-cachetools>=4.2.9",
"urllib3>=2.2.2",
]

[project.optional-dependencies]
dev = [
"pytest",
"pytest-asyncio",
"types-redis",
"types-requests",
]

[project.scripts]
pcapis = "pccommon.cli:cli"

[tool.hatch.version]
path = "pccommon/version.py"

[tool.hatch.build.targets.sdist]
include = [
"/pccommon",
]
40 changes: 20 additions & 20 deletions pccommon/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --extra=server --output-file=pccommon/requirements.txt ./pccommon/setup.py
# pip-compile --extra=server --output-file=pccommon/requirements.txt ./pccommon/pyproject.toml
#
annotated-types==0.7.0
# via pydantic
Expand All @@ -17,19 +17,19 @@ azure-core==1.30.2
# azure-storage-blob
# opencensus-ext-azure
azure-data-tables==12.5.0
# via pccommon (pccommon/setup.py)
# via pccommon (pccommon/pyproject.toml)
azure-identity==1.16.1
# via
# opencensus-ext-azure
# pccommon (pccommon/setup.py)
# pccommon (pccommon/pyproject.toml)
azure-storage-blob==12.20.0
# via pccommon (pccommon/setup.py)
# via pccommon (pccommon/pyproject.toml)
beautifulsoup4==4.12.3
# via html-sanitizer
cachetools==5.3.3
# via
# google-auth
# pccommon (pccommon/setup.py)
# pccommon (pccommon/pyproject.toml)
certifi==2024.7.4
# via requests
cffi==1.16.0
Expand All @@ -45,19 +45,19 @@ cryptography==42.0.8
exceptiongroup==1.2.1
# via anyio
fastapi-slim==0.111.0
# via pccommon (pccommon/setup.py)
# via pccommon (pccommon/pyproject.toml)
google-api-core==2.19.0
# via opencensus
google-auth==2.30.0
# via google-api-core
googleapis-common-protos==1.63.1
# via google-api-core
html-sanitizer==2.4.4
# via pccommon (pccommon/setup.py)
# via pccommon (pccommon/pyproject.toml)
idna==3.7
# via
# anyio
# pccommon (pccommon/setup.py)
# pccommon (pccommon/pyproject.toml)
# requests
# yarl
isodate==0.6.1
Expand All @@ -71,7 +71,7 @@ lxml==5.2.2
lxml-html-clean==0.1.0
# via
# html-sanitizer
# pccommon (pccommon/setup.py)
# pccommon (pccommon/pyproject.toml)
msal==1.28.1
# via
# azure-identity
Expand All @@ -87,11 +87,11 @@ opencensus==0.11.4
opencensus-context==0.1.3
# via opencensus
opencensus-ext-azure==1.1.13
# via pccommon (pccommon/setup.py)
# via pccommon (pccommon/pyproject.toml)
opencensus-ext-logging==0.1.1
# via pccommon (pccommon/setup.py)
# via pccommon (pccommon/pyproject.toml)
orjson==3.10.5
# via pccommon (pccommon/setup.py)
# via pccommon (pccommon/pyproject.toml)
packaging==24.1
# via msal-extensions
portalocker==2.8.2
Expand All @@ -116,27 +116,27 @@ pycparser==2.22
pydantic==2.7.4
# via
# fastapi-slim
# pccommon (pccommon/setup.py)
# pccommon (pccommon/pyproject.toml)
# pydantic-settings
pydantic-core==2.18.4
# via pydantic
pydantic-settings==2.3.3
# via pccommon (pccommon/setup.py)
# via pccommon (pccommon/pyproject.toml)
pyhumps==3.5.3
# via pccommon (pccommon/setup.py)
# via pccommon (pccommon/pyproject.toml)
pyjwt[crypto]==2.8.0
# via msal
python-dotenv==1.0.1
# via pydantic-settings
redis==4.6.0
# via pccommon (pccommon/setup.py)
# via pccommon (pccommon/pyproject.toml)
requests==2.32.3
# via
# azure-core
# google-api-core
# msal
# opencensus-ext-azure
# pccommon (pccommon/setup.py)
# pccommon (pccommon/pyproject.toml)
rsa==4.9
# via google-auth
six==1.16.0
Expand All @@ -151,9 +151,9 @@ soupsieve==2.5
starlette==0.37.2
# via
# fastapi-slim
# pccommon (pccommon/setup.py)
# pccommon (pccommon/pyproject.toml)
types-cachetools==4.2.9
# via pccommon (pccommon/setup.py)
# via pccommon (pccommon/pyproject.toml)
typing-extensions==4.12.2
# via
# anyio
Expand All @@ -166,7 +166,7 @@ typing-extensions==4.12.2
# starlette
urllib3==2.2.2
# via
# pccommon (pccommon/setup.py)
# pccommon (pccommon/pyproject.toml)
# requests
yarl==1.9.4
# via azure-data-tables
2 changes: 0 additions & 2 deletions pccommon/setup.cfg

This file was deleted.

43 changes: 0 additions & 43 deletions pccommon/setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/generate-requirements
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ docker compose \
-f docker-compose.dev.yml \
run --rm \
tiler-dev \
pip-compile ./pccommon/setup.py --extra server -o pccommon/requirements.txt $pip_compile_options
pip-compile ./pccommon/pyproject.toml --extra server -o pccommon/requirements.txt $pip_compile_options