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

deps: relax #352

Merged
merged 3 commits into from
Feb 21, 2025
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
14 changes: 9 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,18 @@ jobs:
name: test
needs: [changes, buildpg, buildpyrust]
runs-on: ubuntu-latest
strategy:
matrix:
flags:
- ""
- "--resolution lowest-direct"
container:
image: ${{ needs.changes.outputs.pyrustdocker }}
env:
PGPASSWORD: postgres
PGHOST: postgres
PGDATABASE: postgres
PGUSER: postgres

services:
postgres:
env:
Expand All @@ -120,14 +124,14 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- uses: actions/checkout@v3
- uses: astral-sh/setup-uv@v5
- name: Install pypgstac
working-directory: /__w/pgstac/pgstac/src/pypgstac
run: |
pip install .[dev,test,psycopg];

run: uv pip install ${{ matrix.flags }} .[dev,test,psycopg]
env:
UV_SYSTEM_PYTHON: 1
- name: Run tests
working-directory: /__w/pgstac/pgstac/docker/pypgstac/bin
run: |
Expand Down
60 changes: 24 additions & 36 deletions src/pypgstac/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ description = "Schema, functions and a python library for storing and accessing
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
authors = [
{name = "David Bitner", email = "[email protected]"},
]
authors = [{ name = "David Bitner", email = "[email protected]" }]
keywords = ["STAC", "Postgresql", "PgSTAC"]
classifiers = [
"Intended Audience :: Developers",
Expand All @@ -20,24 +18,24 @@ classifiers = [
"Programming Language :: Python :: 3.11",
]
dependencies = [
"cachetools==5.3.*",
"fire==0.4.*",
"hydraters==0.1.*",
"orjson>=3.6.2",
"plpygis==0.2.*",
"cachetools>=5.3.0",
"fire>=0.4.0",
"hydraters>=0.1.0",
"orjson>=3.7.0",
"plpygis>=0.2.0",
"pydantic>=1.7",
"python-dateutil==2.8.*",
"smart-open>=4.2",
"tenacity==8.1.*",
"python-dateutil>=2.8.0",
"smart-open>=5.0",
"tenacity>=8.1.0",
"version-parser>= 1.0.1",
]

[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
"pytest==8.3.*",
"pytest-cov==6.0.*",
"pystac[validation]==1.*",
"types-cachetools",
"types-cachetools==5.5.*",
]
dev = [
"flake8==7.1.1",
Expand All @@ -47,14 +45,8 @@ dev = [
"ruff==0.8.2",
"pre-commit",
]
psycopg = [
"psycopg[binary]==3.1.*",
"psycopg-pool==3.1.*",
]
migrations = [
"psycopg2-binary",
"migra"
]
psycopg = ["psycopg[binary]==3.1.*", "psycopg-pool==3.1.*"]
migrations = ["psycopg2-binary", "migra"]


[project.urls]
Expand All @@ -76,22 +68,18 @@ branch = true
parallel = true

[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]

[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
# "D", # pydocstyle
"C4", # flake8-comprehensions
"C4", # flake8-comprehensions
"T20", # flake8-print
# "PT", # flake8-pytest-style
"Q", # flake8-quotes
Expand All @@ -106,8 +94,8 @@ select = [
]
ignore = [
# "E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"B905",
]

Expand Down
Loading