|
1 | 1 | import os |
2 | | -# from glob import glob |
3 | 2 | import setuptools # used indirectly for bdist_wheel cmd and long_description_content_type |
4 | 3 | from distutils.core import setup |
5 | 4 | from distutils.extension import Extension |
6 | 5 | import numpy.distutils.misc_util |
7 | 6 |
|
8 | 7 | with open("README.md", 'r') as readme: |
9 | | - long_description = readme.read() |
| 8 | + long_description = readme.read() |
10 | 9 |
|
11 | 10 | current_dir = os.getcwd() |
12 | 11 | arrow_dir = os.path.join(current_dir, 'arrow') |
|
23 | 22 | ext = '.pyx' if USE_CYTHON else '.c' |
24 | 23 |
|
25 | 24 | cython_extensions = [ |
26 | | - Extension('arrow.arrowhead', |
27 | | - sources=['arrow/mersenne.c', 'arrow/obsidian.c', 'arrow/arrowhead'+ext,], |
28 | | - include_dirs=['arrow'] + numpy.distutils.misc_util.get_numpy_include_dirs(), |
29 | | - define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')], |
30 | | - )] |
| 25 | + Extension('arrow.arrowhead', |
| 26 | + sources=['arrow/mersenne.c', 'arrow/obsidian.c', 'arrow/arrowhead'+ext,], |
| 27 | + include_dirs=['arrow'] + numpy.distutils.misc_util.get_numpy_include_dirs(), |
| 28 | + define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')], |
| 29 | + )] |
31 | 30 |
|
32 | 31 | if USE_CYTHON: |
33 | | - from Cython.Build import cythonize |
34 | | - cython_extensions = cythonize( |
35 | | - cython_extensions, |
36 | | - include_path=['arrow'], |
37 | | - annotate=True, # to get an HTML code listing |
38 | | - ) |
| 32 | + from Cython.Build import cythonize |
| 33 | + cython_extensions = cythonize( |
| 34 | + cython_extensions, |
| 35 | + include_path=['arrow'], |
| 36 | + annotate=True, # to get an HTML code listing |
| 37 | + ) |
39 | 38 |
|
40 | 39 | setup( |
41 | | - name='stochastic-arrow', |
42 | | - version='0.4.4', |
43 | | - packages=['arrow'], |
44 | | - author='Ryan Spangler, John Mason, Jerry Morrison', |
45 | | - author_email='spanglry@stanford.edu', |
46 | | - url='https://github.com/CovertLab/arrow', |
47 | | - license='MIT', |
48 | | - include_dirs=include, |
49 | | - ext_modules=cython_extensions, |
50 | | - long_description=long_description, |
51 | | - long_description_content_type='text/markdown', |
52 | | - requires=['numpy (>=1.14)', 'six'], |
53 | | - classifiers=[ |
54 | | - 'Development Status :: 3 - Alpha', |
55 | | - 'License :: OSI Approved :: MIT License', |
56 | | - 'Programming Language :: Python', |
57 | | - 'Programming Language :: Python :: 2.7', |
58 | | - 'Programming Language :: Python :: 3', |
59 | | - 'Topic :: Scientific/Engineering', |
60 | | - ]) |
| 40 | + name='stochastic-arrow', |
| 41 | + version='0.5.0', |
| 42 | + packages=['arrow'], |
| 43 | + author='Ryan Spangler, John Mason, Jerry Morrison, Chris Skalnik, Travis Ahn-Horst', |
| 44 | + author_email='ryan.spangler@gmail.com', |
| 45 | + url='https://github.com/CovertLab/arrow', |
| 46 | + license='MIT', |
| 47 | + include_dirs=include, |
| 48 | + ext_modules=cython_extensions, |
| 49 | + long_description=long_description, |
| 50 | + long_description_content_type='text/markdown', |
| 51 | + requires=['numpy (>=1.14)', 'six'], |
| 52 | + classifiers=[ |
| 53 | + 'Development Status :: 3 - Alpha', |
| 54 | + 'License :: OSI Approved :: MIT License', |
| 55 | + 'Programming Language :: Python', |
| 56 | + 'Programming Language :: Python :: 2.7', |
| 57 | + 'Programming Language :: Python :: 3', |
| 58 | + 'Topic :: Scientific/Engineering', |
| 59 | + ]) |
0 commit comments