forked from jugaad-py/jugaad-data
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
37 lines (32 loc) · 1.1 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
import re
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt", "r") as fh:
requirements = fh.read().splitlines()
with open("jugaad_data/__init__.py", encoding="utf8") as f:
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
print(version)
setuptools.setup(
name="jugaad-data", # Replace with your own username
version=version,
description="Jugad data is a library to download historical stock data",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://marketsetup.in/documentation/jugaad-data/",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=requirements,
python_requires='>=3.6',
data_files=[('.', ['requirements.txt', "README.md"])],
# other arguments here...
entry_points={
"console_scripts": [
"jdata = jugaad_data.cli:cli",
]
}
)