Make setup.py builds less sensitive to imports

This commit is contained in:
Arne Sellmann 2018-11-07 10:48:57 +00:00
parent 5033bcfc91
commit 7635d93be7
4 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,4 @@
VERSION=`grep "VERSION" lutris/settings.py | cut -d" " -f 3 | sed 's|"\(.*\)"|\1|'` VERSION=`grep "__version__" lutris/__init__.py | cut -d" " -f 3 | sed 's|"\(.*\)"|\1|'`
cover: cover:
rm tests/fixtures/pga.db -f rm tests/fixtures/pga.db -f

View file

@ -1 +1,3 @@
"""Main Lutris package""" """Main Lutris package"""
__version__ = "0.4.23"

View file

@ -3,9 +3,10 @@
import os import os
from gi.repository import GLib from gi.repository import GLib
from lutris.util.settings import SettingsIO from lutris.util.settings import SettingsIO
from lutris import __version__
PROJECT = "Lutris" PROJECT = "Lutris"
VERSION = "0.4.23" VERSION = __version__
COPYRIGHT = "(c) 2010-2018 Lutris Gaming Platform" COPYRIGHT = "(c) 2010-2018 Lutris Gaming Platform"
AUTHORS = ["Mathieu Comandon <strycore@gmail.com>", AUTHORS = ["Mathieu Comandon <strycore@gmail.com>",
"Pascal Reinhard (Xodetaetl) <dev@xod.me"] "Pascal Reinhard (Xodetaetl) <dev@xod.me"]

View file

@ -2,7 +2,7 @@
import os import os
import sys import sys
from setuptools import setup from setuptools import setup
from lutris.settings import VERSION from lutris import __version__ as VERSION
if sys.version_info < (3, 4): if sys.version_info < (3, 4):
sys.exit('Python 3.4 is required to run Lutris') sys.exit('Python 3.4 is required to run Lutris')