-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
73 lines (65 loc) · 2.47 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
# import atexit, os
import sys
import setuptools # noqa
from distutils.core import setup
import nseta
__USERNAME__ = 'pkjmesra'
with open('README.md', 'r') as fh:
long_description = fh.read()
with open('common-requirements.txt', 'r') as fh:
install_requires = fh.read().splitlines()
SYS_MAJOR_VERSION = str(sys.version_info.major)
SYS_VERSION = SYS_MAJOR_VERSION + '.' +str(sys.version_info.minor)
WHEEL_NAME = 'nseta-'+nseta.__version__+'-py'+SYS_MAJOR_VERSION+'-none-any.whl'
TAR_FILE = 'nseta-'+nseta.__version__+'.tar.gz'
EGG_FILE = 'nseta-'+nseta.__version__+'-py'+SYS_VERSION+'.egg'
DIST_FILES = [WHEEL_NAME, TAR_FILE, EGG_FILE]
DIST_DIR = 'dist/'
# def _post_build():
# if "bdist_wheel" in sys.argv:
# for count, filename in enumerate(os.listdir(DIST_DIR)):
# if filename in DIST_FILES:
# os.rename(DIST_DIR + filename, DIST_DIR + filename.replace('nseta-', 'nseta_'+__USERNAME__+'-'))
# atexit.register(_post_build)
setup(
name = 'nseta',
packages=setuptools.find_packages(where=".", exclude=["docs", "tests"]),
include_package_data = True, # include everything in source control
package_data={'nseta.resources': ['config.txt', 'stocks.txt', 'userstocks.txt']},
# ...but exclude README.txt from all packages
exclude_package_data = { '': ['*.yml'] },
version = nseta.__version__,
description = 'Library to scan, analyse and predict financial data from National Stock Exchange (NSE - India) in pandas dataframe ',
long_description = long_description,
long_description_content_type="text/markdown",
author = 'Praveen K Jha',
author_email = __USERNAME__+'@gmail.com',
license = 'OSI Approved (MIT)',
url = 'https://github.com/'+__USERNAME__+'/nseta', # use the URL to the github repo
zip_safe=False,
entry_points='''
[console_scripts]
nsetacli=nseta.cli.nsetacli:nsetacli
nseta=nseta.cli.nsetacli:nsetacli
''',
download_url = 'https://github.com/'+__USERNAME__+'/nseta/archive/v' + nseta.__version__ + '.zip',
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
install_requires = install_requires,
keywords = ['NSE', 'Technical Indicators', 'Backtesting'],
test_suite="tests",
),
python_requires='>=3.6',