Skip to content

Commit 85ec454

Browse files
committed
Merge
2 parents 492be24 + 084b9bf commit 85ec454

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+7003
-188
lines changed

.coveragerc_omit

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[run]
22
omit =
3-
vitessce/config.py
4-
vitessce/export.py
5-
vitessce/file_def_utils.py
6-
vitessce/routes.py
7-
vitessce/widget.py
8-
vitessce/wrappers.py
9-
vitessce/repr.py
10-
vitessce/utils.py
11-
vitessce/data_utils/anndata.py
12-
vitessce/data_utils/ome.py
13-
vitessce/data_utils/entities.py
14-
vitessce/data_utils/multivec.py
15-
vitessce/widget_plugins/demo_plugin.py
16-
vitessce/widget_plugins/spatial_query.py
3+
src/vitessce/config.py
4+
src/vitessce/export.py
5+
src/vitessce/file_def_utils.py
6+
src/vitessce/routes.py
7+
src/vitessce/widget.py
8+
src/vitessce/wrappers.py
9+
src/vitessce/repr.py
10+
src/vitessce/utils.py
11+
src/vitessce/data_utils/anndata.py
12+
src/vitessce/data_utils/ome.py
13+
src/vitessce/data_utils/entities.py
14+
src/vitessce/data_utils/multivec.py
15+
src/vitessce/widget_plugins/demo_plugin.py
16+
src/vitessce/widget_plugins/spatial_query.py

.envrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,25 @@ jobs:
1515
pre_deploy:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
19+
- uses: astral-sh/setup-uv@v3
20+
with:
21+
version: "latest"
1922
- name: Install system dependencies
2023
run: |
2124
sudo apt-get update
2225
sudo apt-get install -y pandoc
23-
- uses: actions/setup-python@v2
24-
with:
25-
python-version: '3.9'
2626
- name: Install vitessce
27-
run: pip install -e .[dev,docs,all]
27+
run: uv sync --extra dev --extra docs --extra all
2828
- name: Run tests
29-
run: pytest
29+
run: uv run pytest
3030
- name: Build a binary wheel and a source tarball
31-
run: >-
32-
python -m
33-
build
34-
--sdist
35-
--wheel
36-
--outdir dist/
37-
.
31+
run: uv build --sdist --wheel
3832
- name: Build docs
3933
run: |
40-
make html
34+
uv run make html
4135
touch docs-dist/html/.nojekyll
42-
- uses: actions/upload-pages-artifact@v1
36+
- uses: actions/upload-pages-artifact@v3
4337
with:
4438
path: ./docs-dist/html
4539
- name: Deploy package to PyPI
@@ -57,4 +51,4 @@ jobs:
5751
steps:
5852
- name: Deploy to GitHub Pages
5953
id: deployment
60-
uses: actions/deploy-pages@v1
54+
uses: actions/deploy-pages@v4

.github/workflows/docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10+
- uses: astral-sh/setup-uv@v3
11+
with:
12+
version: "latest"
1013
- name: Install system dependencies
1114
run: |
1215
sudo apt-get update
1316
sudo apt-get install -y pandoc
14-
- uses: actions/setup-python@v2
15-
with:
16-
python-version: '3.9'
17-
- run: pip install -e .[docs,all]
18-
- run: make html
17+
- run: uv sync --extra docs --extra all
18+
- run: uv run make html

.github/workflows/lint.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
- uses: actions/setup-python@v2
10+
- uses: astral-sh/setup-uv@v3
1111
with:
12-
python-version: '3.9'
13-
architecture: 'x64'
14-
- run: pip install .[dev]
15-
- run: flake8
12+
version: "latest"
13+
- run: uv sync --extra dev
14+
- run: uv run flake8

