Skip to content

Commit

Permalink
Merge branch 'release/v0.9.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
rsnitsch committed Aug 29, 2019
2 parents cb518cf + 5bdef85 commit d9ceeca
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docs/build/
src/__pycache__/
3 changes: 0 additions & 3 deletions .hgignore

This file was deleted.

9 changes: 9 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
=========

Version 0.9.6
-------------

*Release date: 2019/08/29*

* new: exit gracefully if py3bencode module could not be imported and show
instructions on how to fix this
* docs: Updated docs after migration from Mercurial/Bitbucket.org to Git/Github.com

Version 0.9.5
-------------

Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
# built documents.
#
# The short X.Y version.
version = '1.0'
version = '0.9'
# The full version, including alpha/beta/rc tags.
release = '1.0.0-dev'
release = '0.9.6'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
8 changes: 4 additions & 4 deletions docs/source/user.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ py3createtorrent is intended to fill this gap.
Requirements
------------

py3createtorrent requires at least Python 3.1 and the `py3bencode <https://bitbucket.org/rsnitsch/py3bencode>`_ module.
py3createtorrent requires at least Python 3.1 and the `py3bencode <https://github.com/rsnitsch/py3bencode>`_ module.

Installation
------------

Download the desired version from here:
https://bitbucket.org/rsnitsch/py3createtorrent/downloads
https://github.com/rsnitsch/py3createtorrent/releases

The required py3bencode module is shipped alongside py3createtorrent. As long
as you extract py3bencode into the same directory as the py3createtorrent script,
Expand All @@ -51,15 +51,15 @@ Python installation.
You can use `pip <http://www.pip-installer.org/>`_ to install the py3bencode
module in your Python installation (in the site-packages, to be precise)::

pip install hg+https://bitbucket.org/rsnitsch/py3bencode
pip install git+https://github.com/rsnitsch/py3bencode

Make sure to use the pip executable that belongs to the Python interpreter
with which you will execute py3createtorrent.

If you don't have pip around (although I strongly recommend using it) you can
also try to install py3bencode manually::

$ hg clone https://bitbucket.org/rsnitsch/py3bencode
$ git clone https://github.com/rsnitsch/py3bencode
$ cd py3bencode
$ python3 setup.py install

Expand Down
20 changes: 18 additions & 2 deletions src/py3createtorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,23 @@
import sys
import time

from py3bencode import bencode
try:
from py3bencode import bencode
except ImportError as exc:
print("ERROR:")
print("""py3bencode module could not be imported.
Please install the py3bencode module using
pip install git+https://github.com/rsnitsch/py3bencode
or refer to the documentation on how to install it:
https://py3createtorrent.readthedocs.io/en/latest/""")
print()
print()
print("-"*40)
print()
raise

__all__ = ['calculate_piece_length',
'get_files_in_directory',
Expand All @@ -39,7 +55,7 @@
# do not touch anything below this line unless you know what you're doing!


VERSION = '1.0.0-dev'
VERSION = '0.9.6'

# Note:
# Kilobyte = kB = 1000 Bytes
Expand Down

0 comments on commit d9ceeca

Please sign in to comment.