mport version from separate file
This commit is contained in:
5
setup.py
5
setup.py
@@ -5,15 +5,14 @@ from setuptools import setup, find_packages
|
|||||||
from sys import path
|
from sys import path
|
||||||
from os.path import dirname
|
from os.path import dirname
|
||||||
|
|
||||||
import torrentSearch
|
from version import __version__
|
||||||
|
|
||||||
with open("README.md", "r", encoding="utf-8") as fh:
|
with open("README.md", "r", encoding="utf-8") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='torrentSearch',
|
name='torrentSearch',
|
||||||
version=torrentSearch.__version__,
|
version=__version__,
|
||||||
packages=find_packages(),
|
|
||||||
package_data={
|
package_data={
|
||||||
'torrentSearch': ['default_config.ini'],
|
'torrentSearch': ['default_config.ini'],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,8 +7,6 @@ from sys import path
|
|||||||
from os.path import dirname
|
from os.path import dirname
|
||||||
path.append(dirname(__file__))
|
path.append(dirname(__file__))
|
||||||
|
|
||||||
__version__ = '0.2'
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from utils import ColorizeFilter
|
from utils import ColorizeFilter
|
||||||
ch = logging.StreamHandler()
|
ch = logging.StreamHandler()
|
||||||
|
|||||||
2
version.py
Normal file
2
version.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
__version__ = '0.3'
|
||||||
Reference in New Issue
Block a user