.github/workflows/test.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
version: ['3.9', '3.12']
10+
version: ['3.10', '3.12']
1111
steps:
1212
- uses: actions/checkout@v2
13-
- uses: actions/setup-python@v2
13+
- uses: astral-sh/setup-uv@v3
1414
with:
15-
python-version: ${{ matrix.version }}
15+
version: "latest"
16+
env:
17+
UV_PYTHON: ${{ matrix.version }}
1618
- name: Install vitessce
17-
run: pip install -e .[dev,all]
19+
run: uv sync --extra dev --extra all
1820
- name: Run tests and report coverage with omits
1921
run: |
20-
coverage run --rcfile .coveragerc_omit --module pytest && \
21-
coverage report --show-missing --fail-under 100
22+
uv run coverage run --rcfile .coveragerc_omit --module pytest && \
23+
uv run coverage report --show-missing --fail-under 100
2224
- name: Run tests and report coverage without omits
2325
run: |
24-
coverage run --rcfile .coveragerc_real --module pytest && \
25-
coverage report --show-missing
26+
uv run coverage run --rcfile .coveragerc_real --module pytest && \
27+
uv run coverage report --show-missing

.github/workflows/test_demos.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
- uses: actions/setup-python@v2
10+
- uses: astral-sh/setup-uv@v3
1111
with:
12-
python-version: '3.9'
13-
- run: |
14-
pip install "pulp==2.7.0"
15-
pip install snakemake
16-
pip install pyyaml
12+
version: "latest"
1713
- name: Install vitessce
18-
run: pip install -e .[dev,all]
14+
run: uv sync --extra dev --extra all --extra demos
1915
- name: Run tests
2016
working-directory: ./demos
21-
run: snakemake -j 1 --dry-run
17+
run: uv run snakemake -j 1 --dry-run

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.10

README.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,44 +28,35 @@ For a development installation (requires NodeJS and NPM),
2828

2929
$ git clone https://github.com/vitessce/vitessce-python.git
3030
$ cd vitessce-python
31-
$ conda env create -f environment.yml
32-
$ conda activate vitessce-python-dev
33-
$ pip install -e ".[dev,docs,all]"
31+
$ uv sync --extra dev --extra docs --extra all
3432

35-
### Conda environments
36-
37-
In this repository, there are multiple conda environments for different purposes:
38-
39-
- `vitessce-python-dev` (defined in [environment.yml](./environment.yml)) is used for the development of the `vitessce` package itself
40-
- `vitessce-python-notebooks` (defined in [docs/notebooks/environment.yml](./docs/notebooks/environment.yml)) is used for running the example notebooks in the `docs/notebooks/` directory (see [`docs/notebooks/README.md`](./docs/notebooks#readme) for more information)
41-
- `vitessce-python-binder` (defined in [binder/environment.yml](./binder/environment.yml)) is the environment used by Binder upon opening notebooks from this repository
4233

4334
## Linting and testing
4435

4536
```sh
46-
flake8
47-
pytest
37+
uv run flake8
38+
uv run pytest
4839
```
4940

5041
### Formatting
5142

5243
One file:
5344

5445
```sh
55-
autopep8 --in-place --aggressive ./path/to/file.py
46+
uv run autopep8 --in-place --aggressive ./path/to/file.py
5647
```
5748

5849
All `.py` files:
5950

6051
```sh
61-
find . -name '*.py' -exec autopep8 --in-place --aggressive '{}' \;
52+
find . -name '*.py' -exec uv run autopep8 --in-place --aggressive '{}' \;
6253
```
6354

6455

6556
## Documentation
6657

6758
```sh
68-
make html
59+
uv run make html
6960
```
7061

7162

@@ -121,6 +112,8 @@ or
121112
vc.display(proxy=True, host_name="http://localhost:8888")
122113
```
123114

115+
For more information see the [data location options documentation](https://python-docs.vitessce.io/data_options.html).
116+
124117
### Ensure that Vitessce and Jupyter are installed in the same environment
125118

126119
With the environment activated, run `pip list` on the command line:

docs/notebooks/.envrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)