-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
54 lines (45 loc) · 1.54 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
54
# -*- coding: utf-8 -*-
"""
@author: Óscar Nájera
Installing packages on Slave Particles Mean Field Theories
"""
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
import slaveparticles
class PyTest(TestCommand):
"""Test class to do test coverage analysis"""
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['--cov-report', 'term-missing',
'--cov', 'slaveparticles', 'tests/']
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)
with open('README.rst') as f:
long_description = f.read()
setup(
name="slaveparticles",
description="Educative code on Slave Particles",
long_description=long_description,
version=slaveparticles.__version__,
packages=find_packages(),
url="https://github.com/Titan-C/slaveparticles",
author="Óscar Nájera",
author_email='[email protected]',
license="GNU General Public License v3 (GPLv3)",
install_requires=['numpy', 'scipy', 'matplotlib'],
setup_requires=['Sphinx'],
tests_require=['pytest', 'pytest-cov'],
cmdclass={'test': PyTest},
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
]
)