tAdd setup.py for easy installation. - obelisk - Electrum server using libbitcoin as its backend HTML git clone https://git.parazyd.org/obelisk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 196f5385fc3b2cac9becf634c06c4d0fe927fcfb DIR parent 063c41d71640bde02839d8250fedde10633eba96 HTML Author: parazyd <parazyd@dyne.org> Date: Tue, 13 Apr 2021 00:05:42 +0200 Add setup.py for easy installation. Diffstat: M README.md | 8 ++++++-- A setup.py | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) --- DIR diff --git a/README.md b/README.md t@@ -30,10 +30,14 @@ Usage Set up [obelisk.cfg](res/obelisk.cfg), and run ``` -./obelisk.py ./res/obelisk.cfg +./run_obelisk ./res/obelisk.cfg ``` -Some kind of setuptools installation should be written eventually. +Obelisk can also be installed with setuptools: + +``` +python3 setup.py install +``` License DIR diff --git a/setup.py b/setup.py t@@ -0,0 +1,23 @@ +#!/usr/bin/env python3 +from setuptools import setup + +from obelisk.protocol import VERSION + +setup( + name="Obelisk", + version=VERSION, + packages=["obelisk"], + package_dir={ + "obelisk": "obelisk", + }, + install_requires=["pyzmq"], + scripts=["obelisk/obelisk"], + description="Electrum server using libbitcoin and zmq as backend", + author="Ivan J.", + author_email="parazyd@dyne.org", + license="AGPL-3", + url="https://github.com/parazyd/obelisk", + long_description="""Electrum server using libbitcoin and zmq as backend""", + include_package_data=True, + data_files=[("share/doc/obelisk", ["README.md", "res/obelisk.cfg"])], +)