-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·54 lines (47 loc) · 1.51 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
import io
import re
from setuptools import find_packages, setup
with io.open('./src/__init__.py', encoding='utf8') as version_file:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file.read(), re.M)
if version_match:
version = version_match.group(1)
else:
raise RuntimeError("Unable to find version string.")
with io.open('README.md', encoding='utf8') as readme:
long_description = readme.read()
prod = []
dev = ['pytest', 'pytest-cov', 'pycodestyle', 'coverage',
'isort', 'ipdb', 'bandit']
db = ['pymongo', 'flask_pymongo', 'flask_mongoengine', 'mongoengine']
base = ['requests', 'pathlib', 'flask_cors', 'click', 'flask', 'tqdm']
setup(
name="poketrader",
version=version,
author='Dayanne Fernandes',
author_email='[email protected]',
packages=find_packages(exclude='tests'),
long_description=long_description,
description="Poke trader.",
install_requires=[*base, *db],
entry_points={
'console_scripts': [
'poketrader = src.main:start',
'poketrader-db = src.main:db_start'
],
},
extras_require={
'dev': dev,
'prod': prod
},
classifiers=[
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.7'
],
keywords=(
'Pokemon'
)
)