Use RawConfigParser instead of ConfigParser for configuration
Add version -v and --version flags
Remove support for watch and download commands
Add basic documentation on docs/source/index.rst from README.md (used pandoc)
Add requirements-dev.txt to build packages and docs
Setup ReadTheDocs on docs/ and integrate with mal package to fetch the new version from mal.__version__ variable.
Side effects
After added the RawConfigParser we have a little problem here. The old configuration of the users use double interpolation of %% to date_format. I change the new template for when create new ones, create it right (using only one %). But old config files this will not touch. The result is:
(env) ❯ mal config
File on: /home/lerax/.config/mal/myanimelist.ini
[config]
date_format = %%d-%%m-%%Y
[login]
username = lerax
password = SUPER-FUCKING-FUCKED-SECRET-PASSWORD
(env) ❯ mal filter 'tex.*' --extend
Matched 1 items:
1: Texhnolyze
Completed at 22/22 episodes with score 7
Started: %d-%m-%Y Finished: %d-%m-%Y
Tags: None
So old users of this program should fix your own config file manually with date_format = %d-%m-%Y when start using the version 0.3.2.
Summary
mal.__version__
variable.Side effects
After added the RawConfigParser we have a little problem here. The old configuration of the users use double interpolation of
%%
to date_format. I change the new template for when create new ones, create it right (using only one %). But old config files this will not touch. The result is:So old users of this program should fix your own config file manually with
date_format = %d-%m-%Y
when start using the version 0.3.2.This PR should close #4, close #3 and fix #61