Skip to content

Commit

Permalink
chore: update setup config
Browse files Browse the repository at this point in the history
  • Loading branch information
Secbone committed Nov 22, 2023
1 parent 9c8e456 commit 0e1332d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
architecture: x64
- run: make build_deps
- run: pip install -r requirements-nn.txt
- run: pip install -e .
- run: pip install .[all]
- run: make test
release:
needs: [test]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
architecture: x64
- run: make build_deps
- run: pip install -r requirements-nn.txt
- run: pip install -e .
- run: pip install .[all]
- run: make test
- run: make dist_wheel
- uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
architecture: x64
- run: make build_deps
- run: pip install -r requirements-nn.txt
- run: pip install -e .
- run: pip install .[all]
- run: make test
- run: make dist_wheel
- uses: actions/upload-artifact@v2
Expand Down
11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dynamic = [
[tool.setuptools.dynamic]
readme = {file = ["README.md"], content-type = "text/markdown"}
dependencies = {file = ["requirements.txt"]}
optional-dependencies = {nn = {file = ["requirements-nn.txt"]}, tools = {file = ["requirements-tools.txt"]}, all = {file = ["requirements-nn.txt", "requirements-tools.txt"]} }

[build-system]
requires = [
Expand All @@ -35,11 +36,15 @@ requires = [
]
build-backend = "setuptools.build_meta"

[project.optional-dependencies]
nn = ["torch >= 1.8.1", "torchvision >= 0.9.1"]

[console_scripts]
toad = "toad.cli:main"

[tool.setuptools.packages.find]
exclude = ["tests"]

[project.urls]
Homepage = "https://github.com/amphibian-dev/toad"
Documentation = "https://toad.readthedocs.io/en/stable/"
Repository = "https://github.com/amphibian-dev/toad.git"
Issues = "https://github.com/amphibian-dev/toad/issues"
Changelog = "https://github.com/amphibian-dev/toad/blob/master/CHANGELOG.md"
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
setuptools
Cython >= 0.29.15
numpy >= 1.20
pandas
Expand Down
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ def get_requirements(stage = None):
include_package_data = True,
python_requires = '>=3.7',
setup_requires = ['numpy'],
install_requires = get_requirements(),
extras_require = {
'nn': get_requirements('nn')
},
tests_require = get_requirements('test'),
license = 'MIT',
classifiers = [
Expand Down

0 comments on commit 0e1332d

Please sign in to comment.