-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
33 lines (28 loc) · 927 Bytes
/
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
import os
from os.path import abspath, dirname, join
from setuptools import setup, find_packages
INIT_FILE = join(dirname(abspath(__file__)), 'pydux', '__init__.py')
def long_description():
if os.path.exists('README.txt'):
return open('README.txt').read()
else:
return 'Python implementation of Redux'
def get_version():
with open(INIT_FILE) as fd:
for line in fd:
if line.startswith('__version__'):
version = line.split()[-1].strip('\'')
return version
raise AttributeError('Package does not have a __version__')
setup(
name='pydux',
description="Python + Redux = Pydux",
long_description=long_description(),
url="http://github.com/usrlocalben/pydux/",
version=get_version(),
author='Benjamin Yates',
author_email='[email protected]',
packages=['pydux'],
install_requires=[],
license='MIT',
)