Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
v1.6.2b see the changelog file
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Aug 15, 2018
1 parent 77afae1 commit c984002
Show file tree
Hide file tree
Showing 50 changed files with 1,882 additions and 1,291 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -2,6 +2,21 @@
Simple Manga Downloader Changelog
=================================

Version 1.6.2
-------------

Released on August 15, 2018

* **Fix:** Fixed bug in ``smd.__init__.py`` file: :meth:`show_copyright` isn't in package :mod:`smd.utils` anymore.
* **New:** Code re-factorized with annotations, for static typing checking with ``mypy``.
* **New:** :func:`smd.downloader.Downloader.get` separated in two new functions :func:`~smd.downloader.Downloader.get_bytes` and :func:`~smd.downloader.Downloader.get_str`.
* **New:** Classes :class:`~smd.utils.Chapter` and :class:`~smd.utils.Manga` now use attributes instead of ``__setitem__`` and ``__getitem__`` for accessing meta data.
* **New:** Created :class:`smd.utils.MetaFolder` class base for :class:`~smd.utils.Chapter` and :class:`~smd.utils.Manga`.
* **New:** Removed variable ``smd.utlis.USER_AGENT`` and created function :func:`smd.utils.random_ua` instead.
* **New:** Chapters folders are now named using numbers to avoid invalid folder names.
* **New:** :func:`~smd.downloader.Downloader.search` now returns a list of :class:`~smd.utils.Manga` and :func:`~smd.downloader.Downloader.get_chapters` returns a list of :class:`~smd.utils.Chapter`
* **Fix:** Fixed localization setup to fallback to the default if the language set in the configuration file is not supported.


Version 1.6.1
-------------
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial.rst
Expand Up @@ -111,7 +111,7 @@ To download from chapter 10th to 20th (ignoring chapter 15th) of 'Naruto':
$ smd --chapters '10:20,!15' Naruto
.. warning::
Chapters are enumerated based on they order in the chapter list, so this number may not match the chapter title (e.g. if there are a chapter named "15.5" actually it is the chapter 16 in the list and you should use "``smd --chapter 16``" to download it)
Chapters are enumerated based on they order in the chapter list, so this number may not match the chapter title (e.g. if there are a chapter titled "Episode 15.5" and actually it is the chapter 16 in the list, you should use "``smd --chapter 16``" to download it)

To download from first chapter to 10th and the last chapter of 'Death Note':

Expand Down
16 changes: 8 additions & 8 deletions setup.py
Expand Up @@ -5,13 +5,17 @@

import re

from setuptools import find_packages, setup
from setuptools import find_packages, setup # type: ignore

with open('README.rst', 'rt', encoding='utf8') as fh:
README = fh.read()

with open('smd/__init__.py', 'rt', encoding='utf8') as fh:
VERSION = re.search(r'__version__ = \'(.*?)\'', fh.read(), re.M).group(1)
match = re.search(r'__version__ = \'(.*?)\'', fh.read(), re.M)
if match:
VERSION = match.group(1)
else:
raise Exception('Version not found.')

setup(
name='smd',
Expand All @@ -24,11 +28,7 @@
long_description_content_type='text/x-rst',
url='https://adbenitez.github.io/smd',
classifiers=(
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'Environment :: Console',
'Environment :: Web Environment',
Expand All @@ -51,7 +51,7 @@
},
packages=find_packages(exclude=('tests*', 'docs')),
install_requires=['beautifulsoup4'],
python_requires='>=3',
python_requires='>=3.5',
entry_points={
'console_scripts': [
'smd=smd:main',
Expand Down

0 comments on commit c984002

Please sign in to comment.