|
1 | | - |
2 | | -# Authors: Veeresh Taranalli <veeresht@gmail.com> |
| 1 | +# Authors: CommPy contributors |
3 | 2 | # License: BSD 3-Clause |
4 | 3 |
|
5 | | -import os, sys, shutil, numpy |
6 | | -from setuptools import find_packages |
7 | 4 | from distutils.core import setup |
8 | | -from distutils.extension import Extension |
9 | | - |
10 | | -#use_cython = False |
11 | | - |
12 | | -#try: |
13 | | -# from Cython.Distutils import build_ext |
14 | | - #use_cython = True |
15 | | -#except ImportError: |
16 | | - #from distutils.command import build_ext |
17 | | -# use_cython = False |
18 | | - |
19 | | -#cmdclass = { } |
20 | | -#ext_modules = [ ] |
21 | | - |
22 | | -#if use_cython: |
23 | | -# ext_modules += [ |
24 | | -# Extension("commpy.channelcoding.acstb", [ "commpy/channelcoding/acstb.pyx" ], include_dirs=[numpy.get_include()]), |
25 | | -# Extension("commpy.channelcoding.map_c", [ "commpy/channelcoding/map_c.pyx" ], include_dirs=[numpy.get_include()]) |
26 | | -# ] |
27 | | -# cmdclass.update({ 'build_ext': build_ext }) |
28 | | -# print "Using Cython" |
29 | | -#else: |
30 | | -# ext_modules += [ |
31 | | -# Extension("commpy.channelcoding.acstb", [ "commpy/channelcoding/acstb.c" ], include_dirs=[numpy.get_include()]), |
32 | | -# Extension("commpy.channelcoding.map_c", [ "commpy/channelcoding/map_c.c" ], include_dirs=[numpy.get_include()]) |
33 | | -# ] |
34 | 5 |
|
35 | 6 | # Taken from scikit-learn setup.py |
36 | 7 | DISTNAME = 'scikit-commpy' |
37 | 8 | DESCRIPTION = 'Digital Communication Algorithms with Python' |
38 | 9 | LONG_DESCRIPTION = open('README.md').read() |
39 | | -MAINTAINER = 'Veeresh Taranalli' |
| 10 | +MAINTAINER = 'Veeresh Taranalli & Bastien Trotobas' |
40 | 11 | MAINTAINER_EMAIL = 'veeresht@gmail.com' |
41 | 12 | URL = 'http://veeresht.github.com/CommPy' |
42 | 13 | LICENSE = 'BSD 3-Clause' |
43 | | -# DOWNLOAD_URL = 'http://sourceforge.net/projects/scikit-learn/files/' |
44 | | -VERSION = '0.3.0' |
| 14 | +VERSION = '0.5.0' |
45 | 15 |
|
46 | 16 | #This is a list of files to install, and where |
47 | 17 | #(relative to the 'root' dir, where setup.py is) |
48 | 18 | #You could be more specific. |
49 | | -files = ["channelcoding/*, channelcoding/tests/*"] |
| 19 | +files = ["channelcoding/*, channelcoding/tests/*, tests/*"] |
50 | 20 |
|
51 | 21 | setup( |
52 | | - name = DISTNAME, |
| 22 | + name=DISTNAME, |
53 | 23 | maintainer=MAINTAINER, |
54 | 24 | maintainer_email=MAINTAINER_EMAIL, |
55 | 25 | description=DESCRIPTION, |
|
60 | 30 | #(If you have other packages (dirs) or modules (py files) then |
61 | 31 | #put them into the package directory - they will be found |
62 | 32 | #recursively.) |
63 | | - packages = ['commpy', 'commpy.channelcoding', 'commpy.channelcoding.tests'], |
64 | | - #package_dir={ |
65 | | - # 'commpy' : 'commpy', |
66 | | - #}, |
| 33 | + packages=['commpy', 'commpy.channelcoding', 'commpy.channelcoding.tests', 'commpy.tests'], |
67 | 34 | install_requires=[ |
68 | 35 | 'numpy', |
69 | 36 | 'scipy', |
70 | 37 | 'matplotlib', |
71 | 38 | ], |
72 | | - #'package' package must contain files (see list above) |
| 39 | + #'package' package must contain files (see list above) |
73 | 40 | #This dict maps the package name =to=> directories |
74 | 41 | #It says, package *needs* these files. |
75 | | - package_data = {'commpy' : files }, |
| 42 | + package_data={'commpy': files}, |
76 | 43 | #'runner' is in the root. |
77 | | - scripts = ["runner"], |
| 44 | + scripts=["runner"], |
78 | 45 | test_suite='nose.collector', |
79 | 46 | tests_require=['nose'], |
80 | 47 |
|
81 | | - long_description = LONG_DESCRIPTION, |
82 | | - classifiers = [ |
83 | | - 'Development Status :: 1 - Planning', |
| 48 | + long_description=LONG_DESCRIPTION, |
| 49 | + long_description_content_type="text/markdown", |
| 50 | + classifiers=[ |
| 51 | + 'Development Status :: 4 - Beta', |
84 | 52 | 'Intended Audience :: Science/Research', |
85 | 53 | 'Intended Audience :: Telecommunications Industry', |
86 | 54 | 'Operating System :: Unix', |
87 | 55 | 'Programming Language :: Python', |
88 | 56 | 'Topic :: Scientific/Engineering', |
89 | 57 | 'Topic :: Software Development', |
90 | | - ] |
| 58 | + ], |
| 59 | + python_requires='>=3.2', |
91 | 60 | ) |
0 commit comments