Skip to content

Commit

Permalink
Add bucket_mapping (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
dycw authored Oct 8, 2024
1 parent 228a3d8 commit 50af1ed
Show file tree
Hide file tree
Showing 80 changed files with 252 additions and 225 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default_language_version:
repos:
# fixers
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.8
rev: v0.6.9
hooks:
- id: ruff
args: [--fix]
Expand All @@ -30,7 +30,7 @@ repos:
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-executables-have-shebangs
- id: check-merge-conflict
Expand Down
44 changes: 22 additions & 22 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ requires-python = ">= 3.11"

[project.optional-dependencies]
dev = [
"aiohttp >= 3.10.5, < 3.11", # for slack-sdk
"aiohttp >= 3.10.9, < 3.11", # for slack-sdk
"aiosqlite >= 0.20.0, < 0.21",
"altair >= 5.4.1, < 5.5",
"asyncpg >= 0.29.0, < 0.30", # for sqlalchemy async
Expand All @@ -30,10 +30,10 @@ dev = [
"cvxpy >= 1.5.3, < 1.6",
"dacite >= 1.8.1, < 1.9",
"eventkit >= 1.0.3, < 1.1",
"fpdf2 >= 2.7.9, < 2.8",
"fpdf2 >= 2.8.1, < 2.9",
"greenlet >= 3.1.1, < 3.2", # for sqlalchemy async
"hatch >= 1.12.0, < 1.13",
"hypothesis >= 6.112.1, < 6.113",
"hypothesis >= 6.112.5, < 6.113",
"img2pdf >= 0.5.1, < 0.6",
"loguru >= 0.7.2, < 0.8",
"memory-profiler >= 0.61.0, < 0.62",
Expand All @@ -44,7 +44,7 @@ dev = [
"numpy >= 2.0.2, < 2.1", # if 2.1, llvmite: RuntimeError: Cannot install on Python version 3.11.9; only versions >=3.6,<3.10 are supported.
"optuna >= 4.0.0, < 4.1",
"orjson >= 3.10.7, < 3.11",
"polars-lts-cpu >= 1.8.0, < 1.9",
"polars-lts-cpu >= 1.9.0, < 1.10",
"pqdm >= 0.2.0, < 0.3",
"psycopg2-binary >= 2.9.9, < 2.10", # for sqlalchemy
"pydantic >= 2.9.0, < 2.10",
Expand All @@ -53,20 +53,20 @@ dev = [
"pypiserver[passlib] >= 2.2.0, < 2.3",
"pytest >= 8.3.3, < 8.4",
"python-dotenv >= 1.0.1, < 1.1",
"redis >= 5.1.0, < 5.2",
"redis >= 5.1.1, < 5.2",
"rich >= 13.8.1, < 13.9", # if 13.9, twine upload fails https://github.com/dycw/python-utilities/actions/runs/11125686648/job/30913966455
"scipy >= 1.14.1, < 1.15",
"slack-sdk >= 3.33.0, < 3.34",
"sqlalchemy >= 2.0.35, < 2.1",
"streamlit >= 1.38.0, < 1.39",
"tenacity >= 8.5.0", # streamlit >= 8.1.0, < 9
"streamlit >= 1.39.0, < 1.40",
"tenacity >= 9.0.0, < 9.1",
"tqdm >= 4.66.5, < 4.67",
"typed-settings >= 24.5.0, < 24.6",
"tzdata >= 2024.1, < 2024.2",
"tzlocal >= 5.2, < 5.3",
"vegafusion >= 1.6.9, < 1.7",
"vegafusion-python-embed >= 1.6.9, < 1.7",
"vl-convert-python >= 1.6.1, < 1.7",
"vl-convert-python >= 1.7.0, < 1.8",
"whenever >= 0.6.9, < 0.7",
# test
"coverage-conditional-plugin >= 0.9.0, < 0.10",
Expand All @@ -88,7 +88,7 @@ scripts-pypi-server = [
"typed-settings >= 24.5.0, < 24.6",
]
test = [
"hypothesis >= 6.112.1, < 6.113",
"hypothesis >= 6.112.5, < 6.113",
"pytest >= 8.3.3, < 8.4",
"pytest-randomly >= 3.15.0, < 3.16",
"pytest-rerunfailures >= 14.0, < 15",
Expand All @@ -98,7 +98,7 @@ zzz-test-altair = [
"altair >= 5.4.1, < 5.5",
"atomicwrites >= 1.4.1, < 1.5",
"img2pdf >= 0.5.1, < 0.6",
"polars-lts-cpu >= 1.8.0, < 1.9",
"polars-lts-cpu >= 1.9.0, < 1.10",
"vl-convert-python >= 1.6.1, < 1.7",
]
zzz-test-astor = ["astor >= 0.8.1, < 0.9"]
Expand All @@ -119,7 +119,7 @@ zzz-test-cvxpy = ["cvxpy >= 1.5.3, < 1.6"]
zzz-test-dataclasses = []
zzz-test-datetime = ["tzlocal >= 5.2, < 5.3"]
zzz-test-defaults = [
"hypothesis >= 6.112.1, < 6.113",
"hypothesis >= 6.112.5, < 6.113",
"pytest >= 8.3.3, < 8.4",
"pytest-asyncio >= 0.23.8, < 0.24",
"pytest-cov >= 5.0.0, < 5.1",
Expand All @@ -131,7 +131,7 @@ zzz-test-enum = []
zzz-test-errors = []
zzz-test-eventkit = ["eventkit >= 1.0.3, < 1.1"]
zzz-test-fpdf2 = [
"fpdf2 >= 2.7.9, < 2.8",
"fpdf2 >= 2.8.1, < 2.9",
"tzlocal >= 5.2, < 5.3",
]
zzz-test-functions = []
Expand All @@ -145,7 +145,7 @@ zzz-test-hypothesis = [
"aiosqlite >= 0.20.0, < 0.21",
"greenlet >= 3.1.1, < 3.2", # for sqlalchemy async
"numpy >= 2.0.2, < 2.1",
"redis >= 5.1.0, < 5.2",
"redis >= 5.1.1, < 5.2",
"sqlalchemy >= 2.0.35, < 2.1",
"whenever >= 0.6.9, < 0.7",
]
Expand All @@ -154,7 +154,7 @@ zzz-test-iterables = []
zzz-test-jupyter = [
"jupyterlab >= 4.2.0, < 4.3",
"pandas >= 2.2.2, < 2.3",
"polars-lts-cpu >= 1.8.0, < 1.9",
"polars-lts-cpu >= 1.9.0, < 1.10",
]
zzz-test-logging = []
zzz-test-loguru = ["loguru >= 0.7.2, < 0.8"]
Expand All @@ -179,7 +179,7 @@ zzz-test-pickle = ["atomicwrites >= 1.4.1, < 1.5"]
zzz-test-platform = []
zzz-test-polars = [
"dacite >= 1.8.1, < 1.9",
"polars-lts-cpu >= 1.8.0, < 1.9",
"polars-lts-cpu >= 1.9.0, < 1.10",
]
zzz-test-pqdm = ["pqdm >= 0.2.0, < 0.3"]
zzz-test-pydantic = [
Expand All @@ -198,10 +198,10 @@ zzz-test-python-dotenv = ["python-dotenv >= 1.0.1, < 1.1"]
zzz-test-random = []
zzz-test-re = []
zzz-test-redis = [
"polars-lts-cpu >= 1.8.0, < 1.9",
"redis >= 5.1.0, < 5.2",
"polars-lts-cpu >= 1.9.0, < 1.10",
"redis >= 5.1.1, < 5.2",
]
zzz-test-reprlib = ["polars-lts-cpu >= 1.8.0, < 1.9"]
zzz-test-reprlib = ["polars-lts-cpu >= 1.9.0, < 1.10"]
zzz-test-scipy = ["scipy >= 1.14.1, < 1.15"]
zzz-test-scripts-pypi-server = [
"click >= 8.1.7, < 8.2",
Expand All @@ -211,7 +211,7 @@ zzz-test-scripts-pypi-server = [
]
zzz-test-sentinel = []
zzz-test-slack-sdk = [
"aiohttp >= 3.10.5, < 3.11", # for slack-sdk
"aiohttp >= 3.10.9, < 3.11", # for slack-sdk
"slack-sdk >= 3.33.0, < 3.34",
]
zzz-test-socket = []
Expand All @@ -227,18 +227,18 @@ zzz-test-sqlalchemy = [
zzz-test-sqlalchemy-polars = [
"aiosqlite >= 0.20.0, < 0.21",
"greenlet >= 3.1.1, < 3.2", # for sqlalchemy async
"polars-lts-cpu >= 1.8.0, < 1.9",
"polars-lts-cpu >= 1.9.0, < 1.10",
"nest-asyncio >= 1.6.0, < 1.7", # for sqlalchemy async
"pyhumps >= 3.8.0, < 3.9",
"sqlalchemy >= 2.0.35, < 2.1",
]
zzz-test-streamlit = ["streamlit >= 1.38.0, < 1.39"]
zzz-test-streamlit = ["streamlit >= 1.39.0, < 1.40"]
zzz-test-subprocess = ["loguru >= 0.7.2, < 0.8"]
zzz-test-sys = []
zzz-test-tempfile = []
zzz-test-tenacity = [
"loguru >= 0.7.2, < 0.8",
"tenacity >= 8.5.0", # streamlit >= 8.1.0, < 9
"tenacity >= 9.0.0, < 9.1",
]
zzz-test-text = []
zzz-test-timer = []
Expand Down
36 changes: 19 additions & 17 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# uv pip compile --extra=dev --prerelease=explicit --output-file=requirements.txt --python-version=3.11 pyproject.toml
aiohappyeyeballs==2.4.3
# via aiohttp
aiohttp==3.10.8
aiohttp==3.10.9
# via dycw-utilities (pyproject.toml)
aiosignal==1.3.1
# via aiohttp
Expand All @@ -19,7 +19,7 @@ annotated-types==0.7.0
# via pydantic
anyio==4.6.0
# via httpx
argcomplete==3.5.0
argcomplete==3.5.1
# via nox
astor==0.8.1
# via dycw-utilities (pyproject.toml)
Expand Down Expand Up @@ -100,9 +100,9 @@ filelock==3.16.1
# via virtualenv
fonttools==4.54.1
# via fpdf2
fpdf2==2.7.9
fpdf2==2.8.1
# via dycw-utilities (pyproject.toml)
frozendict==2.4.4
frozendict==2.4.5
# via atools
frozenlist==1.4.1
# via
Expand All @@ -120,13 +120,13 @@ hatch==1.12.0
# via dycw-utilities (pyproject.toml)
hatchling==1.25.0
# via hatch
httpcore==1.0.5
httpcore==1.0.6
# via httpx
httpx==0.27.2
# via hatch
hyperlink==21.0.0
# via hatch
hypothesis==6.112.2
hypothesis==6.112.5
# via dycw-utilities (pyproject.toml)
idna==3.10
# via
Expand Down Expand Up @@ -169,7 +169,7 @@ mako==1.3.5
# via alembic
markdown-it-py==3.0.0
# via rich
markupsafe==2.1.5
markupsafe==3.0.0
# via
# jinja2
# mako
Expand All @@ -186,7 +186,7 @@ multidict==6.1.0
# via
# aiohttp
# yarl
narwhals==1.9.0
narwhals==1.9.1
# via altair
nest-asyncio==1.6.0
# via dycw-utilities (pyproject.toml)
Expand Down Expand Up @@ -262,10 +262,12 @@ pluggy==1.5.0
# via
# hatchling
# pytest
polars-lts-cpu==1.8.2
polars-lts-cpu==1.9.0
# via dycw-utilities (pyproject.toml)
pqdm==0.2.0
# via dycw-utilities (pyproject.toml)
propcache==0.2.0
# via yarl
protobuf==5.28.2
# via
# streamlit
Expand Down Expand Up @@ -332,7 +334,7 @@ pyyaml==6.0.2
# via optuna
qdldl==0.1.7.post4
# via osqp
redis==5.1.0
redis==5.1.1
# via dycw-utilities (pyproject.toml)
referencing==0.35.1
# via
Expand Down Expand Up @@ -381,17 +383,17 @@ sqlalchemy==2.0.35
# dycw-utilities (pyproject.toml)
# alembic
# optuna
streamlit==1.38.0
streamlit==1.39.0
# via dycw-utilities (pyproject.toml)
tenacity==8.5.0
tenacity==9.0.0
# via
# dycw-utilities (pyproject.toml)
# streamlit
toml==0.10.2
# via streamlit
tomli==2.0.1
tomli==2.0.2
# via coverage
tomli-w==1.0.0
tomli-w==1.1.0
# via hatch
tomlkit==0.13.2
# via hatch
Expand Down Expand Up @@ -427,7 +429,7 @@ urllib3==2.2.3
# via requests
userpath==1.9.2
# via hatch
uv==0.4.17
uv==0.4.19
# via hatch
vegafusion==1.6.9
# via dycw-utilities (pyproject.toml)
Expand All @@ -437,15 +439,15 @@ virtualenv==20.26.6
# via
# hatch
# nox
vl-convert-python==1.6.1
vl-convert-python==1.7.0
# via dycw-utilities (pyproject.toml)
whenever==0.6.9
# via dycw-utilities (pyproject.toml)
win32-setctime==1.1.0
# via dycw-utilities (pyproject.toml)
wrapt==1.16.0
# via deprecated
yarl==1.13.1
yarl==1.14.0
# via aiohttp
zipp==3.20.2
# via importlib-metadata
Expand Down
10 changes: 5 additions & 5 deletions requirements/altair.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ coverage==7.6.1
# via pytest-cov
deprecated==1.2.14
# via pikepdf
hypothesis==6.112.2
hypothesis==6.112.5
# via dycw-utilities (pyproject.toml)
img2pdf==0.5.1
# via dycw-utilities (pyproject.toml)
Expand All @@ -27,9 +27,9 @@ jsonschema-specifications==2023.12.1
# via jsonschema
lxml==5.3.0
# via pikepdf
markupsafe==2.1.5
markupsafe==3.0.0
# via jinja2
narwhals==1.9.0
narwhals==1.9.1
# via altair
packaging==24.1
# via
Expand All @@ -45,7 +45,7 @@ pillow==10.4.0
# pikepdf
pluggy==1.5.0
# via pytest
polars-lts-cpu==1.8.2
polars-lts-cpu==1.9.0
# via dycw-utilities (pyproject.toml)
pytest==8.3.3
# via
Expand All @@ -72,7 +72,7 @@ rpds-py==0.20.0
# referencing
sortedcontainers==2.4.0
# via hypothesis
tomli==2.0.1
tomli==2.0.2
# via coverage
typing-extensions==4.12.2
# via
Expand Down
4 changes: 2 additions & 2 deletions requirements/astor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ attrs==24.2.0
# via hypothesis
coverage==7.6.1
# via pytest-cov
hypothesis==6.112.2
hypothesis==6.112.5
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand All @@ -33,7 +33,7 @@ pytest-rerunfailures==14.0
# via dycw-utilities (pyproject.toml)
sortedcontainers==2.4.0
# via hypothesis
tomli==2.0.1
tomli==2.0.2
# via coverage
typing-extensions==4.12.2
# via dycw-utilities (pyproject.toml)
4 changes: 2 additions & 2 deletions requirements/asyncio.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ attrs==24.2.0
# via hypothesis
coverage==7.6.1
# via pytest-cov
hypothesis==6.112.2
hypothesis==6.112.5
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand All @@ -31,7 +31,7 @@ pytest-rerunfailures==14.0
# via dycw-utilities (pyproject.toml)
sortedcontainers==2.4.0
# via hypothesis
tomli==2.0.1
tomli==2.0.2
# via coverage
typing-extensions==4.12.2
# via dycw-utilities (pyproject.toml)
Loading

0 comments on commit 50af1ed

Please sign in to comment.