2022-02-25 16:30:01 +01:00
|
|
|
from setuptools import setup
|
|
|
|
import configparser
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
requirements = []
|
|
|
|
f = open('requirements.txt', 'r')
|
|
|
|
while True:
|
|
|
|
l = f.readline()
|
|
|
|
if l == '':
|
|
|
|
break
|
|
|
|
requirements.append(l.rstrip())
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
test_requirements = []
|
|
|
|
f = open('test_requirements.txt', 'r')
|
|
|
|
while True:
|
|
|
|
l = f.readline()
|
|
|
|
if l == '':
|
|
|
|
break
|
|
|
|
test_requirements.append(l.rstrip())
|
|
|
|
f.close()
|
|
|
|
|
2023-05-13 22:46:49 +02:00
|
|
|
f = open('README.md', 'r')
|
|
|
|
description = f.read()
|
|
|
|
f.close()
|
|
|
|
|
2023-05-13 22:05:04 +02:00
|
|
|
man_dir = 'man/build'
|
2022-02-25 16:30:01 +01:00
|
|
|
setup(
|
|
|
|
install_requires=requirements,
|
|
|
|
tests_require=test_requirements,
|
2023-05-13 22:05:04 +02:00
|
|
|
data_files=[("man/man1", [
|
|
|
|
os.path.join(man_dir, 'eth-monitor.1'),
|
|
|
|
os.path.join(man_dir, 'eth-monitor-sync.1'),
|
|
|
|
]
|
|
|
|
)],
|
2023-05-13 22:46:49 +02:00
|
|
|
long_description=description,
|
|
|
|
long_description_content_type='text/markdown',
|
2022-02-25 16:30:01 +01:00
|
|
|
)
|