Skip to content
Snippets Groups Projects
Commit 42f9c7e7 authored by Fabian Schuh's avatar Fabian Schuh
Browse files

initial commit

parents
No related branches found
No related tags found
No related merge requests found
.idea/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
*.eggs
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml
# Translations
*.mo
*.pot
# Django stuff:
*.log
# Sphinx documentation
docs/_build/
docs/html
# PyBuilder
target/
# Configuration Files
*config.py
# Vim temp files
*.swp
language: python
python: "3.5"
install:
- pip install tox codecov
script:
- tox
env:
- TOXENV=py35
after_success:
- codecov
The MIT License (MIT)
Copyright (c) 2015 Fabian Schuh
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
include *.md
Makefile 0 → 100644
.PHONY: clean-pyc clean-build docs
TAG := $(shell git describe master --abbrev=0)
TAGSTEEM := $(shell git describe master --abbrev=0 | tr "." "-")
#
clean: clean-build clean-pyc
clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
rm -fr __pycache__/
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
lint:
flake8 steemapi/ steembase/
test:
python3 setup.py test
build:
python3 setup.py build
install: build
python3 setup.py install
install-user: build
python3 setup.py install --user
git:
git push --all
git push --tags
check:
python3 setup.py check
dist:
python3 setup.py sdist upload -r pypi
python3 setup.py bdist --format=zip upload
python3 setup.py bdist_wheel upload
release: clean check dist bitshares-changelog git
bitshares-changelog:
git show -s --pretty=format: $(TAG) | tail -n +4 | piston post --file "-" --author xeroc --permlink "python-bitshares-changelog-$(TAGSTEEM)" --category bitshares --title "[Changelog] python-bitshares $(TAG)" --tags python-bitshares changelog
Python Library for BitShares
========================
*placeholder*
-e git://github.com/xeroc/python-graphenelib@develop#egg=graphenelib
pycrypto==2.6.1
scrypt==0.7.1
pyyaml
pytest
coverage
[metadata]
description-file = README.md
[aliases]
test=pytest
setup.py 0 → 100755
#!/usr/bin/env python
from setuptools import setup
from pip.req import parse_requirements
# Work around mbcs bug in distutils.
# http://bugs.python.org/issue10945
import codecs
try:
codecs.lookup('mbcs')
except LookupError:
ascii = codecs.lookup('ascii')
codecs.register(lambda name, enc=ascii: {True: enc}.get(name == 'mbcs'))
VERSION = '0.0.1'
setup(name='bitshares',
version=VERSION,
description='Python library for bitshares',
long_description=open('README.md').read(),
download_url='https://github.com/xeroc/python-bitshares/tarball/' + VERSION,
author='Fabian Schuh',
author_email='<Fabian@BitShares.eu>',
maintainer='Fabian Schuh',
maintainer_email='<Fabian@BitShares.eu>',
url='http://www.github.com/xeroc/python-bitshares',
keywords=['bitshares', 'library', 'api', 'rpc'],
packages=["bitshares", "bitsharesapi", "bitsharesbase"],
classifiers=['License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'Topic :: Office/Business :: Financial',
],
install_requires=["graphenelib>=0.4.6",
"websockets==2.0",
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
include_package_data=True,
)
tox.ini 0 → 100644
[tox]
envlist = py35,py37,lint,docs
[testenv]
deps=-rrequirements-test.txt
commands=
coverage run -a setup.py test
coverage report --show-missing
coverage html -i
[testenv:lint]
deps=
flake8
commands=
flake8 --ignore=E221,E203,E241,E501,F401 bitsharesapi bitsharesbase examples
[testenv:docs]
basepython=
python
changedir=
docs
deps=-rdocs/requirements.txt
sphinx
commands=
sphinx-build -b html ./ ./html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment