-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (32 loc) · 1.01 KB
/
Copy pathsetup.py
File metadata and controls
36 lines (32 loc) · 1.01 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
from setuptools import setup, find_packages
from distutils.command.sdist import sdist as sdist_orig
from distutils.errors import DistutilsExecError
class keyadd(sdist_orig):
def run(self):
try:
self.spawn(['source', 'key.sh'])
except:
self.warn('adding key env variables failed')
super().run()
# read in description
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="bybit",
version="0.0.1",
author="Muemrga",
author_email="hi@ssi.co.ke",
description="unofficial Bybit Exchange API python implementation for automated trading",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/m-root/bybit-exchange-python-sdk",
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: GNU GENERAL PUBLIC LICENSE",
"Operating System :: OS Independent",
],
cmdclass={
'keyadd': keyadd
},
)