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
10 changes: 6 additions & 4 deletions .github/workflows/colab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ jobs:
run: |
sudo ./build/requirements.sh
- name: Install the latest version of uv and set the python version to 3.13t
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
with:
python-version: "3.12"
enable-cache: true
cache-dependency-glob: "uv.lock"
version: "latest"

- name: Restore environment
run: uv sync

- uses: quarto-dev/quarto-actions/setup@v2
- run: |
quarto --version
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- update
- spacy

jobs:
pages:
Expand All @@ -27,10 +27,9 @@ jobs:
sudo ./build/requirements.sh

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
with:
version: "latest"
python-version: 3.12

- name: Restore environment
run: uv sync
Expand Down Expand Up @@ -94,7 +93,6 @@ jobs:
uses: astral-sh/setup-uv@v6
with:
version: "latest"
python-version: 3.12

- name: Restore environment
run: uv sync
Expand Down Expand Up @@ -140,7 +138,6 @@ jobs:
uses: astral-sh/setup-uv@v6
with:
version: "latest"
python-version: 3.12

- name: Restore environment
run: uv sync
Expand Down
1 change: 1 addition & 0 deletions build/requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ apt-get update && \
apt-get install -y git && \
apt-get install build-essential -y && \
apt-get install libmagic-dev -y && \
apt-get install libgdal-dev -y && \
DEBIAN_FRONTEND=noninteractive apt install -y imagemagick && \
rm -rf /var/lib/apt/lists/*
25 changes: 21 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ name = "python-datascientist"
version = "0.1.0"
description = "Source code for Lino Galiana's Python for data science course"
readme = "README.md"
requires-python = ">=3.12,<3.13"
requires-python = ">=3.13,<3.14"
dependencies = [
"altair==5.4.1",
"altair>=6.0.0",
"black==24.8.0",
"cartiflette",
"contextily==1.6.2",
"duckdb>=0.10.1",
"folium>=0.19.6",
"gdal!=3.11.1",
"geoplot==0.5.1",
"graphviz==0.20.3",
"great-tables>=0.12.0",
Expand All @@ -29,7 +30,7 @@ dependencies = [
"plotly>=6.1.2",
"plotnine>=0.15",
"polars==1.8.2",
"pyarrow==17.0.0",
"pyarrow>=17.0.0",
"pynsee==0.1.8",
"python-dotenv==1.0.1",
"python-frontmatter>=1.1.0",
Expand All @@ -38,15 +39,31 @@ dependencies = [
"scikit-image==0.24.0",
"scipy>=1.13.0",
"selenium<4.39.0",
"spacy==3.8.4",
"spacy>=3.8.4",
"webdriver-manager==4.0.2",
"wordcloud==1.9.3",
]

[tool.uv.sources]
cartiflette = { git = "https://github.com/inseefrlab/cartiflette" }
gdal = [
{ index = "gdal-wheels", marker = "sys_platform == 'linux'" },
{ index = "geospatial_wheels", marker = "sys_platform == 'win32'" },
]

[[tool.uv.index]]
name = "geospatial_wheels"
url = "https://nathanjmcdougall.github.io/geospatial-wheels-index/"
explicit = true

[[tool.uv.index]]
name = "gdal-wheels"
url = "https://gitlab.com/api/v4/projects/61637378/packages/pypi/simple"
explicit = true

[dependency-groups]
dev = [
"nb-clean>=4.0.1",
]


Loading
Loading