Skip to content

Commit 1c031f9

Browse files
committed
Adapts setup.py for v0.5 release.
1 parent f99ed6d commit 1c031f9

File tree

1 file changed

+15
-46
lines changed

1 file changed

+15
-46
lines changed

setup.py

Lines changed: 15 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,25 @@
1-
2-
# Authors: Veeresh Taranalli <veeresht@gmail.com>
1+
# Authors: CommPy contributors
32
# License: BSD 3-Clause
43

5-
import os, sys, shutil, numpy
6-
from setuptools import find_packages
74
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-
# ]
345

356
# Taken from scikit-learn setup.py
367
DISTNAME = 'scikit-commpy'
378
DESCRIPTION = 'Digital Communication Algorithms with Python'
389
LONG_DESCRIPTION = open('README.md').read()
39-
MAINTAINER = 'Veeresh Taranalli'
10+
MAINTAINER = 'Veeresh Taranalli & Bastien Trotobas'
4011
MAINTAINER_EMAIL = 'veeresht@gmail.com'
4112
URL = 'http://veeresht.github.com/CommPy'
4213
LICENSE = 'BSD 3-Clause'
43-
# DOWNLOAD_URL = 'http://sourceforge.net/projects/scikit-learn/files/'
44-
VERSION = '0.3.0'
14+
VERSION = '0.5.0'
4515

4616
#This is a list of files to install, and where
4717
#(relative to the 'root' dir, where setup.py is)
4818
#You could be more specific.
49-
files = ["channelcoding/*, channelcoding/tests/*"]
19+
files = ["channelcoding/*, channelcoding/tests/*, tests/*"]
5020

5121
setup(
52-
name = DISTNAME,
22+
name=DISTNAME,
5323
maintainer=MAINTAINER,
5424
maintainer_email=MAINTAINER_EMAIL,
5525
description=DESCRIPTION,
@@ -60,32 +30,31 @@
6030
#(If you have other packages (dirs) or modules (py files) then
6131
#put them into the package directory - they will be found
6232
#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'],
6734
install_requires=[
6835
'numpy',
6936
'scipy',
7037
'matplotlib',
7138
],
72-
#'package' package must contain files (see list above)
39+
#'package' package must contain files (see list above)
7340
#This dict maps the package name =to=> directories
7441
#It says, package *needs* these files.
75-
package_data = {'commpy' : files },
42+
package_data={'commpy': files},
7643
#'runner' is in the root.
77-
scripts = ["runner"],
44+
scripts=["runner"],
7845
test_suite='nose.collector',
7946
tests_require=['nose'],
8047

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',
8452
'Intended Audience :: Science/Research',
8553
'Intended Audience :: Telecommunications Industry',
8654
'Operating System :: Unix',
8755
'Programming Language :: Python',
8856
'Topic :: Scientific/Engineering',
8957
'Topic :: Software Development',
90-
]
58+
],
59+
python_requires='>=3.2',
9160
)

0 commit comments

Comments
 (0)