Skip to content

Commit

Permalink
only install needed packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sentilesdal committed Jan 18, 2024
1 parent dd17858 commit 756029b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
run: python -m pip install --upgrade pip

- name: install requirements
# include toml because a file in scripts/ needs it.
run: |
python -m pip install --upgrade .[all]
python -m pip install --upgrade .[test] && python -m pip install toml
- name: run black
run: python -m black --config pyproject.toml --check --diff .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: install requirements
run: |
python -m pip install --upgrade .[all]
python -m pip install --upgrade .[test]
- name: get all Python files
id: list_files
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: install requirements
run: |
python -m pip install --upgrade .[all]
python -m pip install --upgrade .[test]
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
Expand Down
13 changes: 2 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,7 @@ pypechain = "pypechain.main:main"

[project.optional-dependencies]
# This flag installs all dependencies and should be ran when installing this package
all = ["pypechain[build,test]"]
build = [
"build",
"flit",
"request",
"setuptools",
"toml",
"toml",
"twine",
"wheel",
]
all = ["pypechain[test,build]"]
test = [
"coverage",
"factory-boy",
Expand All @@ -42,6 +32,7 @@ test = [
"pytest",
"pytest-snapshot",
]
build = ["build", "flit", "request", "setuptools", "toml", "twine", "wheel"]

[project.urls]
"Homepage" = "https://github.com/delvtech/pypechain"
Expand Down

0 comments on commit 756029b

Please sign in to comment.