mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-07-11 11:35:26 +02:00
Allow syntax errors to pass up since users should never see any.
This will help with debugging. Right now it just tells you that pywal needs python 3.5 or newer. Merge remote-tracking branch 'origin/syntax-errors' into syntax-errors
This commit is contained in:
14
setup.py
14
setup.py
@ -3,22 +3,19 @@ import setuptools
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import pywal
|
import pywal
|
||||||
except (ImportError, SyntaxError):
|
except ImportError:
|
||||||
print("error: pywal requires Python 3.5 or greater.")
|
print("error: pywal requires Python 3.5 or greater.")
|
||||||
quit(1)
|
quit(1)
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pypandoc
|
import pypandoc
|
||||||
LONG_DESC = pypandoc.convert("README.md", "rst")
|
LONG_DESC = pypandoc.convert("README.md", "rst")
|
||||||
except(IOError, ImportError, RuntimeError):
|
except (IOError, ImportError, RuntimeError):
|
||||||
LONG_DESC = open('README.md').read()
|
LONG_DESC = open('README.md').read()
|
||||||
|
|
||||||
|
|
||||||
VERSION = pywal.__version__
|
VERSION = pywal.__version__
|
||||||
DOWNLOAD = "https://github.com/dylanaraps/pywal/archive/%s.tar.gz" % VERSION
|
DOWNLOAD = "https://github.com/dylanaraps/pywal/archive/%s.tar.gz" % VERSION
|
||||||
|
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="pywal",
|
name="pywal",
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
@ -37,10 +34,7 @@ setuptools.setup(
|
|||||||
"Programming Language :: Python :: 3.6",
|
"Programming Language :: Python :: 3.6",
|
||||||
],
|
],
|
||||||
packages=["pywal"],
|
packages=["pywal"],
|
||||||
entry_points={
|
entry_points={"console_scripts": ["wal=pywal.__main__:main"]},
|
||||||
"console_scripts": ["wal=pywal.__main__:main"]
|
|
||||||
},
|
|
||||||
python_requires=">=3.5",
|
python_requires=">=3.5",
|
||||||
test_suite="tests",
|
test_suite="tests",
|
||||||
include_package_data=True
|
include_package_data=True)
|
||||||
)
|
|
||||||
|
Reference in New Issue
Block a user