mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00

* Adjust imports to bigchaindb_common * Adjust get_spent function signature * Adjust block serialization * Fix BigchainApi Test * Fix TestTransactionValidation tests * Fix TestBlockValidation tests * WIP: TestMultipleInputs * Adjust tests to tx-model interface changes - Fix old tests - Fix tests in TestMultipleInputs class * Remove fulfillment message tests * Fix TransactionMalleability tests * Remove Cryptoconditions tests * Remove create_transaction * Remove signing logic * Remove consensus plugin * Fix block_creation pipeline * Fix election pipeline * Replace some util functions with bdb_common ones - timestamp ==> gen_timestamp - serialize. * Implement Block model * Simplify function signatures for vote functions Change parameter interface for the following functions: - has_previous_vote - verify_vote_signature - block_election_status so that they take a block's id and voters instead of a fake block. * Integrate Block and Transaction model * Fix leftover tests and cleanup conftest * Add bigchaindb-common to install_requires * Delete transactions after block is written (#609) * delete transactions after block is written * cleanup transaction_exists * check for duplicate transactions * delete invalid tx from backlog * test duplicate transaction * Remove dead code * Test processes.py * Test invalid tx in on server * Fix tests for core.py * Fix models tests * Test commands main fn * Add final coverage to vote pipeline * Add more tests to voting pipeline * Remove consensus plugin docs and misc * Post rebase fixes * Fix rebase mess * Remove extra blank line * Improve docstring * Remove comment handled in bigchaindb/cryptoconditions#27; see https://github.com/bigchaindb/cryptoconditions/issues/27 * Fix block serialization in block creation * Add signed_ prefix to transfer_tx * Improve docs * Add library documentation page on pipelines * PR feedback for models.py * Impr. readability of get_last_voted_block * Use dict comprehension * Add docker-compose file to build and serve docs locally for development purposes * Change private_key for signing_key * Improve docstrings * Remove consensus docs * Document new consensus module * Create different transactions for the block * Cleanup variable names in block.py * Create different transactions for the block * Cleanup variable names in block.py
116 lines
2.8 KiB
Python
116 lines
2.8 KiB
Python
"""
|
|
BigchainDB: A Scalable Blockchain Database
|
|
|
|
For full docs visit https://bigchaindb.readthedocs.org
|
|
|
|
"""
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
# get the version
|
|
version = {}
|
|
with open('bigchaindb/version.py') as fp:
|
|
exec(fp.read(), version)
|
|
|
|
|
|
# check if setuptools is up to date
|
|
def check_setuptools_features():
|
|
import pkg_resources
|
|
try:
|
|
list(pkg_resources.parse_requirements('foo~=1.0'))
|
|
except ValueError:
|
|
exit('Your Python distribution comes with an incompatible version '
|
|
'of `setuptools`. Please run:\n'
|
|
' $ pip3 install --upgrade setuptools\n'
|
|
'and then run this command again')
|
|
|
|
|
|
check_setuptools_features()
|
|
|
|
|
|
tests_require = [
|
|
'coverage',
|
|
'pep8',
|
|
'pyflakes',
|
|
'pylint',
|
|
'pytest',
|
|
'pytest-cov==2.2.1',
|
|
'pytest-xdist',
|
|
'pytest-flask',
|
|
]
|
|
|
|
dev_require = [
|
|
'ipdb',
|
|
'ipython',
|
|
]
|
|
|
|
docs_require = [
|
|
'Sphinx>=1.3.5',
|
|
'recommonmark>=0.4.0',
|
|
'sphinx-rtd-theme>=0.1.9',
|
|
'sphinxcontrib-napoleon>=0.4.4',
|
|
'sphinxcontrib-httpdomain>=1.5.0',
|
|
]
|
|
|
|
benchmarks_require = [
|
|
'line-profiler==1.0',
|
|
]
|
|
|
|
setup(
|
|
name='BigchainDB',
|
|
version=version['__version__'],
|
|
description='BigchainDB: A Scalable Blockchain Database',
|
|
long_description=__doc__,
|
|
url='https://github.com/BigchainDB/bigchaindb/',
|
|
author='BigchainDB Contributors',
|
|
author_email='dev@bigchaindb.com',
|
|
license='AGPLv3',
|
|
zip_safe=False,
|
|
|
|
classifiers=[
|
|
'Development Status :: 3 - Alpha',
|
|
'Intended Audience :: Developers',
|
|
'Topic :: Database',
|
|
'Topic :: Database :: Database Engines/Servers',
|
|
'Topic :: Software Development',
|
|
'Natural Language :: English',
|
|
'License :: OSI Approved :: GNU Affero General Public License v3',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.4',
|
|
'Programming Language :: Python :: 3.5',
|
|
'Operating System :: MacOS :: MacOS X',
|
|
'Operating System :: POSIX :: Linux',
|
|
],
|
|
|
|
packages=find_packages(exclude=['tests*']),
|
|
|
|
entry_points={
|
|
'console_scripts': [
|
|
'bigchaindb=bigchaindb.commands.bigchain:main'
|
|
],
|
|
},
|
|
install_requires=[
|
|
'rethinkdb~=2.3',
|
|
'pysha3==0.3',
|
|
'pytz==2015.7',
|
|
'cryptoconditions==0.4.1',
|
|
'statsd==3.2.1',
|
|
'python-rapidjson==0.0.6',
|
|
'logstats==0.2.1',
|
|
'base58==0.2.2',
|
|
'flask==0.10.1',
|
|
'flask-restful~=0.3.0',
|
|
'requests~=2.9',
|
|
'gunicorn~=19.0',
|
|
'multipipes~=0.1.0',
|
|
'bigchaindb-common>=0.0.2',
|
|
],
|
|
setup_requires=['pytest-runner'],
|
|
tests_require=tests_require,
|
|
extras_require={
|
|
'test': tests_require,
|
|
'dev': dev_require + tests_require + docs_require + benchmarks_require,
|
|
'docs': docs_require,
|
|
},
|
|
)
|