Add man in packaging, add missing config dir in manifest

This commit is contained in:
lash 2023-05-13 21:05:04 +01:00
parent f2733b50f9
commit 705bdc9471
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
4 changed files with 16 additions and 8 deletions

View File

@ -1 +1 @@
include *requirements.txt LICENSE CHANGELOG WAIVER WAIVER.asc eth_monitor/data/config/*
include *requirements.txt LICENSE CHANGELOG WAIVER WAIVER.asc eth_monitor/data/config/* man/build/*.1

View File

@ -1,10 +1,12 @@
PREFIX ?= /usr/local
BUILD_DIR = build/$(PREFIX)/share/man
#BUILD_DIR = build/$(PREFIX)/share/man
MAN_DIR = man
man:
mkdir -vp $(BUILD_DIR)
chainlib-man.py -b 0xbf -v -n eth-monitor -d $(BUILD_DIR)/ man
chainlib-man.py -b 0xbf -v -n eth-monitor-list -d $(BUILD_DIR)/ man
chainlib-man.py -b 0xbf -v -n eth-monitor-import -d $(BUILD_DIR)/ man
mkdir -vp $(MAN_DIR)/build
chainlib-man.py -b 0xbf -v -n eth-monitor -d $(MAN_DIR)/build $(MAN_DIR)
cp -v $(MAN_DIR)/build/eth-monitor.1 $(MAN_DIR)/build/eth-monitor-sync.1
chainlib-man.py -b 0xbf -v -n eth-monitor-list -d $(MAN_DIR)/build $(MAN_DIR)
chainlib-man.py -b 0xbf -v -n eth-monitor-import -d $(MAN_DIR)/build $(MAN_DIR)
.PHONY: man

View File

@ -1,6 +1,6 @@
[metadata]
name = eth-monitor
version = 0.7.3
version = 0.7.4
description = Monitor and cache transactions using match filters
author = Louis Holbrook
author_email = dev@holbrook.no
@ -37,4 +37,5 @@ packages =
[options.entry_points]
console_scripts =
eth-monitor = eth_monitor.runnable.sync:main
eth-monitor-sync = eth_monitor.runnable.sync:main

View File

@ -21,8 +21,13 @@ while True:
test_requirements.append(l.rstrip())
f.close()
man_dir = 'man/build'
setup(
install_requires=requirements,
tests_require=test_requirements,
data_files=[("man/man1", [
os.path.join(man_dir, 'eth-monitor.1'),
os.path.join(man_dir, 'eth-monitor-sync.1'),
]
)],
)