forked from fablabnbg/inkscape-silhouette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (45 loc) · 1.83 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# sudo zypper in python-setuptools
# http://docs.python.org/2/distutils/setupscript.html#installing-additional-files
#
import sys,os,glob,re
from distutils.core import setup
from setuptools.command.test import test as TestCommand
import sendto_silhouette # for author(), version()
e = sendto_silhouette.SendtoSilhouette()
m = re.match('(.*)\s+<(.*)>', e.author())
# print ('.',['Makefile'] + glob.glob('silhouette-*')),('misc',glob.glob('misc/*'))
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(name='inkscape-silhouette',
version = e.version(),
description='Inkscape extension for driving a silhouette cameo',
author=m.groups()[0],
author_email=m.groups()[1],
url='https://github.com/jnweiger/inkscape-silhouette',
scripts=filter(os.path.isfile, ['sendto_silhouette.py', 'sendto_silhouette.inx', 'README.md' ] + glob.glob('silhouette-*') + glob.glob('misc/*') + glob.glob('misc/*/*')),
packages=['silhouette'],
license='GPL-2.0',
classifiers=[
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Environment :: Console',
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
cmdclass={'test': PyTest},
long_description="".join(open('README.md').readlines()),
# tests_require=['pytest', 'scipy'],
#packages=['pyPdf','reportlab.pdfgen','reportlab.lib.colors','pygame.font' ],
#
)