-
Notifications
You must be signed in to change notification settings - Fork 35
/
setup.py
47 lines (41 loc) · 1.22 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
import os
from setuptools import setup, find_packages
import spruned
def read_pip_requirements():
reqs = []
with open(os.path.join(os.path.dirname(__file__), "requirements.txt"), 'r') as f:
lines = f.readlines()
for line in lines:
line = line.strip()
if '://' not in line:
reqs.append(line)
return reqs
def read_file(name):
with open(name, 'r', encoding='utf-8') as f:
file = f.read()
return file
setup(
name='spruned',
version=spruned.__version__,
url='https://github.com/gdassori/spruned/',
license='MIT',
author='Guido Dassori',
author_email='[email protected]',
python_requires='>=3.5.2',
description='Bitcoin Lightweight Pseudonode',
long_description=read_file('README.rst'),
install_requires=read_pip_requirements(),
packages=find_packages(exclude=['htmlcov']),
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
entry_points={
'console_scripts': [
'spruned = spruned.app:main'
]
},
include_package_data=True
)