forked from mokelly/wabbit_wappa
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
65 lines (57 loc) · 1.97 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
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env python
import os
import sys
if hasattr(os, 'link'):
del os.link # Hack workaround for http://bugs.python.org/issue8876
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
from pip.req import parse_requirements
from pip.download import PipSession
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
# http://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kwarg-in-setuptool
#install_reqs = parse_requirements('requirements.txt', session=PipSession())
#req_list = [str(ir.req) for ir in install_reqs]
readme = open('README.rst').read()
# doclink = """
# Documentation
# -------------
#
# The full documentation is at http://wabbit_wappa.rtfd.org."""
doclink = ''
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
setup(
name='wabbit_wappa',
version='0.3.0',
description='Wabbit Wappa is a full-featured Python wrapper for the Vowpal Wabbit machine learning utility.',
long_description=readme + '\n\n' + doclink + '\n\n' + history,
author="Michael J.T. O'Kelly",
author_email='[email protected]',
url='https://github.com/mokelly/wabbit_wappa',
packages=find_packages(exclude=['test*']),
package_dir={'wabbit_wappa': 'wabbit_wappa'},
include_package_data=True,
install_requires=[
'pexpect',
'pytest',
'cookiecutter',
'wheel>=0.22',
'pip>=1.4',
],
license='MIT',
keywords='wabbit_wappa',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: Unix',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)