Import __version__ from import statement directly.
This commit is contained in:
4
setup.py
4
setup.py
@@ -5,14 +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 torrentSearch.__init__ 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(),
|
packages=find_packages(),
|
||||||
package_data={
|
package_data={
|
||||||
'torrentSearch': ['default_config.ini'],
|
'torrentSearch': ['default_config.ini'],
|
||||||
|
|||||||
Reference in New Issue
Block a user