pywal/setup.py

44 lines
1.3 KiB
Python
Raw Normal View History

2017-06-20 12:42:47 +02:00
"""wal - setup.py"""
2017-07-06 13:18:34 +02:00
import setuptools
try:
import pywal
except ImportError:
2017-08-09 16:44:43 +02:00
print("error: pywal requires Python 3.5 or greater.")
2017-07-07 03:18:59 +02:00
quit(1)
2017-06-22 06:29:26 +02:00
2017-07-25 08:22:15 +02:00
try:
import pypandoc
LONG_DESC = pypandoc.convert("README.md", "rst")
except (IOError, ImportError, RuntimeError):
print("warning: pypandoc not found. Not converting markdown to rst.")
2017-07-25 08:22:15 +02:00
LONG_DESC = open('README.md').read()
VERSION = pywal.__version__
DOWNLOAD = "https://github.com/dylanaraps/pywal/archive/%s.tar.gz" % VERSION
2017-06-26 02:23:43 +02:00
2017-07-06 13:18:34 +02:00
setuptools.setup(
2017-06-22 06:10:44 +02:00
name="pywal",
2017-06-26 02:23:43 +02:00
version=VERSION,
2017-06-20 12:42:47 +02:00
author="Dylan Araps",
author_email="dylan.araps@gmail.com",
description="Generate and change colorschemes on the fly",
2017-07-25 08:22:15 +02:00
long_description=LONG_DESC,
2018-01-02 01:20:24 +01:00
keywords="wal colorscheme terminal-emulators changing-colorschemes",
2017-06-20 12:42:47 +02:00
license="MIT",
2017-06-24 01:30:05 +02:00
url="https://github.com/dylanaraps/pywal",
download_url=DOWNLOAD,
2017-06-22 15:19:28 +02:00
classifiers=[
"Environment :: X11 Applications",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
2017-08-12 10:44:00 +02:00
"Programming Language :: Python :: 3.5",
2017-06-22 15:19:28 +02:00
"Programming Language :: Python :: 3.6",
],
2017-06-27 02:43:23 +02:00
packages=["pywal"],
entry_points={"console_scripts": ["wal=pywal.__main__:main"]},
2017-08-12 10:44:00 +02:00
python_requires=">=3.5",
2017-06-27 03:53:40 +02:00
test_suite="tests",
2018-01-02 01:20:24 +01:00
include_package_data=True,
zip_safe=False)