mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-25 03:51:34 +02:00
setup: Leave a useful message if Python version too low.
This commit is contained in:
parent
b79c44e5ff
commit
7ac8099b96
10
setup.py
10
setup.py
@ -1,6 +1,10 @@
|
|||||||
"""wal - setup.py"""
|
"""wal - setup.py"""
|
||||||
import setuptools
|
import setuptools
|
||||||
import pywal
|
|
||||||
|
try:
|
||||||
|
import pywal
|
||||||
|
except (ImportError, SyntaxError):
|
||||||
|
raise ImportError('pywal requires Python 3.6 or greater.')
|
||||||
|
|
||||||
|
|
||||||
DESC = (
|
DESC = (
|
||||||
@ -10,7 +14,7 @@ DESC = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
VERSION = pywal.__version__
|
VERSION = pywal.__version__
|
||||||
DOWNLOAD_URL = f"https://github.com/dylanaraps/pywal/archive/{VERSION}.tar.gz"
|
DOWNLOAD = "https://github.com/dylanaraps/pywal/archive/%s.tar.gz" % VERSION
|
||||||
|
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
@ -22,7 +26,7 @@ setuptools.setup(
|
|||||||
long_description=DESC,
|
long_description=DESC,
|
||||||
license="MIT",
|
license="MIT",
|
||||||
url="https://github.com/dylanaraps/pywal",
|
url="https://github.com/dylanaraps/pywal",
|
||||||
download_url=DOWNLOAD_URL,
|
download_url=DOWNLOAD,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Environment :: X11 Applications",
|
"Environment :: X11 Applications",
|
||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user