-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (34 loc) · 1.15 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
#!/usr/bin/env python
# encoding: utf-8
import codecs
import re
from os.path import dirname, join
from setuptools import setup, find_packages
def read(*path_parts):
file_path = join(dirname(__file__), *path_parts)
return codecs.open(file_path, encoding='utf-8').read()
def find_version(*path_parts):
version = read(*path_parts)
match = re.search(r'^__version__ = ["\']([^"\']*)["\']', version, re.M)
if match:
return str(match.group(1))
raise RuntimeError('Unable to find module version.')
setup(
name='blockchain-client',
verbose_name='Blockchain API Client written in Python 3',
packages=['blockchain-client'],
author='Sergio de Diego',
version=find_version('blockchain', '__init__.py'),
description='Blockchain statistics and market data fetcher client',
long_description=read('README.md'),
url='https://github.com/sdediego/blockchain-api-client',
license='MIT',
requires=read('requirements.txt'),
packages=find_packages(),
keywords='Blockchain Bitcoin API client Python',
entry_points={
'console_scripts': [
'run_scheduler = scheduler',
],
},
)