-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1085 from CadQuery/setup
Updated setup.py with OCP being available on PyPi now
- Loading branch information
Showing
3 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,23 +14,46 @@ | |
import os | ||
from setuptools import setup, find_packages | ||
|
||
reqs = [] | ||
setup_reqs = [] | ||
|
||
# if we are building in travis, use the build number as the sub-minor version | ||
version = "2.1" | ||
if "TRAVIS_TAG" in os.environ.keys(): | ||
version = os.environ["TRAVIS_TAG"] | ||
# ReadTheDocs, AppVeyor and Azure builds will break when trying to instal pip deps in a conda env | ||
is_rtd = "READTHEDOCS" in os.environ | ||
is_appveyor = "APPVEYOR" in os.environ | ||
is_azure = "CONDA_PY" in os.environ | ||
|
||
# Only include the installation dependencies if we are not running on RTD or AppVeyor | ||
if not is_rtd and not is_appveyor and not is_azure: | ||
reqs = [ | ||
"cadquery-ocp", | ||
"ezdxf", | ||
"multimethod", | ||
"nlopt", | ||
"nptyping>=2", | ||
"typish", | ||
"casadi", | ||
"path", | ||
] | ||
|
||
setup_reqs = ["setuptools_scm"] | ||
|
||
setup( | ||
name="cadquery", | ||
version=version, | ||
url="https://github.com/dcowden/cadquery", | ||
use_scm_version=True, | ||
url="https://github.com/CadQuery/cadquery", | ||
license="Apache Public License 2.0", | ||
author="David Cowden", | ||
author_email="[email protected]", | ||
description="CadQuery is a parametric scripting language for creating and traversing CAD models", | ||
long_description=open("README.md").read(), | ||
packages=find_packages(exclude=("tests",)), | ||
python_requires=">=3.8,<3.11", | ||
setup_requires=setup_reqs, | ||
install_requires=reqs, | ||
extras_require={ | ||
"dev": ["docutils", "ipython", "pytest", "black==19.10b0", "click==8.0.4",], | ||
"ipython": ["ipython",], | ||
}, | ||
include_package_data=True, | ||
zip_safe=False, | ||
platforms="any", | ||
|