summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylanaraps@users.noreply.github.com>2017-09-28 09:00:26 +1000
committerGitHub <noreply@github.com>2017-09-28 09:00:26 +1000
commitcbf0a0058273b082224dbd0de65c351ed476ba33 (patch)
tree6953b1c7d5db87b8d81b7b020116c70cec658519
parent637e31e9a862280db4c2e07ae6c62dbcc4069ee2 (diff)
parent3029f33a4bff225128658618ff70a4e7b955a19f (diff)
Merge pull request #117 from linuxunil/syntax-errors
Allow syntax errors to pass up since users should never see any.
-rw-r--r--setup.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/setup.py b/setup.py
index 8855e71..be72536 100644
--- a/setup.py
+++ b/setup.py
@@ -3,22 +3,19 @@ import setuptools
try:
import pywal
-except (ImportError, SyntaxError):
+except ImportError:
print("error: pywal requires Python 3.5 or greater.")
quit(1)
-
try:
import pypandoc
LONG_DESC = pypandoc.convert("README.md", "rst")
-except(IOError, ImportError, RuntimeError):
+except (IOError, ImportError, RuntimeError):
LONG_DESC = open('README.md').read()
-
VERSION = pywal.__version__
DOWNLOAD = "https://github.com/dylanaraps/pywal/archive/%s.tar.gz" % VERSION
-
setuptools.setup(
name="pywal",
version=VERSION,
@@ -37,10 +34,7 @@ setuptools.setup(
"Programming Language :: Python :: 3.6",
],
packages=["pywal"],
- entry_points={
- "console_scripts": ["wal=pywal.__main__:main"]
- },
+ entry_points={"console_scripts": ["wal=pywal.__main__:main"]},
python_requires=">=3.5",
test_suite="tests",
- include_package_data=True
-)
+ include_package_data=True)