-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
41 lines (33 loc) · 1.05 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
import os
import re
from setuptools import setup, find_packages
# Extract the version from the main package __init__ file
PATTERN = '__version__\s+=\s+(?P<version>.*)'
BASE_DIR = os.path.dirname(__file__)
with open(os.path.join(BASE_DIR, 'pybitx/__init__.py'), 'r') as f:
match = re.search(PATTERN, f.read())
if match is None:
raise ValueError("failed to extract package version")
version = match.groupdict()['version']
setup(
name='pybitx',
version=version,
packages=find_packages(exclude=['tests']),
description='A BitX API for Python',
author='Cayle Sharrock',
author_email='[email protected]',
scripts=['demo.py'],
install_requires=[
'futures>=3.0.3',
'nose>=1.3.7',
'requests>=2.8.1',
'pandas>=0.17.0'
],
license='MIT',
url='https://github.com/CjS77/pybitx',
download_url='https://github.com/CjS77/pybitx/tarball/%s' % (version, ),
keywords='BitX Bitcoin exchange API',
classifiers=[],
test_suite='tests',
extras_require={'dev': ['requests-mock>=0.7.0']}
)