-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
50 lines (45 loc) · 1.39 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
import os
import re
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
PKG = "tock"
VERSIONFILE = os.path.join(PKG, "__version__.py")
try:
verstrline = open(VERSIONFILE, "rt").read()
except EnvironmentError:
pass # Okay, there is no version file.
else:
VSRE = r"^verstr = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
version = mo.group(1)
else:
print("unable to find version in %s" % (VERSIONFILE,))
raise RuntimeError("if %s.py exists, it is required to be well-formed" % (VERSIONFILE,))
setuptools.setup(
name="tock-py",
version=version,
author="Erwan LE BESCOND",
author_email="[email protected]",
description="Build chatbots using Tock and Python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/theopenconversationkit/tock-py/",
packages=setuptools.find_packages(),
install_requires=[
'aiohttp==3.7.4',
'asyncio==3.4.3',
'isodate==0.6.0',
'marshmallow==3.9.1',
'marshmallow_enum==1.5.1',
'marshmallow-oneofschema==2.1.0',
'testfixtures==6.15.0',
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)