forked from rtellez700/mecode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (38 loc) · 1.56 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
from os import path
from setuptools import setup, find_packages
INFO = {'name': 'wheecode',
'version': '0.5.0',
'description': 'Simple GCode generator',
'author': 'Wheeeeeeeee!!',
'author_email': '0xloem@gmail.com',
}
here = path.abspath(path.dirname(__file__))
'''gather install package requirements'''
with open(path.join(here, 'requirements.txt')) as requirements_file:
# Parse requirements.txt, ignoring any commented-out lines.
requirements = [line for line in requirements_file.read().splitlines()
if not line.startswith('#')]
requirements = [r for r in requirements if not r.startswith('git+')]
'''gather development requirements'''
with open(path.join(here, 'requirements.dev.txt')) as dev_requirements_file:
# Parse requirements.txt, ignoring any commented-out lines.
dev_requirements = [line for line in dev_requirements_file.read().splitlines()
if not line.startswith('#')]
dev_requirements = [r for r in dev_requirements if not r.startswith('git+')]
setup(
name=INFO['name'],
version=INFO['version'],
description=INFO['description'],
author=INFO['author'],
author_email=INFO['author_email'],
packages=find_packages(),
url='https://github.com/xloem/wheecode',
download_url='https://github.com/xloem/wheecode/tarball/main',
keywords=['gcode', '3dprinting', 'cnc', 'reprap', 'additive'],
zip_safe=False,
package_data = {
'': ['*.txt', '*.md'],
},
install_requires=requirements,
tests_require=dev_requirements,
)