Files
cadquery/setup.py

80 lines
2.7 KiB
Python
Raw Normal View History

2015-12-12 15:24:10 -05:00
# Copyright 2015 Parametric Products Intellectual Holdings, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
2020-07-30 19:02:59 +02:00
from setuptools import setup, find_packages
2013-04-23 21:31:56 -04:00
reqs = []
setup_reqs = []
2022-05-20 21:40:52 -04:00
# 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
2022-05-20 14:05:03 -04:00
# Only include the installation dependencies if we are not running on RTD or AppVeyor
2022-05-20 16:31:50 -04:00
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"]
2013-04-14 18:48:45 -04:00
setup(
name="cadquery",
2022-05-20 15:20:06 -04:00
use_scm_version=True,
url="https://github.com/CadQuery/cadquery",
license="Apache Public License 2.0",
author="David Cowden",
author_email="dave.cowden@gmail.com",
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",],
},
2013-04-14 18:48:45 -04:00
include_package_data=True,
zip_safe=False,
platforms="any",
test_suite="tests",
2013-04-14 18:48:45 -04:00
classifiers=[
"Development Status :: 5 - Production/Stable",
2013-04-14 18:48:45 -04:00
#'Development Status :: 6 - Mature',
#'Development Status :: 7 - Inactive',
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Operating System :: Unix",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet",
"Topic :: Scientific/Engineering",
],
)