Files
cadquery/setup.py

85 lines
2.9 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
is_conda = "CONDA_PREFIX_1" in os.environ
# 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:
reqs = [
"cadquery-ocp>=7.7.0a0,<7.8",
"ezdxf",
Free function api (#1469) * Initial free functions * Mypy fixes * Add a mypy plugin that handles _get* * More helpers and fixes * black * More hooks * More ops and primitives * Fill with constraints and cap * Minimal docstrings and mypy fix * Bool op operators for Shape * Extra docstring * Added spline primitive * Added alternative constructors * Update solid * Add shape normalization * Add text * Added moved overload * Another moved overload * Convert location constructor to multimethod * Additional Loc constructor * Extra vertex constructor * Additional cone overload * Start with tests * Fix compouund normalization * Bool op tests * Additional Location overload * test moved and fix bool ops * Different cap params * More tests * Test revolve and offset * Test sweep and loft * Add bool ops * More tests * Test text * Improve coverage for utils * More move[d] and Location overloads * Start working on some docs * Update index * Doc fix * Typo fix * More move/moved overloads * Small doc update * Better Location coverage * Fix angle units in Location * More docs and a usability fix * Cosmetics * Mypy fix * Remove dead code * Coverage tweaks * More docs' * Box centering and box/plane arg order * Docs cosmetics - nicer sweep * Apply suggestions Co-authored-by: Jeremy Wright <wrightjmf@gmail.com> * Add docstrings * Doc tweaks * Bump multimethod version * Add occ_impl.shapes * Mention free funcs in the primer * Typos * Typo * Punctuation --------- Co-authored-by: Jeremy Wright <wrightjmf@gmail.com>
2024-05-05 11:25:45 +02:00
"multimethod>=1.11,<2.0",
"nlopt>=2.9.0,<3.0",
"typish",
"casadi",
"path",
]
2013-04-14 18:48:45 -04:00
setup(
name="cadquery",
version="2.5.0dev", # Update this for the next release
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(),
long_description_content_type="text/markdown",
packages=find_packages(exclude=("tests",)),
python_requires=">=3.9",
setup_requires=setup_reqs,
install_requires=reqs,
extras_require={
"dev": [
"docutils",
"ipython",
"pytest",
"black@git+https://github.com/cadquery/black.git@cq",
],
"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",
],
)