forked from openscopeproject/InteractiveHtmlBom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (54 loc) · 2.13 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
#!/usr/bin/python3
import io
import os
import sys
import glob
import os.path
import re
#from distutils.core import setup
from setuptools import setup, find_packages
# Package meta-data.
NAME = 'InteractiveHtmlBom'
NAME_PKG = NAME
DESCRIPTION = 'Interactive HTML BOM generation plugin for KiCad'
URL = 'https://github.com/INTI-CMNB/InteractiveHtmlBom/'
EMAIL = 'unknown'
AUTHOR = 'qu1ck'
# Import the README and use it as the long-description.
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
with open('README.md', encoding='utf-8') as f:
long_description = '\n' + f.read()
with open("InteractiveHtmlBom/version.py") as f:
s = f.read()
m = re.search(r"LAST_TAG = 'v(.*)'", s)
assert m
version = m.group(1)
setup(name=NAME,
version=version,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
author=AUTHOR,
author_email=EMAIL,
url=URL,
#packages=[NAME_PKG, NAME_PKG+'/core', NAME_PKG+'/ecad', NAME_PKG+'/ecad/kicad_extra', NAME_PKG+'/dialog'],
packages=find_packages(),
package_dir={NAME_PKG: NAME_PKG},
package_data={NAME_PKG: ['icon.png','web/*','dialog/bitmaps/*.png']},
# This only works for system level installation.
# KiCad ignores ~/.local/*
data_files=[('share/kicad/scripting/plugins/'+NAME_PKG, ['settings_dialog.fbp','__init__.py'])],
entry_points={'console_scripts': ['generate_interactive_bom.py = InteractiveHtmlBom.generate_interactive_bom:main']},
#install_requires=['wx'],
classifiers = ['Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
],
platforms = 'POSIX',
license = 'MIT'
)