Put on Pypi

This commit is contained in:
Peter D. Gray 2020-02-11 08:49:02 -05:00
parent e424b834ec
commit a709f15625
No known key found for this signature in database
GPG Key ID: F0E6CC6AFC16CF7B
3 changed files with 54 additions and 16 deletions

21
Makefile Normal file
View File

@ -0,0 +1,21 @@
# This Makefile is only useful for maintainers of this package.
all:
echo Targets: build, tag, upload
.PHONY: build
build:
python3 setup.py sdist
.PHONY: upload
upload: FNAME := $(shell ls -1t dist/*-*gz | head -1)
upload:
gpg -u 5A2A5B10 --detach-sign -a $(FNAME)
twine upload $(FNAME)*
.PHONY: tag
tag: VER := $(shell python -c 'from setup import VERSION; print(VERSION)')
tag:
git tag v$(VER) -am "New release"
git push --tags

View File

@ -1,4 +1,2 @@
click>=6.7
pycoin==0.80

View File

@ -4,19 +4,38 @@
#
# pip install --editable .
from setuptools import setup
from setuptools import setup, find_packages
setup(
name='psbt_faker',
version='1.0',
py_modules=[],
python_requires='>3.6.0',
install_requires=[
'Click',
],
entry_points='''
[console_scripts]
psbt_faker=main:faker
''',
)
VERSION = '1.0'
with open('README.md', 'rt') as fd:
desc = fd.read()
if __name__ == '__main__':
setup(
name='psbt_faker',
author='Coinkite Inc.',
author_email='support@coinkite.com',
description="Constructs a valid PSBT files which spend non-existant BTC to random addresses",
version=VERSION,
packages=find_packages(),
long_description=desc,
long_description_content_type="text/markdown",
url="https://github.com/Coldcard/psbt_faker",
py_modules=[],
python_requires='>3.6.0',
install_requires=[
'Click',
'pycoin==0.80',
],
entry_points='''
[console_scripts]
psbt_faker=main:faker
''',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
)