forked from BobDotCom/growstocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (46 loc) · 1.71 KB
/
setup.py
File metadata and controls
53 lines (46 loc) · 1.71 KB
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
import codecs
import os.path
import re
import setuptools
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
# The full version, including alpha/beta/rc tags
with open('growstocks/__init__.py') as f:
__version__ = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) or ''
with open("README.rst", "r") as fh:
long_description = fh.read().replace("""===================
growstocks
===================""", """===================
growstocks {0}
===================""".format(__version__))
setuptools.setup(
name="growstocks",
version=__version__,
author="BobDotCom",
author_email="bobdotcomgt@gmail.com",
description="A wrapper for the GrowStocks API, made for both synchronous and asynchronous applications.",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/BobDotCom/growstocks",
download_url='https://github.com/BobDotCom/growstocks/releases',
packages=setuptools.find_packages(exclude=['tests*', 'build.py']),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
],
python_requires='>=3.5',
install_requires=[
'requests',
'urllib3',
'aiohttp'
],
license='MIT',
project_urls={
'Documentation': 'https://growstocks.readthedocs.io/en/latest/index.html',
'Source': 'https://github.com/BobDotCom/growstocks',
'Tracker': 'https://github.com/BobDotCom/growstocks/issues'
}
)