Skip to content

Commit

Permalink
switch to uv (for local dev) + pyproject.toml
Browse files Browse the repository at this point in the history
requirements.txt is now generated by uv
  • Loading branch information
captn3m0 committed Jul 19, 2024
1 parent 377f6ae commit aeb9251
Show file tree
Hide file tree
Showing 6 changed files with 758 additions and 69 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
out/** linguist-generated=true
fixtures/** linguist-generated=true
fixtures/** linguist-generated=true
requirements.txt linguist-generated=true
2 changes: 1 addition & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: |
git config --global init.defaultBranch main
git config --global extensions.partialClone true
pip install -r requirements.txt
pip install .
- name: Fetch updates
run: make clean && make -s all
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ events.db
__pycache__
out/te.jsonnet
out/underline.jsonnet
**/*.egg-info/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ all: fetch
python src/event-fetcher.py

requirements.txt:
pipdeptree --local-only --python auto --warn silence -f | sed 's/ //g' | sort -u | grep -E '^\w+' > $@
uv pip compile --universal --generate-hashes --annotation-style line pyproject.toml -o requirements.txt
28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
[project]
name = "blr-today-ingest"
version = "0.0.1"
dependencies = [
"beautifulsoup4~=4.12",
"cleanurl~=0.1",
"curl_cffi~=0.6",
"datefinder~=0.7",
"html2text",
"html5lib~=1.1",
"ics~=0.7",
"jsonnet~=0.20",
"lxml~=5.1",
"python-dateutil~=2.9",
"python-jsonpath~=1.1",
"pytz",
"PyYAML~=6.0",
"requests-cache~=1.2",
"requests~=2.31",
"ujson~=5.10",
"urllib3~=2.2",
"w3lib~=2.1"
]
[project.optional-dependencies]
test = [
"pytest~=8.2",
"pytest-httpbin~=2.0",
]
[tool.pytest.ini_options]
pythonpath = [
"src"
Expand Down
Loading

0 comments on commit aeb9251

Please sign in to comment.