-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
62 lines (55 loc) · 2.36 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
"""Setup file for Python"""
import sys
import os
from setuptools import setup, find_packages
from src.robotdoc.libdocpkg import setup_command
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner','pytest<5'] if needs_pytest else []
if "--get-version" in sys.argv:
from setuptools_scm import get_version
print(get_version(root='.', relative_to=__file__))
sys.exit(0)
if sys.version_info >= (3,2):
special_test_requires = ['pytest','pylint>=2']
else:
special_test_requires = ['pytest<5','pylint<2']
setup(name='robotframework-kicadlibrary',
description='Robot Framework KiCAD library',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
#version=,
use_scm_version=True,
url='https://github.com/madworx/robotframework-kicadlibrary',
author='Martin Kjellstrand',
author_email='[email protected]',
license='MIT',
packages=['KiCadLibrary',
'KiCadLibrary.kicad_library_utils',
'KiCadLibrary.kicad_library_utils.sch',
'KiCadLibrary.kicad_library_utils.schlib'],
package_dir={'': 'src'},
install_requires=['robotframework<4'],
setup_requires=['setuptools_scm', 'robotframework<4'] + pytest_runner,
tests_require=['pytest-runner', 'pytest-cov', 'pytest-mock', 'coverage',
'pytest-pylint', 'pytest-html', 'setuptools_scm',
'robotframework<4', 'mock', 'natsort'],
test_suite='tests',
cmdclass = {'build_rf_docs': setup_command.BuildLibDoc},
zip_safe = True,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Framework :: Robot Framework :: Library',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Information Technology',
'Intended Audience :: Manufacturing',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
'Topic :: Software Development :: Testing :: Acceptance'
]
)