Skip to content

Commit

Permalink
Merge branch 'release/v1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
rsnitsch committed Jan 5, 2022
2 parents 338198c + 16bb70b commit e6eb051
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Some of the features:
* you can add a **comment** to the torrent file
* you can create **private torrents** (disabled DHT, ...)
* you can create torrents with **multiple trackers**
* you can create **trackerless torrents** (not yet released, but already implemented in develop branch)
* you can create **trackerless torrents**
* you can add **webseeds** to torrents
* you can **exclude specific files/folders**
* you can exclude files/folders based on **regular expressions**
Expand Down
7 changes: 7 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

Version 1.0.1
-------------

*Release date: 2022/01/05*

* fixed: Faulty torrent name and 'name' field when using relative path '.', see `#11 <https://github.com/rsnitsch/py3createtorrent/issues/11>`_

Version 1.0.0
-------------

Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

# General information about the project.
project = u'py3createtorrent'
copyright = u'2013-2021, Robert Nitsch'
copyright = u'2013-2022, Robert Nitsch'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand All @@ -50,7 +50,7 @@
# The short X.Y version.
version = '1.0'
# The full version, including alpha/beta/rc tags.
release = '1.0.0'
release = '1.0.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def get_version(rel_path):
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3 :: Only',
],

Expand Down
6 changes: 3 additions & 3 deletions src/py3createtorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Create torrents via command line!
Copyright (C) 2010-2021 Robert Nitsch
Copyright (C) 2010-2022 Robert Nitsch
Licensed according to GPL v3.
"""

Expand Down Expand Up @@ -42,7 +42,7 @@

# Do not touch anything below this line unless you know what you're doing!

__version__ = '1.0.0'
__version__ = '1.0.1'

# Note:
# Kilobyte = kB = 1000 Bytes
Expand Down Expand Up @@ -262,7 +262,7 @@ def create_multi_file_info(directory: str, files: List[str], piece_length: int,
info_pieces += sha1(data)

# Build the final dictionary.
info = {'pieces': bytes(info_pieces), 'name': os.path.basename(directory.strip("/\\")), 'files': info_files}
info = {'pieces': bytes(info_pieces), 'name': os.path.basename(os.path.abspath(directory)), 'files': info_files}

return info

Expand Down

0 comments on commit e6eb051

Please sign in to comment.