Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit 04608c5

Browse files
committed
Merge branch 'master' into develop
2 parents 34d8ba2 + d69b5c9 commit 04608c5

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ deploy:
1111
python: '3.6'
1212
tags: true
1313
provider: pypi
14-
distribution: 'bdist_wheel sdist'
14+
distributions: 'bdist_wheel sdist'
1515
skip_upload_docs: true
1616
user: phx
1717
password:

README.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
=====
55
PyOTA
66
=====
7-
.. warning::
8-
⚠️ This is pre-release software; it may have performance or stability issues.
9-
Please do not use this software on mainnet until v2.0.0 stable is released. ⚠️
10-
117
This is the official Python library for the IOTA Core.
128

139
It implements both the `official API`_, as well as newly-proposed functionality
@@ -32,13 +28,9 @@ PyOTA is compatible with Python 3.6, 3.5 and 2.7.
3228
============
3329
Installation
3430
============
35-
.. warning::
36-
⚠️ This is pre-release software; it may have performance or stability issues.
37-
Please do not use this software on mainnet until v2.0.0 stable is released. ⚠️
38-
3931
To install the latest version::
4032

41-
pip install --pre pyota
33+
pip install pyota
4234

4335
Optional C Extension
4436
====================
@@ -47,7 +39,7 @@ cryptography features significantly (speedups of **60x** are common!).
4739

4840
To install this extension, use the following command::
4941

50-
pip install --pre pyota[ccurl]
42+
pip install pyota[ccurl]
5143

5244

5345
Installing from Source
@@ -75,7 +67,7 @@ For the full documentation of this library, please refer to the
7567
`official API`_
7668

7769

78-
.. _Create virtualenv: https://virtualenvwrapper.readthedocs.io/
70+
.. _Create virtualenv: https://realpython.com/blog/python/python-virtual-environments-a-primer/
7971
.. _PyOTA Bug Tracker: https://github.com/iotaledger/iota.lib.py/issues
8072
.. _Slack: https://slack.iota.org/
8173
.. _dedicated forum: https://forum.iota.org/

iota/commands/extended/replay_bundle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _execute(self, request):
4747
minWeightMagnitude = min_weight_magnitude,
4848

4949

50-
trytes = bundle.as_tryte_strings(head_to_tail=True),
50+
trytes = bundle.as_tryte_strings(),
5151
)
5252

5353

iota/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from abc import ABCMeta, abstractmethod as abstract_method
66
from json.encoder import JSONEncoder as BaseJsonEncoder
7-
from typing import Mapping, Iterable
7+
from typing import Iterable, Mapping, Text
88

99
from six import with_metaclass
1010

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
name = 'PyOTA',
2222
description = 'IOTA API library for Python',
2323
url = 'https://github.com/iotaledger/iota.lib.py',
24-
version = '2.0.0b2',
24+
version = '2.0.0',
2525

2626
long_description = long_description,
2727

@@ -66,7 +66,7 @@
6666
license = 'MIT',
6767

6868
classifiers = [
69-
'Development Status :: 4 - Beta',
69+
'Development Status :: 5 - Production/Stable',
7070
'Intended Audience :: Developers',
7171
'License :: OSI Approved :: MIT License',
7272
'Programming Language :: Python :: 2',

test/commands/extended/replay_bundle_test.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,10 +593,19 @@ def test_happy_path(self):
593593
})
594594

595595
send_trytes_response = {
596-
'trytes': bundle.as_tryte_strings(head_to_tail=True),
596+
'trytes': bundle.as_tryte_strings(),
597597
}
598598

599-
mock_send_trytes = mock.Mock(return_value=send_trytes_response)
599+
def mock_send_trytes(_,request):
600+
"""
601+
Ensures that the correct trytes are sent to the ``sendTrytes`` command
602+
to replay the bundle.
603+
604+
References:
605+
- https://github.com/iotaledger/iota.lib.py/issues/74
606+
"""
607+
self.assertEqual(request['trytes'], send_trytes_response['trytes'])
608+
return send_trytes_response
600609

601610
with mock.patch(
602611
'iota.commands.extended.get_bundles.GetBundlesCommand._execute',

0 commit comments

Comments
 (0)