forked from jsvine/markovify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (49 loc) · 1.64 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
from setuptools import setup, find_packages
import sys, os
NAME = "markovify"
HERE = os.path.abspath(os.path.dirname(__file__))
version_ns = {}
def _open(subpath):
path = os.path.join(HERE, subpath)
return open(path, encoding="utf-8")
with _open(NAME + "/__version__.py") as f:
exec(f.read(), {}, version_ns)
with _open("requirements.txt") as f:
base_reqs = f.read().strip().split("\n")
with _open("requirements-dev.txt") as f:
dev_reqs = f.read().strip().split("\n")
with _open("README.md") as f:
long_description = f.read()
setup(
name="markovify",
version=version_ns["__version__"],
description="A simple, extensible Markov chain generator. Uses include generating random semi-plausible sentences based on an existing text.",
long_description=long_description,
long_description_content_type="text/markdown",
python_requires=">=3.6",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
keywords="markov chain text",
author="Jeremy Singer-Vine",
author_email="[email protected]",
url="http://github.com/jsvine/markovify",
license="MIT",
packages=find_packages(
exclude=[
"test",
]
),
namespace_packages=[],
include_package_data=False,
zip_safe=False,
install_requires=base_reqs,
tests_require=base_reqs + dev_reqs,
test_suite="test",
)