Remove pbr from runtime
This commit is contained in:
parent
6c8814fe40
commit
1d910a5bbd
6 changed files with 23 additions and 21 deletions
|
@ -3,7 +3,7 @@
|
||||||
[![Build Status](https://travis-ci.org/webcomics/dosage.svg?branch=master)](https://travis-ci.org/webcomics/dosage)
|
[![Build Status](https://travis-ci.org/webcomics/dosage.svg?branch=master)](https://travis-ci.org/webcomics/dosage)
|
||||||
[![Code Climate](https://codeclimate.com/github/webcomics/dosage/badges/gpa.svg)](https://codeclimate.com/github/webcomics/dosage)
|
[![Code Climate](https://codeclimate.com/github/webcomics/dosage/badges/gpa.svg)](https://codeclimate.com/github/webcomics/dosage)
|
||||||
[![codecov](https://codecov.io/gh/webcomics/dosage/branch/master/graph/badge.svg)](https://codecov.io/gh/webcomics/dosage)
|
[![codecov](https://codecov.io/gh/webcomics/dosage/branch/master/graph/badge.svg)](https://codecov.io/gh/webcomics/dosage)
|
||||||
[![Maintenance](https://img.shields.io/maintenance/yes/2018.svg)]()
|
[![Maintenance](https://img.shields.io/maintenance/yes/2019.svg)]()
|
||||||
|
|
||||||
Dosage is designed to keep a local copy of specific webcomics and other
|
Dosage is designed to keep a local copy of specific webcomics and other
|
||||||
picture-based content such as Picture of the Day sites. With the dosage
|
picture-based content such as Picture of the Day sites. With the dosage
|
||||||
|
@ -67,11 +67,10 @@ For advanced options and features execute `dosage --help`.
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
[Python](http://www.python.org/): for Python 2.x at least 2.7.0, for Python 3.x
|
[Python](http://www.python.org/): for Python 2.x at least 2.7.0, for Python 3.x
|
||||||
at least Python 3.3. Dosage requires the following Python modules:
|
at least Python 3.4. Dosage requires the following Python modules:
|
||||||
|
|
||||||
- colorama
|
- colorama
|
||||||
- lxml
|
- lxml
|
||||||
- pbr
|
|
||||||
- requests
|
- requests
|
||||||
- six
|
- six
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
||||||
# Copyright (C) 2012-2014 Bastian Kleineidam
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
||||||
# Copyright (C) 2015-2017 Tobias Gruetzmacher
|
# Copyright (C) 2015-2019 Tobias Gruetzmacher
|
||||||
"""
|
"""
|
||||||
Automated comic downloader. Dosage traverses comic websites in
|
Automated comic downloader. Dosage traverses comic websites in
|
||||||
order to download each strip of the comic. The intended use is for
|
order to download each strip of the comic. The intended use is for
|
||||||
|
@ -15,10 +15,12 @@ Comic modules for each comic are located in L{dosagelib.plugins}.
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
|
|
||||||
from pbr.version import VersionInfo
|
|
||||||
|
|
||||||
AppName = u'dosage'
|
AppName = u'dosage'
|
||||||
|
|
||||||
version_info = VersionInfo(AppName)
|
from pkg_resources import get_distribution, DistributionNotFound
|
||||||
__version__ = version_info.version_string() # PEP 396
|
try:
|
||||||
AppVersion = version_info.release_string()
|
version_info = get_distribution(AppName)
|
||||||
|
__version__ = version_info.version # PEP 396
|
||||||
|
except DistributionNotFound:
|
||||||
|
# package is not installed
|
||||||
|
pass
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
||||||
# Copyright (C) 2012-2014 Bastian Kleineidam
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
||||||
# Copyright (C) 2015-2018 Tobias Gruetzmacher
|
# Copyright (C) 2015-2019 Tobias Gruetzmacher
|
||||||
|
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
|
|
||||||
|
@ -9,7 +9,8 @@ import os
|
||||||
import argparse
|
import argparse
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from . import events, configuration, singleton, director, scraper, __version__
|
from . import events, configuration, singleton, director, scraper
|
||||||
|
from . import AppName, __version__
|
||||||
from .output import out
|
from .output import out
|
||||||
from .util import internal_error, strlimit
|
from .util import internal_error, strlimit
|
||||||
|
|
||||||
|
@ -126,7 +127,7 @@ def display_version(verbose):
|
||||||
# display update link
|
# display update link
|
||||||
text = ('A new version %(version)s of %(app)s is '
|
text = ('A new version %(version)s of %(app)s is '
|
||||||
'available at %(url)s.')
|
'available at %(url)s.')
|
||||||
attrs = dict(version=version, app=configuration.AppName,
|
attrs = dict(version=version, app=AppName,
|
||||||
url=url, currentversion=__version__)
|
url=url, currentversion=__version__)
|
||||||
print(text % attrs)
|
print(text % attrs)
|
||||||
else:
|
else:
|
||||||
|
@ -134,7 +135,7 @@ def display_version(verbose):
|
||||||
value = 'invalid update file syntax'
|
value = 'invalid update file syntax'
|
||||||
text = ('An error occured while checking for an '
|
text = ('An error occured while checking for an '
|
||||||
'update of %(app)s: %(error)s.')
|
'update of %(app)s: %(error)s.')
|
||||||
attrs = dict(error=value, app=configuration.AppName)
|
attrs = dict(error=value, app=AppName)
|
||||||
print(text % attrs)
|
print(text % attrs)
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (C) 2012-2014 Bastian Kleineidam
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
||||||
# Copyright (C) 2015-2017 Tobias Gruetzmacher
|
# Copyright (C) 2015-2019 Tobias Gruetzmacher
|
||||||
"""
|
"""
|
||||||
Define basic configuration data like version or application name.
|
Define basic configuration data like version or application name.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
|
|
||||||
from . import AppName, AppVersion
|
from . import AppName, __version__
|
||||||
|
|
||||||
App = AppName + u' ' + AppVersion
|
App = AppName + u' ' + __version__
|
||||||
|
|
||||||
Maintainer = u'Tobias Gruetzmacher'
|
Maintainer = u'Tobias Gruetzmacher'
|
||||||
MaintainerEmail = u'tobias-dosage@23.gs'
|
MaintainerEmail = u'tobias-dosage@23.gs'
|
||||||
Url = u'http://dosage.rocks/'
|
Url = u'http://dosage.rocks/'
|
||||||
SupportUrl = u'https://github.com/webcomics/dosage/issues'
|
SupportUrl = u'https://github.com/webcomics/dosage/issues'
|
||||||
UserAgent = u"Mozilla/5.0 (compatible; %s/%s; +%s)" % (AppName, AppVersion,
|
UserAgent = u"Mozilla/5.0 (compatible; %s/%s; +%s)" % (AppName, __version__,
|
||||||
Url)
|
Url)
|
||||||
Copyright = u"""Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
Copyright = u"""Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
||||||
Copyright (C) 2012-2014 Bastian Kleineidam
|
Copyright (C) 2012-2014 Bastian Kleineidam
|
||||||
Copyright (C) 2015-2017 Tobias Gruetzmacher
|
Copyright (C) 2015-2019 Tobias Gruetzmacher
|
||||||
"""
|
"""
|
||||||
Freeware = AppName + u""" comes with ABSOLUTELY NO WARRANTY!
|
Freeware = AppName + u""" comes with ABSOLUTELY NO WARRANTY!
|
||||||
This is free software, and you are welcome to redistribute it
|
This is free software, and you are welcome to redistribute it
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
||||||
# Copyright (C) 2012-2014 Bastian Kleineidam
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
||||||
# Copyright (C) 2015-2018 Tobias Gruetzmacher
|
# Copyright (C) 2015-2019 Tobias Gruetzmacher
|
||||||
|
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
|
|
||||||
|
@ -34,7 +34,8 @@ except ImportError:
|
||||||
from backports.functools_lru_cache import lru_cache
|
from backports.functools_lru_cache import lru_cache
|
||||||
|
|
||||||
from .output import out
|
from .output import out
|
||||||
from .configuration import UserAgent, AppName, App, SupportUrl
|
from .configuration import UserAgent, App, SupportUrl
|
||||||
|
from . import AppName
|
||||||
|
|
||||||
# Maximum content size for HTML pages
|
# Maximum content size for HTML pages
|
||||||
MaxContentBytes = 1024 * 1024 * 3 # 3 MB
|
MaxContentBytes = 1024 * 1024 * 3 # 3 MB
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
colorama
|
colorama
|
||||||
lxml
|
lxml
|
||||||
pbr
|
|
||||||
requests>=2.0
|
requests>=2.0
|
||||||
six
|
six
|
||||||
backports.shutil_get_terminal_size; python_version<'3.3'
|
backports.shutil_get_terminal_size; python_version<'3.3'
|
||||||
|
|
Loading…
Reference in a new issue