-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to support newer version of CadQuery + OCP v.7.6+ which also r…
…equires python 3.8+
- Loading branch information
1 parent
54e32fb
commit 1c9883a
Showing
6 changed files
with
21 additions
and
25 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
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 |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
import setuptools | ||
|
||
PACKAGE_NAME = "cqkit" | ||
MINIMUM_PYTHON_VERSION = "3.6" | ||
|
||
loc = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
|
@@ -37,12 +36,6 @@ | |
required.append(line) | ||
|
||
|
||
def check_python_version(): | ||
"""Exit when the Python version is too low.""" | ||
if sys.version < MINIMUM_PYTHON_VERSION: | ||
sys.exit("Python {0}+ is required.".format(MINIMUM_PYTHON_VERSION)) | ||
|
||
|
||
def read_package_variable(key, filename="__init__.py"): | ||
"""Read the value of a variable from the package without importing.""" | ||
module_path = os.path.join(PACKAGE_NAME, filename) | ||
|
@@ -65,15 +58,14 @@ def build_description(): | |
return readme + "\n" + changelog | ||
|
||
|
||
check_python_version() | ||
|
||
setuptools.setup( | ||
name=read_package_variable("__project__"), | ||
version=read_package_variable("__version__"), | ||
description="A python library of CadQuery tools and helpers for building 3D CAD models.", | ||
url="https://github.com/michaelgale/cq-kit", | ||
author="Michael Gale", | ||
author_email="[email protected]", | ||
python_requires=">=3.8", | ||
packages=setuptools.find_packages(), | ||
long_description=build_description(), | ||
long_description_content_type="text/markdown", | ||
|
@@ -82,7 +74,7 @@ def build_description(): | |
"Development Status :: 3 - Alpha", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.8", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
], | ||
|