Import of __version__ compatible with wheel & added install make target
This commit is contained in:
3
Makefile
3
Makefile
@@ -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
|
||||||
|
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -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__,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
__version__ = '0.3.1'
|
__version__ = '0.3.2-5'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user