Skip to content

Commit c86140a

Browse files
asfinecdsa
authored andcommitted
py3 in setup.py and tox config
1 parent 2110138 commit c86140a

3 files changed

Lines changed: 6 additions & 18 deletions

File tree

electrum

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- mode: python -*-
33
#
44
# Electrum - lightweight Bitcoin client
@@ -23,11 +23,6 @@
2323
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2424
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2525
# SOFTWARE.
26-
from __future__ import absolute_import
27-
from __future__ import division
28-
from __future__ import print_function
29-
from __future__ import unicode_literals
30-
3126
import os
3227
import sys
3328
import six
@@ -47,13 +42,6 @@ if jnius:
4742
jnius.detach()
4843
threading.Thread.run = thread_check_run
4944

50-
# monkeypatch unicode constructor for py3
51-
# if six.PY3:
52-
# import builtins
53-
# builtins.unicode = str
54-
# builtins.QString = str
55-
# builtins.long = int
56-
5745
script_dir = os.path.dirname(os.path.realpath(__file__))
5846
is_bundle = getattr(sys, 'frozen', False)
5947
is_local = not is_bundle and os.path.exists(os.path.join(script_dir, "setup-release.py"))

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22

33
# python setup.py sdist --format=zip,gztar
44

@@ -11,8 +11,8 @@
1111

1212
version = imp.load_source('version', 'lib/version.py')
1313

14-
if sys.version_info[:3] < (2, 7, 0):
15-
sys.exit("Error: Electrum requires Python version >= 2.7.0...")
14+
if sys.version_info[:3] < (3, 4, 0):
15+
sys.exit("Error: Electrum requires Python version >= 3.4.0...")
1616

1717
data_files = []
1818

@@ -36,7 +36,7 @@
3636
name="Electrum",
3737
version=version.ELECTRUM_VERSION,
3838
install_requires=[
39-
'pyaes',
39+
'pyaes>=0.1a1',
4040
'ecdsa>=0.9',
4141
'pbkdf2',
4242
'requests',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27
2+
envlist = py34
33

44
[testenv]
55
deps=

0 commit comments

Comments
 (0)