File tree Expand file tree Collapse file tree 6 files changed +35
-11
lines changed Expand file tree Collapse file tree 6 files changed +35
-11
lines changed Original file line number Diff line number Diff line change
1
+ docs /build /
2
+ src /__pycache__ /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ Version 0.9.6
5
+ -------------
6
+
7
+ *Release date: 2019/08/29 *
8
+
9
+ * new: exit gracefully if py3bencode module could not be imported and show
10
+ instructions on how to fix this
11
+ * docs: Updated docs after migration from Mercurial/Bitbucket.org to Git/Github.com
12
+
4
13
Version 0.9.5
5
14
-------------
6
15
Original file line number Diff line number Diff line change 48
48
# built documents.
49
49
#
50
50
# The short X.Y version.
51
- version = '1.0 '
51
+ version = '0.9 '
52
52
# The full version, including alpha/beta/rc tags.
53
- release = '1.0.0-dev '
53
+ release = '0.9.6 '
54
54
55
55
# The language for content autogenerated by Sphinx. Refer to documentation
56
56
# for a list of supported languages.
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ py3createtorrent is intended to fill this gap.
29
29
Requirements
30
30
------------
31
31
32
- py3createtorrent requires at least Python 3.1 and the `py3bencode <https://bitbucket.org /rsnitsch/py3bencode >`_ module.
32
+ py3createtorrent requires at least Python 3.1 and the `py3bencode <https://github.com /rsnitsch/py3bencode >`_ module.
33
33
34
34
Installation
35
35
------------
36
36
37
37
Download the desired version from here:
38
- https://bitbucket.org /rsnitsch/py3createtorrent/downloads
38
+ https://github.com /rsnitsch/py3createtorrent/releases
39
39
40
40
The required py3bencode module is shipped alongside py3createtorrent. As long
41
41
as you extract py3bencode into the same directory as the py3createtorrent script,
@@ -51,15 +51,15 @@ Python installation.
51
51
You can use `pip <http://www.pip-installer.org/ >`_ to install the py3bencode
52
52
module in your Python installation (in the site-packages, to be precise)::
53
53
54
- pip install hg +https://bitbucket.org /rsnitsch/py3bencode
54
+ pip install git +https://github.com /rsnitsch/py3bencode
55
55
56
56
Make sure to use the pip executable that belongs to the Python interpreter
57
57
with which you will execute py3createtorrent.
58
58
59
59
If you don't have pip around (although I strongly recommend using it) you can
60
60
also try to install py3bencode manually::
61
61
62
- $ hg clone https://bitbucket.org /rsnitsch/py3bencode
62
+ $ git clone https://github.com /rsnitsch/py3bencode
63
63
$ cd py3bencode
64
64
$ python3 setup.py install
65
65
Original file line number Diff line number Diff line change 15
15
import sys
16
16
import time
17
17
18
- from py3bencode import bencode
18
+ try :
19
+ from py3bencode import bencode
20
+ except ImportError as exc :
21
+ print ("ERROR:" )
22
+ print ("""py3bencode module could not be imported.
23
+
24
+ Please install the py3bencode module using
25
+
26
+ pip install git+https://github.com/rsnitsch/py3bencode
27
+
28
+ or refer to the documentation on how to install it:
29
+ https://py3createtorrent.readthedocs.io/en/latest/""" )
30
+ print ()
31
+ print ()
32
+ print ("-" * 40 )
33
+ print ()
34
+ raise
19
35
20
36
__all__ = ['calculate_piece_length' ,
21
37
'get_files_in_directory' ,
39
55
# do not touch anything below this line unless you know what you're doing!
40
56
41
57
42
- VERSION = '1.0.0-dev '
58
+ VERSION = '0.9.6 '
43
59
44
60
# Note:
45
61
# Kilobyte = kB = 1000 Bytes
You can’t perform that action at this time.
0 commit comments