forked from fnpy/fn.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (57 loc) · 1.71 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
from pkg_resources import get_distribution, DistributionNotFound
try:
get_distribution('fn')
get_distribution('fn.py')
sys.stdout.write("""
{delimiter}
INSTALLATION ABORTED
One of the modules "fn" or "fn.py" were found on this system.
Unfortunately "fn.py" and "fn" cannot work together because
they use the same package name. This project is a fork of "fn.py"
""".format(delimiter='=' * 60))
sys.exit(0)
except DistributionNotFound:
pass
import fn
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
short = '''
Implementation of missing features to enjoy functional programming in Python
'''
setup(
name='fn-mdowds',
version=fn.__version__,
description=short,
long_description=(
open('README.rst').read() +
'\n\n' +
open('CHANGELOG.rst').read()
),
author='fnpy team',
url='https://github.com/mdowds/fn.py',
packages=['fn', 'fn.immutable'],
package_data={'': ['LICENSE', 'README.rst', 'CHANGELOG.rst']},
include_package_data=True,
install_requires=[],
license=open('LICENSE').read(),
zip_safe=False,
keywords=['functional', 'fp', 'utility'],
classifiers=(
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
),
)