Skip to content

Commit

Permalink
Add extras in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
pwwang committed Oct 9, 2023
1 parent 22dd5ab commit fe1e9aa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .codesandbox/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.10.12

RUN apt-get update && apt-get install -y npm fish && \
RUN apt-get update && apt-get install -y fish && \
pip install -U pip && \
pip install poetry && \
poetry config virtualenvs.create false && \
Expand Down
1 change: 0 additions & 1 deletion .codesandbox/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ WORKSPACE="/workspace"

# Install python dependencies
poetry update && poetry install
pip install -U scipy wcwidth
cd $WORKSPACE

# Install whichpy
Expand Down
16 changes: 7 additions & 9 deletions poetry.lock

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

9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ python = "^3.8"
pdtypes = "^0.2"
datar = "^0.15"
# datar = { path = "../datar" }
datar-numpy = [
{ version = "^0.3.2", optional = true, extras = ["all"] },
{ version = "^0.3.2" }
]
datar-numpy = "^0.3.2"
# datar-numpy = { path = "../datar-numpy", extras = ["all"] }
scipy = { version = "^1.8", optional = true }
wcwidth = { version = "^0.2", optional = true }

[tool.poetry.extras]
all = ["datar-numpy"]
all = ["scipy", "wcwidth"]

[tool.poetry.build]
generate-setup-file = true
Expand Down

0 comments on commit fe1e9aa

Please sign in to comment.