forked from dubstar-04/LibLathe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
52 lines (46 loc) · 1.66 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
import re
from setuptools import setup
import warnings
import sys
import os
if sys.version_info[:3] < (3, 5, 0):
warnings.warn("liblathe does not support versions below "
"Python 3.5.0", RuntimeWarning)
__dir__ = os.path.dirname(__file__)
version_file = os.path.join(__dir__, "liblathe/version.py")
liblathe_path = os.path.join(__dir__, "liblathe")
liblathe_path = os.path.abspath(liblathe_path)
version_line = open(version_file).read()
version_re = r"^__version__ = ['\"]([^'\"]*)['\"]"
match = re.search(version_re, version_line, re.M)
if match:
version = match.group(1)
else:
raise RuntimeError("Could not find version in '%s'" % version_file)
with open(os.path.join(__dir__, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='liblathe',
version=version,
description='Python library for generating lathe paths and gcode ',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/dubstar-04/LibLathe',
author='Daniel Wood',
author_email='s.d.wood.82@googlemail.com',
license='GPL2',
keywords="lathe turning CAD CAM CNC",
packages=['liblathe'],
install_requires=['pillow'],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)