forked from egeakman/gcode2zaxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (61 loc) · 2 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import contextlib
import json
import urllib.request
from setuptools import setup, find_packages
def latest_version(package_name):
url = f"https://pypi.python.org/pypi/{package_name}/json"
with contextlib.suppress(Exception):
response = urllib.request.urlopen(urllib.request.Request(url), timeout=1)
data = json.load(response)
versions = data["releases"].keys()
versions = sorted(versions)
return f">={versions[-1]}"
return ""
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
setup(
name="gcode2zaxe",
author="Ege Akman",
author_email="[email protected]",
url="https://github.com/egeakman/gcode2zaxe",
description="Gcode to Zaxe Converter | executable: g2z",
long_description=long_description,
long_description_content_type="text/markdown",
version="2022.6.25",
license="AGPLv3",
download_url="https://github.com/egeakman/gcode2zaxe/archive/2022.6.25.tar.gz",
packages=find_packages(where=".", exclude=["tests"]),
python_requires=">=3.8",
entry_points={
"console_scripts": [
"g2z=gcode2zaxe.cli:main",
]
},
install_requires=[
f"setuptools{latest_version('setuptools')}",
],
keywords=[
"3D",
"gcode",
"Zaxe",
"converter",
"gcode2zaxe",
"slicer",
"model",
"reverse engineering",
],
classifiers=[
"Topic :: Utilities",
"Programming Language :: Python :: 3 :: Only",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
],
project_urls={
"Homepage": "https://github.com/egeakman/gcode2zaxe",
"Issues": "https://github.com/egeakman/gcode2zaxe/issues",
},
)