Skip to content

Commit

Permalink
Revert most of the setup.py changes
Browse files Browse the repository at this point in the history
They will be done in a separate PR.
  • Loading branch information
twmr committed Apr 3, 2022
1 parent 962ed93 commit da9f905
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 9 deletions.
43 changes: 34 additions & 9 deletions setup.py
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="juergen@fabmail.org",
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)',
Expand All @@ -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'],
Expand Down
1 change: 1 addition & 0 deletions silhouette/__init__.py
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 <juergen@fabmail.org> and contributors"

0 comments on commit da9f905

Please sign in to comment.