mirror of
https://github.com/bendtherules/humblematch.git
synced 2026-08-18 22:02:32 +00:00
Moved tests + removed extra img
This commit is contained in:
@@ -1,4 +1,26 @@
|
||||
import sys
|
||||
from setuptools import setup
|
||||
from setuptools.command.test import test as TestCommand
|
||||
|
||||
|
||||
class PyTest(TestCommand):
|
||||
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
|
||||
|
||||
def initialize_options(self):
|
||||
TestCommand.initialize_options(self)
|
||||
self.pytest_args = []
|
||||
|
||||
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.pytest_args)
|
||||
sys.exit(errno)
|
||||
|
||||
|
||||
setup(
|
||||
name='humblematch',
|
||||
@@ -8,8 +30,14 @@ setup(
|
||||
author='bendtherules',
|
||||
author_email='bendtherules@codesp.in',
|
||||
url='https://github.com/bendtherules/humblematch', # use the URL to the github repo
|
||||
download_url='https://github.com/bendtherules/humblematch/tarball/0.1.dev1', # I'll explain this in a second
|
||||
download_url='https://github.com/bendtherules/humblematch/tarball/0.1.dev2', # I'll explain this in a second
|
||||
license='WTFPL',
|
||||
keywords=['type-checking', 'testing', 'assert'], # arbitrary keywords
|
||||
classifiers=['Development Status :: 3 - Alpha', ],
|
||||
package_data={
|
||||
# Include all files in all packages
|
||||
# 'humblematch': ['docs/*.md', 'test/*'],
|
||||
},
|
||||
tests_require=['pytest'],
|
||||
cmdclass={'test': PyTest},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user