Skip to content

Commit

Permalink
Version 1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kz26 committed Sep 1, 2016
1 parent 9afcfdc commit 3c0b588
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 9 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Stable releases are available on PyPI and can be installed using ``pip``.

pip install dottorrent


To install from the latest development sources, clone the git repo and run
``pip install .``

License
-------

Expand Down
7 changes: 4 additions & 3 deletions bin/dottorrent_cli
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ if __name__ == '__main__':
'--verbose', '-v', action='count', default=0, help='verbose mode')
parser.add_argument(
'path', help='path to file/directory to create torrent from')
parser.add_argument('output_path', help='path to save .torrent file to')
parser.add_argument(
'output_file', help='Output filename for created .torrent file')
args = parser.parse_args()

if args.date:
Expand Down Expand Up @@ -111,7 +112,7 @@ if __name__ == '__main__':
t.generate(callback=progress_callback)
pbar.close()

with open(args.output_path, 'wb') as f:
with open(args.output_file, 'wb') as f:
t.save(f)
print("Info hash: " + t.info_hash)
print("Torrent file saved to {}".format(args.output_path))
print("Torrent file saved to {}".format(args.output_file))
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.4.3
-----
* dottorrent_cli: Change output_path to output_file for clarity

1.4.2
-----
* Rename dottorrent_cli.py to dottorrent_cli
Expand Down
14 changes: 9 additions & 5 deletions docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ available in your system path.
::

usage: dottorrent_cli [-h] [--tracker TRACKER] [--web_seed WEB_SEED]
[--piece_size PIECE_SIZE] [--private]
[--comment COMMENT] [--date DATE] [--md5] [--verbose]
path output_path
[--piece_size PIECE_SIZE] [--private]
[--comment COMMENT] [--date DATE] [--md5] [--verbose]
path output_file

Create a .torrent file

positional arguments:
path path to file/directory to create torrent from
output_path path to save .torrent file to
output_file Output filename for created .torrent file

optional arguments:
-h, --help show this help message and exit
Expand All @@ -35,5 +35,9 @@ available in your system path.
--md5 Add per-file MD5 hashes
--verbose, -v verbose mode

dottorrent/1.4.2 (https://github.com/kz26/dottorrent)
dottorrent/1.4.3 (https://github.com/kz26/dottorrent)


To add multiple trackers and/or web seeds, repeat the ``-t`` and ``-w`` as many times as necessary,
e.g. ``-t tracker1 -t tracker2``.

6 changes: 6 additions & 0 deletions docs/dottorrent-gui.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dottorrent-gui
==============

An official GUI for dottorrent is available. Please see
`https://github.com/kz26/dottorrent-gui <https://github.com/kz26/dottorrent-gui>`_
for more information.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Contents:
install
library
cli
dottorrent-gui
changelog


Expand Down
2 changes: 2 additions & 0 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ Stable releases are available on PyPI and can be installed using ``pip``.

pip install dottorrent

To install from the latest development sources, clone the git repo and run
``pip install .``
2 changes: 1 addition & 1 deletion dottorrent/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.4.2'
__version__ = '1.4.3'

0 comments on commit 3c0b588

Please sign in to comment.