-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
79 lines (70 loc) · 2.47 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
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env python
import os
import glob
from setuptools import setup
VERSION = "0.8.2"
def find_data_files(source, target, patterns):
"""
Locates the specified data-files and returns the matches
in a data_files compatible format.
source is the root of the source data tree.
Use '' or '.' for current directory.
target is the root of the target data tree.
Use '' or '.' for the distribution directory.
patterns is a sequence of glob-patterns for the
files you want to copy.
"""
if glob.has_magic(source) or glob.has_magic(target):
raise ValueError("Magic not allowed in src, target")
ret = {}
for pattern in patterns:
pattern = os.path.join(source, pattern)
for filename in glob.glob(pattern):
if os.path.isfile(filename):
targetpath = os.path.join(
target, os.path.relpath(filename, source)
)
path = os.path.dirname(targetpath)
ret.setdefault(path, []).append(filename)
return sorted(ret.items())
with open('README.rst') as f:
LONG_DESCR = f.read()
setup(
name='mandoline-py',
version=VERSION,
description='An STL to GCode slicer for 3D printing, using the clipper libraries.',
long_description=LONG_DESCR,
author='Revar Desmera',
author_email='[email protected]',
url='https://github.com/revarbat/mandoline-py',
download_url='https://github.com/revarbat/mandoline-py/archive/master.zip',
packages=['mandoline'],
license='MIT License',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Manufacturing',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Multimedia :: Graphics :: 3D Modeling',
],
keywords='stl gcode slicer 3dprinting',
entry_points={
'console_scripts': ['mandoline=mandoline:main'],
},
install_requires=[
'setuptools',
'six>=1.10.0',
'pyquaternion>=0.9.5',
'pyclipper>=1.1.0',
'appdirs>=1.4.3',
],
)