Skip to content

Commit

Permalink
deps: relax
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Feb 21, 2025
1 parent 1d06a19 commit 1344206
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 42 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,32 +102,35 @@ 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:
POSTGRES_PASSWORD: postgres
UV_SYSTEM_PYTHON: 1
image: ${{ needs.changes.outputs.pgdocker }}
options: >-
--health-cmd pg_isready
--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]
- name: Run tests
working-directory: /__w/pgstac/pgstac/docker/pypgstac/bin
run: |
Expand Down
57 changes: 20 additions & 37 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,25 +18,20 @@ classifiers = [
"Programming Language :: Python :: 3.11",
]
dependencies = [
"cachetools==5.3.*",
"fire==0.4.*",
"hydraters==0.1.*",
"cachetools>=5.3.0",
"fire>=0.4.0",
"hydraters>=0.1.0",
"orjson>=3.6.2",
"plpygis==0.2.*",
"plpygis>=0.2.0",
"pydantic>=1.7",
"python-dateutil==2.8.*",
"python-dateutil>=2.8.0",
"smart-open>=4.2",
"tenacity==8.1.*",
"tenacity>=8.1.0",
"version-parser>= 1.0.1",
]

[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
"pystac[validation]==1.*",
"types-cachetools",
]
test = ["pytest", "pytest-cov", "pystac[validation]==1.*", "types-cachetools"]
dev = [
"flake8==7.1.1",
"black>=24.10.0",
Expand All @@ -47,14 +40,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 +63,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 +89,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

0 comments on commit 1344206

Please sign in to comment.