forked from fbpic/fbpic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (47 loc) · 1.86 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
# Copyright 2016, FBPIC contributors
# Authors: Remi Lehe, Manuel Kirchen, Kevin Peters, Soeren Jalas
# License: 3-Clause-BSD-LBNL
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import fbpic # In order to extract the version number
# Obtain the long description from README.md
with open('./README.md') as f:
long_description = f.read()
# Get the package requirements from the requirements.txt file
with open('requirements.txt') as f:
install_requires = [ line.strip('\n') for line in f.readlines() ]
# Define a custom class to run the py.test with `python setup.py test`
class PyTest(TestCommand):
def run_tests(self):
import pytest
errcode = pytest.main(['--ignore=tests/unautomated', '--durations=10'])
sys.exit(errcode)
setup(
name='fbpic',
version=fbpic.__version__,
description='Spectral, quasi-3D Particle-In-Cell for CPU and GPU',
long_description=long_description,
long_description_content_type='text/markdown',
maintainer='Remi Lehe',
maintainer_email='remi.lehe@normalesup.org',
license='BSD-3-Clause-LBNL',
packages=find_packages('.'),
tests_require=['more-itertools<6.0.0', 'pytest', 'openpmd_viewer'],
cmdclass={'test': PyTest},
install_requires=install_requires,
include_package_data=True,
platforms='any',
url='http://github.com/fbpic/fbpic',
classifiers=[
'Programming Language :: Python',
'Development Status :: 3 - Alpha',
'Natural Language :: English',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Physics',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5'],
)