Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

move deps to `setup.py` (#2137)

João Gustavo A. Amorimf192695f98cc
diff --git a/setup.cfg b/setup.cfg
index a80d451ec..8fd2a539e 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -34,14 +34,7 @@ project_urls =
[options]
packages = find:
-install_requires =
- packaging
- torch>=1.9.1
python_requires = >=3.7
-setup_requires =
- pytest-runner
-tests_require =
- pytest
zip_safe = True
[options.packages.find]
@@ -51,37 +44,6 @@ exclude =
test.*
examples*
-[options.extras_require]
-dev =
- isort
- kornia-rs==0.0.8
- mypy[reports]
- numpy
- opencv-python
- pre-commit>=2.0
- pydocstyle
- pytest==7.2.0
- pytest-cov==4.0.0
- scipy
-docs =
- PyYAML>=5.1,<6.1.0
- furo
- matplotlib
- opencv-python
- sphinx>=4.0
- sphinx-autodoc-defaultargs
- sphinx-autodoc-typehints>=1.0
- sphinx-copybutton>=0.3
- sphinx-design
- sphinx-rtd-theme>0.5
- sphinxcontrib-bibtex
- sphinxcontrib-gtagjs
- sphinxcontrib-youtube
- torch
- torchvision
-x =
- accelerate==0.15.0
-
[options.package_data]
kornia = py.typed
diff --git a/setup.py b/setup.py
index 7a36fe125..216483d98 100644
--- a/setup.py
+++ b/setup.py
@@ -10,4 +10,39 @@ if sys.version_info < (3, 7, 0):
from setuptools import setup
-setup()
+setup(
+ install_requires=['packaging', 'torch>=1.9.1'],
+ tests_require=['pytest'],
+ setup_requires=['pytest-runner'],
+ extras_require={
+ 'dev': [
+ 'isort',
+ 'kornia-rs==0.0.8',
+ 'mypy[reports]',
+ 'numpy',
+ 'opencv-python',
+ 'pre-commit>=2.0',
+ 'pydocstyle',
+ 'pytest==7.2.0',
+ 'pytest-cov==4.0.0',
+ 'scipy',
+ ],
+ 'docs': [
+ 'PyYAML>=5.1,<6.1.0',
+ 'furo',
+ 'matplotlib',
+ 'opencv-python',
+ 'sphinx>=4.0',
+ 'sphinx-autodoc-defaultargs',
+ 'sphinx-autodoc-typehints>=1.0',
+ 'sphinx-copybutton>=0.3',
+ 'sphinx-design',
+ 'sphinx-rtd-theme>0.5',
+ 'sphinxcontrib-bibtex',
+ 'sphinxcontrib-gtagjs',
+ 'sphinxcontrib-youtube',
+ 'torchvision',
+ ],
+ 'x': ['accelerate==0.15.0'],
+ },
+)