Import of __version__ compatible with wheel & added install make target

This commit is contained in:
2022-05-30 22:31:39 +02:00
parent be4883d51b
commit 5bc240ed18
4 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,9 @@
.PHONY: clean .PHONY: clean
binaries=dist build binaries=dist build
install:
python3 setup.py install
dist: dist:
python3 setup.py sdist python3 setup.py sdist

View File

@@ -5,11 +5,11 @@ from setuptools import setup, find_packages
from sys import path from sys import path
from os.path import dirname from os.path import dirname
from torrentSearch.__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()
exec(open('torrentSearch/__version__.py').read())
setup( setup(
name='torrentSearch', name='torrentSearch',
version=__version__, version=__version__,

View File

@@ -25,7 +25,7 @@ import logging.config
import signal import signal
from docopt import docopt from docopt import docopt
from __init__ import __version__ from __version__ import __version__
from search import searchTorrentSite from search import searchTorrentSite
from utils import getConfig from utils import getConfig

View File

@@ -1,2 +1,2 @@
__version__ = '0.3.1' __version__ = '0.3.2-5'