2024-12-27 04:12:49 -05:00
|
|
|
# Copyright (c) CadQuery Development Team.
|
2015-12-12 15:24:10 -05:00
|
|
|
#
|
|
|
|
# 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.
|
2016-04-13 21:21:58 -04:00
|
|
|
import os
|
2020-07-30 19:02:59 +02:00
|
|
|
from setuptools import setup, find_packages
|
2013-04-23 21:31:56 -04:00
|
|
|
|
2022-05-20 11:38:14 -04:00
|
|
|
reqs = []
|
2022-05-20 15:57:10 -04:00
|
|
|
setup_reqs = []
|
2022-05-20 11:38:14 -04:00
|
|
|
|
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
|
2025-01-02 08:23:43 +01:00
|
|
|
is_conda = "CONDA_PREFIX" in os.environ
|
2022-05-20 11:38:14 -04:00
|
|
|
|
2023-01-14 14:24:01 +01:00
|
|
|
# Only include the installation dependencies if we are not running on RTD or AppVeyor or in a conda env
|
|
|
|
if not is_rtd and not is_appveyor and not is_azure and not is_conda:
|
2022-05-20 11:04:12 -04:00
|
|
|
reqs = [
|
2025-01-18 21:04:05 +01:00
|
|
|
"cadquery-ocp>=7.8.1,<7.9",
|
2025-01-08 14:34:12 -05:00
|
|
|
"ezdxf>=1.3.0",
|
2024-05-05 11:25:45 +02:00
|
|
|
"multimethod>=1.11,<2.0",
|
2024-12-01 12:49:16 -05:00
|
|
|
"nlopt>=2.9.0,<3.0",
|
2022-05-20 11:04:12 -04:00
|
|
|
"typish",
|
|
|
|
"casadi",
|
|
|
|
"path",
|
|
|
|
]
|
|
|
|
|
2022-05-20 15:57:10 -04:00
|
|
|
|
2013-04-14 18:48:45 -04:00
|
|
|
setup(
|
2020-01-20 20:52:12 +01:00
|
|
|
name="cadquery",
|
2025-01-07 12:53:31 -05:00
|
|
|
version="2.6-dev", # Update this for the next release
|
2022-05-19 11:36:12 -04:00
|
|
|
url="https://github.com/CadQuery/cadquery",
|
2020-01-20 20:52:12 +01:00
|
|
|
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(),
|
2022-05-24 10:54:15 -04:00
|
|
|
long_description_content_type="text/markdown",
|
2020-10-13 19:28:25 +03:00
|
|
|
packages=find_packages(exclude=("tests",)),
|
2024-01-30 11:20:56 -05:00
|
|
|
python_requires=">=3.9",
|
2022-05-20 15:57:10 -04:00
|
|
|
setup_requires=setup_reqs,
|
2022-05-20 11:04:12 -04:00
|
|
|
install_requires=reqs,
|
2022-05-19 11:44:36 -04:00
|
|
|
extras_require={
|
2024-02-16 12:45:30 -05:00
|
|
|
"dev": [
|
|
|
|
"docutils",
|
|
|
|
"ipython",
|
|
|
|
"pytest",
|
2025-01-02 21:12:36 +01:00
|
|
|
# "black@git+https://github.com/cadquery/black.git@cq",
|
2024-02-16 12:45:30 -05:00
|
|
|
],
|
2022-05-19 11:44:36 -04:00
|
|
|
"ipython": ["ipython",],
|
2022-05-19 10:18:57 -04:00
|
|
|
},
|
2013-04-14 18:48:45 -04:00
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
2020-01-20 20:52:12 +01:00
|
|
|
platforms="any",
|
|
|
|
test_suite="tests",
|
2013-04-14 18:48:45 -04:00
|
|
|
classifiers=[
|
2020-01-20 20:52:12 +01:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
2013-04-14 18:48:45 -04:00
|
|
|
#'Development Status :: 6 - Mature',
|
|
|
|
#'Development Status :: 7 - Inactive',
|
2020-01-20 20:52:12 +01:00
|
|
|
"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",
|
|
|
|
],
|
2013-04-27 23:49:41 -07:00
|
|
|
)
|