mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-01-31 19:51:34 +01:00
put centralized version string in 'version.py'
This commit is contained in:
parent
f7c993d952
commit
f434a0711b
@ -12,7 +12,6 @@ __author__ = "Mike Fährmann"
|
||||
__copyright__ = "Copyright 2014-2016 Mike Fährmann"
|
||||
|
||||
__license__ = "GPLv2"
|
||||
__version__ = "0.5.2"
|
||||
__maintainer__ = "Mike Fährmann"
|
||||
__email__ = "mike_faehrmann@web.de"
|
||||
|
||||
@ -26,6 +25,7 @@ import os
|
||||
import argparse
|
||||
import json
|
||||
from . import config, extractor, job, exception
|
||||
from .version import __version__
|
||||
|
||||
def build_cmdline_parser():
|
||||
parser = argparse.ArgumentParser(
|
||||
|
9
gallery_dl/version.py
Normal file
9
gallery_dl/version.py
Normal file
@ -0,0 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2016 Mike Fährmann
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
__version__ = "0.5.2"
|
9
setup.py
9
setup.py
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os.path
|
||||
|
||||
@ -11,15 +11,20 @@ except ImportError:
|
||||
def read(fname):
|
||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||
|
||||
# get version without importing the package
|
||||
exec(read("gallery_dl/version.py"))
|
||||
|
||||
setup(
|
||||
name="gallery_dl",
|
||||
version="0.5.2",
|
||||
version=__version__,
|
||||
description="gallery- and image downloader",
|
||||
long_description=read("README.rst"),
|
||||
url="https://github.com/mikf/gallery-dl",
|
||||
download_url="https://github.com/mikf/gallery-dl/releases/latest",
|
||||
author="Mike Fährmann",
|
||||
author_email="mike_faehrmann@web.de",
|
||||
maintainer="Mike Fährmann",
|
||||
maintainer_email="mike_faehrmann@web.de",
|
||||
license="GPLv2",
|
||||
install_requires=[
|
||||
"requests >= 2.4.2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user