forked from avian2/eagle-automation
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
85 lines (77 loc) · 1.97 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
80
81
82
83
84
85
#!/usr/bin/python
# -+- encoding: utf-8
from setuptools import setup
import sys
if sys.version_info.major != 3:
raise Exception("Sorry this package only works with python3.")
opts = dict()
if sys.platform == 'win32':
import py2exe
opts.update(
dict(
zipfile=None,
options={
'py2exe':{
'includes': ['docopt'],
'bundle_files': 1
}
},
console=["eagle_automation/pea.py"],
))
# windows=[
# {
# 'script': 'eagle_automation/artool.py',
# # 'icon_resources': [(1, 'moduleicon.ico')]
# }
# ],
# We do not need pandoc when installing through pypi
if sys.argv[0] == 'setup.py':
opts.update(dict(
long_description_markdown_filename='README.md',
setup_requires=['setuptools_markdown'],
))
else:
opts.update(dict(
long_description=open('README.md', 'r').read(),
))
install_requirements = []
if sys.version_info.major == 2:
install_requirements += ['unicodecsv']
setup(
name='eagle_automation',
version='0.1.12',
description='Simple scripts supporting open hardware development using CadSoft EAGLE',
license='GPL',
author='Tomaz Solc, Bernard Pratz',
author_email='[email protected], [email protected]',
url='https://github.com/guyzmo/eagle-automation',
packages=['eagle_automation'],
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Development Status :: 4 - Beta',
'License :: OSI Approved',
'Operating System :: Unix',
],
install_requires=[
'pyeagle',
'odswriter',
'XlsxWriter',
'PyPDF2',
'PyYAML',
'pillow',
'docopt',
'setuptools',
]+install_requirements,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
pea = eagle_automation.pea:main
""",
**opts
)
# offer a nice message when doing pip install
if sys.argv[0] == 'setup.py' and 'install' in sys.argv:
print("🍻 To start using this tool, do `pea --help`")