-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
They will be done in a separate PR.
- Loading branch information
Showing
2 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,49 @@ | ||
import io | ||
#!/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 | ||
from os import path | ||
import re | ||
|
||
from distutils.core import setup | ||
from setuptools.command.test import test as TestCommand | ||
import silhouette # for author, version | ||
|
||
# read the contents of your README file | ||
this_directory = path.abspath(path.dirname(__file__)) | ||
with io.open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: | ||
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
m = re.match(r'(.*)\s+<(.*)>', silhouette.__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', | ||
# keep this in sync with the version in sendto_silhouette.inx and with | ||
# the version in silhouette/__init__.py | ||
version="1.25", | ||
version=silhouette.__version__, | ||
description='Inkscape extension for driving a silhouette cameo', | ||
author="Juergen Weigert", | ||
author_mail="[email protected]", | ||
url='https://github.com/fablabnbg/inkscape-silhouette', | ||
packages=['silhouette'], | ||
author=m.groups()[0], | ||
author_email=m.groups()[1], | ||
url='https://github.com/jnweiger/inkscape-silhouette', | ||
entry_points={"console_scripts": ["sendto_silhouette=silhouette.send:main", | ||
"silhouette_multi=silhouette.multi:main"]}, | ||
packages=['silhouette'], | ||
license='GPL-2.0', | ||
classifiers=[ | ||
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)', | ||
|
@@ -28,6 +52,7 @@ | |
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
], | ||
cmdclass={'test': PyTest}, | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
# tests_require=['pytest', 'scipy'], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# __init__ is needed for import statements across subdirectories. | ||
|
||
__version__ = "1.25" | ||
__author__ = "Juergen Weigert <[email protected]> and contributors" |