-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
79 lines (66 loc) · 2.65 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 python2
# -*- coding: utf-8 -*-
# This file is part of kicad_backannotator
#
# kicad_backannotator is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# kicad_backannotator is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with kicad_backannotator. If not, see <http://www.gnu.org/licenses/>.
"""
Created on Fri Jan 12 06:18:23 2018
@author: danw
"""
from setuptools import setup, find_packages, Command
import os
from kicad_backannotate.doc.generate_screenshots import main
name="kicad_backannotate"
version="0.0.1"
release="0.0.1"
class ScreenshotsCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
print("building screenshots...")
curdir = os.path.abspath(os.curdir)
os.chdir("kicad_backannotate/doc")
main()
os.chdir(curdir)
setup(
name=name,
version=version,
packages=find_packages(exclude=["test","doc"]),
license = "GPL-3.0-or-later",
url= "https://github.com/weatherhead99/kicad_backannotate",
author="Dan Weatherill",
author_email="[email protected]",
description="A back-annotation tool for Kicad EDA",
entry_points={
"gui_scripts": [
"kicad_backannotate_gui = kicad_backannotate.gui.kicad_backannotate_gui:main"]},
cmdclass = {"screenshots" : ScreenshotsCommand},
test_suite="kicad_backannotate.test",
package_data = { "kicad_backannotate.test_data" : ["example_projects/backannotate_project/backannotate_project.kicad_pcb"]
},
python_requires = "<3",
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: X11 Applications :: Qt",
"Environment :: Win32 (MS Windows)",
"Environment :: MacOS X",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Manufacturing",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Programming Language :: Python :: 2 :: Only"]
)