migrate to setuptools

This commit is contained in:
The MMGen Project 2021-10-13 19:52:38 +00:00
commit 8faeb17a68
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
13 changed files with 53 additions and 58 deletions

View file

@ -1,3 +1,4 @@
include README.md LICENSE
include test/test-release.sh
include test/unit_tests_d/*.py
include mmgen_node_tools/data/*

View file

@ -14,7 +14,8 @@ Then,
$ git clone https://github.com/mmgen/mmgen-node-tools
$ cd mmgen-node-tools
$ sudo ./setup.py install
$ python3 -m build --no-isolation
$ python3 -m pip install --user dist/*.whl
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View file

@ -17,7 +17,7 @@
# this program. If not, see <http://www.gnu.org/licenses/>.
"""
mmgen.node_tools.BlocksInfo: Display information about a block or range of blocks
mmgen_node_tools.BlocksInfo: Display information about a block or range of blocks
"""
import re,json

View file

@ -16,11 +16,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
mmgen.node_tools.Sound: audio-related functions for MMGen node tools
mmgen_node_tools.Sound: audio-related functions for MMGen node tools
"""
import sys,os,time
from mmgen.node_tools.Util import *
from mmgen_node_tools.Util import *
_alsa_config_file = '/tmp/alsa-config-' + os.path.basename(sys.argv[0])
_dvols = { 'Master': 78, 'Speaker': 78, 'Headphone': 15, 'PCM': 190 }

View file

@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
mmgen.node_tools.Term: terminal routines for MMGen node tools
mmgen_node_tools.Term: terminal routines for MMGen node tools
"""
import sys,os,termios

View file

@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
mmgen.node_tools.Util: utility functions for MMGen node tools
mmgen_node_tools.Util: utility functions for MMGen node tools
"""
import time,subprocess

View file

@ -0,0 +1 @@
Bitcoin, BTC, Ethereum, ETH, Monero, XMR, ERC20, cryptocurrency, wallet, BIP32, cold storage, offline, online, spending, open-source, command-line, Python, Linux, Bitcoin Core, bitcoind, hd, deterministic, hierarchical, secure, anonymous, Electrum, seed, mnemonic, brainwallet, Scrypt, utility, script, scriptable, blockchain, raw, transaction, permissionless, console, terminal, curses, ansi, color, tmux, remote, client, daemon, RPC, json, entropy, xterm, rxvt, PowerShell, MSYS, MSYS2, MinGW, MinGW64, MSWin, Armbian, Raspbian, Raspberry Pi, Orange Pi, BCash, BCH, Litecoin, LTC, altcoin, ZEC, Zcash, DASH, Dashpay, SHA256Compress, monerod, EMC, Emercoin, token, deploy, contract, gas, fee, smart contract, solidity, Parity, OpenEthereum, testnet, devmode, Kovan

View file

@ -21,7 +21,7 @@ mmnode-blocks-info: Display information about a block or range of blocks
"""
from mmgen.common import *
from mmgen.node_tools.BlocksInfo import BlocksInfo,JSONBlocksInfo
from mmgen_node_tools.BlocksInfo import BlocksInfo,JSONBlocksInfo
opts_data = {
'sets': [

6
pyproject.toml Normal file
View file

@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"

36
setup.cfg Normal file
View file

@ -0,0 +1,36 @@
[metadata]
name = MMGen Node Tools
version = 0.0.3
description = Optional online tools for the MMGen wallet suite
long_description = file: README.md
long_description_content_type = text/markdown
author = The MMGen Project
author_email = mmgen@tuta.io
url = https://github.com/mmgen/mmgen-node-tools
license = GNU GPL v3
platforms = Linux, Armbian, Raspbian, MS Windows
keywords = file: mmgen_node_tools/data/keywords
project_urls =
Bug Tracker = https://github.com/mmgen/mmgen-node-tools/issues
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Operating System :: POSIX :: Linux
Operating System :: Microsoft :: Windows
[options]
python_requires = >=3.7
include_package_data = True
install_requires =
mmgen>=0.12.2
packages =
mmgen_node_tools
scripts =
mmnode-blocks-info
mmnode-feeview
mmnode-halving-calculator
mmnode-netrate
mmnode-peerblocks

View file

@ -1,50 +0,0 @@
#!/usr/bin/env python3
#
# mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution
# Copyright (C)2013-2016 Philemon <mmgen-py@yandex.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
from distutils.core import setup
from mmgen.globalvars import g
os.umask(0o0022)
setup(
name = 'mmgen-node-tools',
description = 'Optional tools for the MMGen wallet system',
version = g.version,
author = g.author,
author_email = g.email,
url = g.proj_url,
license = 'GNU GPL v3',
platforms = ('Linux, Armbian, Raspbian, MS Windows'),
keywords = g.keywords,
packages = ['mmgen.node_tools'],
scripts = [
'mmnode-blocks-info',
'mmnode-feeview',
'mmnode-halving-calculator',
'mmnode-netrate',
'mmnode-peerblocks',
],
# data_files = [('share/mmgen/node_tools/audio', [
# 'data_files/audio/ringtone.wav', # source files must have 0644 mode
# 'data_files/audio/Positive.wav',
# 'data_files/audio/Rhodes.wav',
# 'data_files/audio/Counterpoint.wav'
# ])
# ],
)

View file

@ -6,7 +6,7 @@ test.unit_tests_d.nt_BlocksInfo:
from mmgen.common import *
from mmgen.exception import *
from mmgen.node_tools.BlocksInfo import BlocksInfo
from mmgen_node_tools.BlocksInfo import BlocksInfo
tip = 50000
range_vecs = (