Skip to content

Commit

Permalink
FIX: remove developer dependencies from extras
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 28, 2024
1 parent 888b88e commit f4cc433
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 35 deletions.
4 changes: 3 additions & 1 deletion .binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ set -ex
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.cargo/env
uv export \
--extra jupyter \
--group jupyter \
--no-dev \
> requirements.txt
uv pip install \
--requirement requirements.txt \
--system
rm requirements.txt
uv cache clean
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
if: inputs.specific-pip-packages == ''
secrets:
token: ${{ secrets.PAT }}
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v2
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v2.1
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/ComPWA/policy
rev: 0.5.3
rev: 0.5.5
hooks:
- id: colab-toc-visible
- id: check-dev-files
Expand Down
33 changes: 15 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,6 @@ maintainers = [
name = "jax-mini-benchmark"
requires-python = ">=3.12"

[project.optional-dependencies]
dev = [
"jax-mini-benchmark[jupyter]",
"jax-mini-benchmark[sty]",
]
jupyter = [
"jupyterlab",
"jupyterlab-code-formatter >=3.0.0",
"jupyterlab-git",
"jupyterlab-lsp",
"jupyterlab-myst",
"python-lsp-ruff",
"python-lsp-server[rope]",
]
sty = [
"ruff",
]

[project.readme]
content-type = "text/markdown"
file = "README.md"
Expand All @@ -66,6 +48,21 @@ Documentation = "https://github.com/ComPWA/jax-mini-benchmark"
Source = "https://github.com/ComPWA/jax-mini-benchmark"
Tracker = "https://github.com/ComPWA/jax-mini-benchmark/issues"

[dependency-groups]
dev = [
"ruff",
{include-group = "jupyter"},
]
jupyter = [
"jupyterlab",
"jupyterlab-code-formatter",
"jupyterlab-git",
"jupyterlab-lsp",
"jupyterlab-myst",
"python-lsp-ruff",
"python-lsp-server[rope]",
]

[tool.setuptools.package-data]
jax_benchmark = ["py.typed"]

Expand Down
36 changes: 22 additions & 14 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f4cc433

Please sign in to comment.