1
0
mirror of https://github.com/bigchaindb/bigchaindb.git synced 2024-06-29 00:57:45 +02:00
Commit Graph

166 Commits

Author SHA1 Message Date
Scott Sadler
e12e95d9d8 use rapidjson-schema 2017-05-23 13:19:10 +02:00
vrde
5ae8c81474 Use "allow_headers" keyword to initialize CORS
Fix #1478
2017-05-18 17:43:44 +02:00
vrde
f08edd5a52
Unpin flask-cors, revert extra changes 2017-05-12 14:35:34 +02:00
diminator
7055c21fdd Merge branch 'master' into kyber-master-feat-cors 2017-05-01 13:15:08 +02:00
Troy McConaghy
96feb18604 Changed from Alpha to Beta in setup.py
I changed the classifier `'Development Status :: 3 - Alpha'` to `'Development Status :: 4 - Beta'` as per the list of classifiers here: https://pypi.python.org/pypi?%3Aaction=list_classifiers

This is in preparation for the version 1.0 release but I think it's probably fine to have it in master now.
2017-04-24 15:56:36 +02:00
vrde
f23faaa65f
Add WebSocket server 2017-04-07 09:16:22 +02:00
vrde
5d39b42b7a
Add dependencies and first test 2017-04-07 08:42:22 +02:00
Lavina
e7b0b227f1 Rename bigchain.py command module to bigchaindb.py 2017-04-03 11:21:32 +02:00
diminator
2c53db04d3 Merge remote-tracking branch 'remotes/origin/master' into kyber-master-feat-cors 2017-03-31 11:19:35 +02:00
Sylvain Bellemare
c6de90fa79 Upgrade rapidjson to latest 0.0.11 2017-03-29 10:13:33 +02:00
diminator
a3b01147e5
added CORS for localhost 2017-03-20 21:35:47 +01:00
Sylvain Bellemare
43f779a18b Add logging infrastructure 2017-03-20 13:54:14 +01:00
Sylvain Bellemare
894784b9e4 Add pytest-mock - a thin wrapper around mock 2017-03-06 14:45:10 +01:00
Sylvain Bellemare
b20278430d Pin down rapidjson 2017-03-02 12:51:27 +01:00
Brett Sun
758b65ba0a Upgrade pysha3 to 1.0.2 to fix usage on Python 3.6 on macOS 2017-02-06 17:57:15 +01:00
Rodolphe Marques
2fe9c47b63 Feat/990/cleanup monitoring code (#1138)
* remove statsd dependencie

* remove monitoring related code

* removed statsd configuration

* fixed tests

* Removed monitoring docker compose file.

Remove statsd settings from test fixture.
Removed statsd related code from benchmarking tests

* removed monitoring related documentation

* remove unused import
2017-02-03 10:28:28 +01:00
Scott Sadler
bd048a3115 add flake8-quotes checker and cleanup double quotes 2017-01-23 17:30:37 +01:00
Troy McConaghy
e54854c082 In setup.py: enterprise --> enterprises 2017-01-18 15:41:29 +01:00
Troy McConaghy
8307c09b92 Updated docs URL in setup.py 2017-01-17 14:21:54 +01:00
Troy McConaghy
d5143f99d8 Longer long_description in setup.py 2017-01-17 14:21:08 +01:00
Sylvain Bellemare
9766aa90a1 Addresses #663 partially 2017-01-17 07:50:00 -05:00
Scott Sadler
6d3fa10e20 use pysha3 1.0.0 2017-01-05 10:19:20 +01:00
Scott Sadler
c31feaf83d update pysha3 to 1.0b1, sha3 NIST 2015 standard 2017-01-03 16:55:28 +01:00
libscott
01c8eb389e Merge pull request #943 from bigchaindb/fix/package_data-yaml
include all .yaml files in package_data
2016-12-13 14:34:59 +01:00
Scott Sadler
731341a43e include all .yaml files in package_data 2016-12-13 14:28:00 +01:00
Brett Sun
0c831e6171 Upgrade python-rapidjson to 0.0.8 (#922) 2016-12-13 14:21:33 +01:00
Sylvain Bellemare
7f143dbf57 Add watchdog lib to dev requirements 2016-12-13 13:31:00 +01:00
Sylvain Bellemare
b6293702ce Add todo note about not installing db drivers 2016-12-13 10:22:52 +01:00
Sylvain Bellemare
2486fb3d39 Add pymongo in install requirements 2016-12-13 10:22:52 +01:00
Sylvain Bellemare
aa436ced6e Fix #786 2016-12-08 11:45:41 +01:00
Ryan Henderson
1223695b36 add integration tests (#614) 2016-12-08 11:42:46 +01:00
Scott Sadler
ec38d06856 add test to make sure documentation can build 2016-11-30 16:41:24 +01:00
Scott Sadler
8f47ec2796 bump sphinx version to 1.4.8 and add sphinxcontrib-napoleon to setup.py:docs_require 2016-11-24 14:33:59 +01:00
libscott
8343bab89f Schema definition (#798)
Commit messages for posterity:

* wip transaction schema definition
* test for SchemaObject
* test SchemaObject definions meta property
* schema documentation updates
* test for basic validation
* commit before change to .json file definiton + rst generation
* move to straight .json schema, test for additionalProperties on each object
* add asset to transaction definiton
* remove outdated tx validation
* make all tests pass
* create own exception for validation error and start validating transactions
* more tx validation fixes
* move to yaml file for schema
* automatic schema documentation generator
* remove redundant section
* use YAML safe loading
* change current_owners to owners_before in tx schema
* re-run tests and make correct yaml schema
* fix some broken tests
* update Release_Process.md
* move tx validation into it's own method
* add jsonschema dependency
* perform schema validation after ID validation on Transaction
* Release_Process.md, markdown auto numbering
* remove old transaction.json
* resolve remaining TODOs in schema docuementation
* add `id` and `$schema` to transaction.yaml
* add transaction.yaml to setup.py so it gets copied
* address some concernes in PR for transaction.yaml
* address more PR concerns in transaction.yaml
* refactor validtion exceptions and move transaction schema validation into it's own function in bigchaindb.common.schema.__init__
* add note to generated schema.rst indicating when and how it's generated
* move tx schema validation back above ID validation in Transaction.validate_structure, test that structurally invalid transaction gets caught and 400 returned in TX POST handler
* remove timestamp from transaction schema index
* Add README.md to bigchaindb.common.schema for introduction to JSON Schema and reasons for YAML
* Use constant for schema definitions' base prefix
* Move import of ValidationError exception into only the tests that require it
* Move validate transaction test helper to tests/common/util.py
* move ordered transaction schema load to generate_schema_documentation.py where it's needed
* use double backticks to render terms in schema docs
* change more backticks and change transaction version description in transaction schema
* make details a mandatory property of condition
* Many more documentation fixes
* rename schema.rst to schema/transaction.rst
* Fix documentation for Metadata
* Add more links to documentation
* Various other documentation fixes
* Rename section titles in rendered documentation
* use  to manage file handle
* fix extrenuous comma in test_tx_serialization_with_incorrect_hash args
* 'a' * 64
* remove schema validation until we can analyze properly impact on downstream consumers
* fix flake8 error
* use `with` always
2016-11-22 11:17:06 +01:00
Sylvain Bellemare
c65d2779c9 Remove base58 2016-11-08 14:37:10 +01:00
MinchinWeb
658aa117c0 Remove sphinxcontrib-napoleon from doc requirements
As of Sphinx 1.3, this is included in the the core Sphinx package
2016-11-02 09:29:05 +01:00
MinchinWeb
d665353cc0 Unpin testing requirements 2016-11-02 09:29:05 +01:00
MinchinWeb
87e59fe820 Remove pytz from requirements
Closes #775
2016-11-02 09:29:05 +01:00
MinchinWeb
81ef54b3fc Remove bigchaindb-common from requirements 2016-11-02 09:29:05 +01:00
MinchinWeb
2ed543cfe3 Un-pin requirements for installation 2016-11-02 09:29:05 +01:00
Christian Gärtner
2eeb6b5648 streamlined travis process and dependencies 2016-11-02 09:26:05 +01:00
Sylvain Bellemare
dc31ceae4e Closes #768 2016-11-01 15:39:52 +01:00
Sylvain Bellemare
ea9dfaf1e5 Replace bigchaindb_common pkg by bigchaindb.common 2016-10-24 17:01:43 +02:00
Rodolphe Marques
b813021a44 replace minimum version with version matching 2016-10-17 13:37:58 +02:00
Rodolphe Marques
7275e6f44b Added support for cryptoconditions 0.5.0
Fixed tests.
2016-10-14 17:48:45 +02:00
Rodolphe Marques
19caad3d34 use right version number for common 2016-10-13 11:47:30 +02:00
Rodolphe Marques
1b002d6f3d Bumped version number for common 2016-10-12 16:15:46 +02:00
Sylvain Bellemare
50b0b3cef2 Rebase/feat/586/integrate tx model (#641)
* 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
2016-09-29 10:29:41 +02:00
diminator
5724fb5c43
PR review @vrde 2016-08-25 10:44:16 +02:00
diminator
8b55f24998
flask restful
trailing slashes
2016-08-23 17:43:08 +02:00
Sylvain Bellemare
ae8ee877cf Do not pin version of requests in setup.py 2016-08-22 14:08:32 +02:00
vrde
35bde364b8
Fix requirement name 2016-07-25 18:51:00 +02:00
vrde
31717b5e89
Add missing dependency 2016-07-25 13:30:31 +02:00
Sylvain Bellemare
c9f78dca07 Fixes #466 2016-07-19 12:09:22 +02:00
troymc
7c9efbf321 Make Python docs package reqs consistent between setup.py & requirements.txt 2016-07-14 11:44:28 +02:00
troymc
e75798be38 Use the latest rethinkdb 2.3.x driver for Python 2016-06-28 11:29:20 +02:00
tim
2245a3f78a Bump cc version 2016-06-13 16:11:21 +02:00
tim
13e98f4316 Update cc API usage 2016-06-10 14:07:53 +02:00
diminator
aa53f20661 Merge remote-tracking branch 'remotes/origin/master' into feat/inverted-threshold-condition 2016-06-10 14:01:46 +02:00
Sylvain Bellemare
dbac4965a0 Remove duplicate pytest 2016-06-06 17:55:52 +02:00
diminator
d082a0fb6a
cc version bump 2016-06-01 13:44:48 +02:00
diminator
9875cab3b3
cc-based escrow 2016-05-24 17:55:43 +02:00
vrde
dbbdb2f017
Fix help message 2016-05-19 11:30:58 +02:00
vrde
491dc29b41
Use more generic and compatible Exception 2016-05-19 11:08:26 +02:00
vrde
2c766d7bf2
Display useful message when setuptools is outdated 2016-05-12 15:08:30 +02:00
Rodolphe Marques
69d5859add Initial implementation of speed tests 2016-05-11 08:56:47 +02:00
diminator
35f16b5d65
Merge remote-tracking branch 'remotes/origin/master' into feat/128/multiple-input-output 2016-05-02 12:06:54 +02:00
diminator
2eff1f1579
- cryptoconditions 0.2.2
- specified exceptions
2016-04-26 17:42:45 +02:00
vrde
56af6e5b12
Move load from bigchain-benchmark to bigchain 2016-04-26 03:43:48 +02:00
vrde
f9c609ff0d
Add env variables to default config 2016-04-26 03:24:56 +02:00
diminator
a6dd9dc1fd
update to cryptoconditions 0.1.6: removes the need of the cryptography dependency 2016-04-22 12:23:51 +02:00
diminator
5cea537143
Merge remote-tracking branch 'remotes/origin/master' into feat/128/multiple-input-output
Conflicts:
	bigchaindb/core.py
2016-04-21 19:07:05 +02:00
diminator
51addb9cc9
Merge remote-tracking branch 'remotes/origin/master' into feat/128/multiple-input-output
Conflicts:
	tests/test_util.py
2016-04-21 15:19:23 +02:00
Rodolphe Marques
7498fafacc removed unused imports 2016-04-21 13:43:50 +02:00
Rodolphe Marques
dcbaedf7ea Unified place for the version number
added --version to bigchain-cli
2016-04-21 13:38:02 +02:00
Alberto Granzotto
ac47f63b93 Merge pull request #200 from bigchaindb/0.1.5
bugfix and bump version to 0.1.5
2016-04-21 11:00:45 +02:00
diminator
9f62cddbaf
bugfix and bump version to 0.1.5 2016-04-20 15:31:52 +02:00
diminator
2fdbb5bef8
updated multiple owner docs and cryptoconditions example 2016-04-18 17:18:10 +02:00
diminator
85353f7002
updated cryptoconditions
replaced get_subcondition_from_vk
2016-04-15 16:32:27 +02:00
diminator
66e3c9e8a9
sign/validate fulfillment (single owner)
Merge remote-tracking branch 'remotes/origin/develop' into feat/127/crypto-conditions-ilp-bigchain-integration

Conflicts:
	tests/conftest.py
2016-04-07 18:21:13 +02:00
Dimitri De Jonghe
56a1bb5e1d Merge branch 'develop' into feat/137/crypto-ed25519-compatible-signing-scheme 2016-04-07 16:11:20 +02:00
diminator
b76bd72ea0
tx with conditions 2016-04-07 15:41:06 +02:00
vrde
b11cbce5cd
Merge branch 'develop' into feat/116/more-solid-webserver 2016-04-07 11:00:47 +02:00
vrde
b988b3f6f7
Pin major version for gunicorn 2016-04-07 10:58:29 +02:00
diminator
ec08bca3d0
fulfillment preparations 2016-04-06 16:21:35 +02:00
Roderik van der Veer
dca2750407 Update the cryptography dependency to 1.2.3
This fixes the `conflicting types for 'BIO_new_mem_buf'` error when running with a recent openssl version, e.g. under Alpine Linux. See https://github.com/pyca/cryptography/issues/2750
2016-04-03 10:18:44 +02:00
diminator
ce1302dd90 imports from crypto 2016-03-31 15:10:43 +02:00
vrde
e10a5aed95 Add gunicorn dep 2016-03-30 17:54:17 +02:00
diminator
4138842eed import keys from cryptoconditions
set ed25519 as default
2016-03-23 19:14:59 +01:00
vrde
d0af0b0a55 Merge branch 'develop' into revert-120-develop 2016-03-21 10:01:01 +01:00
vrde
5d33848319 Exclude tests 2016-03-17 17:17:27 +01:00
vrde
6e60a38a99 Use find_packages 2016-03-17 17:03:08 +01:00
Alberto Granzotto
6ea63903cb Revert "Add missing package bigchaindb.web to setup.py" 2016-03-17 16:59:56 +01:00
Matt Smith
5c4529f120 Merge remote-tracking branch 'upstream/develop' into modular-consensus-rules
Conflicts:
	setup.py
2016-03-08 18:43:48 -08:00
Matt Smith
a5243e43f6 This large (sorry) commit
1. switches from a composable plugin model to a single-plugin model
2. switches class methods to static methods in the BaseConsensusRules class
3. adds create_transaction, sign_transaction, and verify_transaction to
the plugin API

TODO: If we adopt this model, all references in e.g. client.py to util
methods like `sign_tx` need to be routed through the plugin methods, and
possibly need to be added to the plugin interface.
2016-03-08 18:33:31 -08:00
Matt Smith
01d706ac56 Moved consensus package files into single consensus.py module 2016-03-08 18:24:21 -08:00
Cristian S
9e1ff01057 Add missing package form installer
Without this running blockchaindb yields:
Traceback (most recent call last):
  File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.4/trace.py", line 858, in <module>
    main()
  File "/usr/lib/python3.4/trace.py", line 804, in main
    t.runctx(code, globs, globs)
  File "/usr/lib/python3.4/trace.py", line 510, in runctx
    exec(cmd, globals, locals)
  File "/usr/local/bin/bigchaindb", line 9, in <module>
    load_entry_point('BigchainDB==0.1.4', 'console_scripts', 'bigchaindb')()
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 549, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 2542, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 2202, in load
    return self.resolve()
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 2208, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.4/dist-packages/BigchainDB-0.1.4-py3.4.egg/bigchaindb/commands/bigchain.py", line 14, in <module>
    from bigchaindb.processes import Processes
  File "/usr/local/lib/python3.4/dist-packages/BigchainDB-0.1.4-py3.4.egg/bigchaindb/processes.py", line 9, in <module>
    from bigchaindb.web import server
ImportError: No module named 'bigchaindb.web'
2016-03-08 14:06:18 +02:00
Matt Smith
9644df07f7 Merge remote-tracking branch 'upstream/develop' into
modular-consensus-rules
Resolves conflicts from module reorg in PR #102

Conflicts:
	bigchaindb/__init__.py
	bigchaindb/core.py
2016-03-04 18:07:23 -08:00
vrde
90ccadde29 Merge remote-tracking branch 'origin/develop' into feat/17/provide-a-restful-api 2016-03-03 02:58:53 +01:00
vrde
dd694f18fe Use the default ReadTheDocs theme 2016-03-02 01:12:42 +01:00