Trying to use the RTD env varaible to limit the dependencies
This commit is contained in:
27
setup.py
27
setup.py
@ -16,6 +16,22 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
version = "2.1"
|
version = "2.1"
|
||||||
|
|
||||||
|
is_rtd = os.environ['READTHEDOCS']
|
||||||
|
print(is_rtd)
|
||||||
|
if is_rtd:
|
||||||
|
reqs = []
|
||||||
|
else:
|
||||||
|
reqs = [
|
||||||
|
"cadquery-ocp",
|
||||||
|
"ezdxf",
|
||||||
|
"multimethod",
|
||||||
|
"nlopt",
|
||||||
|
"nptyping>=2",
|
||||||
|
"typish",
|
||||||
|
"casadi",
|
||||||
|
"path",
|
||||||
|
]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="cadquery",
|
name="cadquery",
|
||||||
version=version,
|
version=version,
|
||||||
@ -27,16 +43,7 @@ setup(
|
|||||||
long_description=open("README.md").read(),
|
long_description=open("README.md").read(),
|
||||||
packages=find_packages(exclude=("tests",)),
|
packages=find_packages(exclude=("tests",)),
|
||||||
python_requires=">=3.8,<3.11",
|
python_requires=">=3.8,<3.11",
|
||||||
install_requires=[
|
install_requires=reqs,
|
||||||
"cadquery-ocp",
|
|
||||||
"ezdxf",
|
|
||||||
"multimethod",
|
|
||||||
"nlopt",
|
|
||||||
"nptyping>=2",
|
|
||||||
"typish",
|
|
||||||
"casadi",
|
|
||||||
"path",
|
|
||||||
],
|
|
||||||
extras_require={
|
extras_require={
|
||||||
"dev": ["docutils", "ipython", "pytest", "black==19.10b0", "click==8.0.4",],
|
"dev": ["docutils", "ipython", "pytest", "black==19.10b0", "click==8.0.4",],
|
||||||
"ipython": ["ipython",],
|
"ipython": ["ipython",],
|
||||||
|
Reference in New Issue
Block a user