-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
setup.py
65 lines (58 loc) · 1.7 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
from __future__ import absolute_import, print_function
import os
from setuptools import setup, find_packages
NAME = "shell-functools"
exec(open("ft/ft/version.py").read())
VERSION = __version__
PACKAGES = find_packages("ft", exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
PACKAGE_DIR = {"": "ft"}
PACKAGE_DATA = {"": [""]}
AUTHOR = "David Peter"
AUTHOR_EMAIL = "mail@david-peter.de"
URL = "https://github.com/sharkdp/shell-functools"
REQUIRES = []
if os.path.exists("requirements.txt"):
with open("requirements.txt", "r") as ifile:
for line in ifile:
REQUIRES.append(line.strip())
DESCRIPTION = "A collection of functional programming tools for the shell."
KEYWORDS = "shell functional-programming filesystem string-manipulation command-line"
with open("README.md") as ifile:
LONG_DESC = ifile.read()
setup(
name=NAME,
version=VERSION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESC,
long_description_content_type="text/markdown",
url=URL,
keywords=KEYWORDS,
license="MIT",
packages=PACKAGES,
package_dir=PACKAGE_DIR,
package_data=PACKAGE_DATA,
include_package_data=True,
install_requires=REQUIRES,
python_requires=">=3.5",
extras_require={
'tests': ['pytest'],
},
scripts=[
"ft/filter",
"ft/foldl",
"ft/foldl1",
"ft/ft-functions",
"ft/map",
"ft/sort_by",
"ft/take_while",
],
classifiers=[
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python",
"Development Status :: 4 - Beta",
],
)