Skip to content

Commit

Permalink
[TASK] extract module informations to __version__.py to provide modul…
Browse files Browse the repository at this point in the history
…e too
  • Loading branch information
DaRealFreak committed Jan 25, 2018
1 parent 61934c4 commit 9692adc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 11 deletions.
10 changes: 10 additions & 0 deletions saucenao/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

__title__ = 'SauceNAO'
__description__ = 'Small module to work with SauceNAO locally'
__version__ = '1.0.0'
__url__ = 'https://github.com/DaRealFreak/saucenao'
__author__ = 'DaRealFreak'
__author_email__ = 'steffen.keuper@web.de'
__license__ = 'MIT'
33 changes: 22 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os

from setuptools import setup, find_packages

setup(name='SauceNAO',
version='0.0.1',
description='Small module to work with SauceNAO locally',
url='https://github.com/DaRealFreak/saucenao',
author='DaRealFreak',
author_email='steffen.keuper@web.de',
license='MIT',
current_directory = os.path.abspath(os.path.dirname(__file__))

about = {}
with open(os.path.join(current_directory, 'saucenao', '__version__.py'), 'r') as f:
exec(f.read(), about)

setup(name=about['__title__'],
version=about['__version__'],
description=about['__description__'],
url=about['__url__'],
author=about['__author__'],
author_email=about['__author_email__'],
license=about['__license__'],
packages=find_packages(),
install_requires=[
'bs4',
'requests'
'bs4>=0.0.1',
'requests>=2.18.4'
],
extras_require={
'unittests': [
'python-dotenv',
'Pillow'
'python-dotenv>=0.7.1',
'Pillow>=5.0.0'
],
'titlesearch': [
'titlesearch>=0.0.1'
]
},
zip_safe=True)

0 comments on commit 9692adc

Please sign in to comment.