forked from cwehmeyer/urban-broccoli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (28 loc) · 954 Bytes
/
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
from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
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 = ['urbanbroccoli']
def run_tests(self):
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
description = '''
A Poisson solver written in Python for educational purposes.
'''
setup(
cmdclass={'test': PyTest},
name='urbanbroccoli',
version='0.1.0',
author='Christoph Wehmeyer',
author_email='christoph.wehmeyer@fu-berlin.de',
url='https://github.com/cwehmeyer/urban-broccoli',
description=description,
packages=['urbanbroccoli', 'urbanbroccoli.test'],
setup_requires=['pytest-runner',],
install_requires=['numpy'],
tests_require=['pytest'],
zip_safe=False)