Skip to content

Commit 2e5f732

Browse files
i-am-sijiajosiekre
andauthored
Implement UV for dependency lock (#956)
* first uv sync * explicitly set np.int64 dtype before calling pd set_index() Pandas 2 got rid of the `Int64Index` class, it was downcasting to int32 for the input land use table * Add all dependencies from Conda environments Consider removing unused ones at a later time * Remove orca This dependency was replaced with “state” for workflow orchestration. * Update release instructions for `uv` * Remove `--no-default-groups` from `uv sync` instructions * Trial updating Github Action to uv instead of conda * Bug fixes * Try downgrading sharrow * change core test to windows runner * use win for all core tests * index type mismatch * formatting * unlock sharrow to 2.14 * correct a typo * Update Model Setup page in user guide * Update Ways to Run the Model page * Remove duplicates * Simplify pyproject.toml for github action and use only this group * Update remainder of user guide docs * Update dev guide [makedocs] * Update lockfile from changes to dependencies * Remove conda from other github actions * Debug doc building [makedocs] * Update install instructions [makedocs] * update installation instructions [makedocs] * notes on uv options [makedocs] * address review comment --------- Co-authored-by: Josie Kressner <[email protected]>
1 parent ba4a12e commit 2e5f732

26 files changed

+5461
-848
lines changed

.github/workflows/branch-docs.yml

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,21 @@ jobs:
2121
with:
2222
fetch-depth: 0 # get all tags, lets setuptools_scm do its thing
2323

24-
- name: Setup Miniforge
25-
uses: conda-incubator/setup-miniconda@v2
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v5
2626
with:
27-
miniforge-version: latest
28-
python-version: "3.10"
29-
activate-environment: docbuild
30-
auto-activate-base: false
31-
auto-update-conda: false
27+
version: "0.7.12"
28+
enable-cache: true
29+
cache-dependency-glob: "uv.lock"
3230

33-
- name: Set cache date for year and month
34-
run: echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV
35-
36-
- uses: actions/cache@v3
31+
- name: "Set up Python"
32+
uses: actions/setup-python@v5
3733
with:
38-
path: /usr/share/miniconda3/envs/docbuild
39-
key: linux-64-conda-${{ hashFiles('conda-environments/docbuild.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
40-
id: cache
41-
42-
- name: Update environment
43-
run: conda env update --verbose -n docbuild -f conda-environments/docbuild.yml
44-
if: steps.cache.outputs.cache-hit != 'true'
34+
python-version-file: ".python-version"
4535

4636
- name: Install activitysim
4737
run: |
48-
python -m pip install .
49-
50-
- name: Conda checkup
51-
run: |
52-
conda info -a
53-
conda list
54-
echo REPOSITORY ${{ github.repository }}
55-
echo REF ${{ github.ref }}
56-
echo REF_NAME ${{ github.ref_name }}
38+
uv sync --locked --dev
5739
5840
- name: Build the docs
5941
run: |

0 commit comments

Comments
 (0)