diff --git a/setup.py b/setup.py index ae3a374..be5b814 100644 --- a/setup.py +++ b/setup.py @@ -5,15 +5,14 @@ from setuptools import setup, find_packages from sys import path from os.path import dirname -import torrentSearch +from version import __version__ with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name='torrentSearch', - version=torrentSearch.__version__, - packages=find_packages(), + version=__version__, package_data={ 'torrentSearch': ['default_config.ini'], }, diff --git a/torrentSearch/__init__.py b/torrentSearch/__init__.py index 04748ff..d5afcf7 100644 --- a/torrentSearch/__init__.py +++ b/torrentSearch/__init__.py @@ -7,8 +7,6 @@ from sys import path from os.path import dirname path.append(dirname(__file__)) -__version__ = '0.2' - import logging from utils import ColorizeFilter ch = logging.StreamHandler() diff --git a/version.py b/version.py new file mode 100644 index 0000000..d8ea336 --- /dev/null +++ b/version.py @@ -0,0 +1,2 @@ + +__version__ = '0.3'