summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDylan Araps <dylanaraps@users.noreply.github.com>2017-06-26 10:15:03 +1000
committerGitHub <noreply@github.com>2017-06-26 10:15:03 +1000
commit670c35287234d507da393c9ef8d382ab06324851 (patch)
tree49d620f2fd4856520a384f489f113e6c0cc369ec /setup.py
parent6c7d6370a638315f788cd0981096acb8b8e292e0 (diff)
parent4fedfd8be48d5c67cbf34c90c81a6d30ec6ce262 (diff)
Merge pull request #7 from danielx/console-script
Use setuptools.setup console_scripts entry point.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 10c5307..0a3b76b 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
"""wal - setup.py"""
from setuptools import setup
+import pywal
DESC = (
"View the DOCS at: https://github.com/dylanaraps/pywal\n\n"
@@ -9,22 +10,30 @@ DESC = (
)
DESC = "".join(DESC)
+version = pywal.__version__
+download_url = f"https://github.com/dylanaraps/pywal/archive/{version}.tar.gz"
setup(
name="pywal",
- version="0.1.6",
+ version=version,
author="Dylan Araps",
author_email="dylan.araps@gmail.com",
description="🎨 Generate and change colorschemes on the fly",
long_description=DESC,
license="MIT",
url="https://github.com/dylanaraps/pywal",
- download_url="https://github.com/dylanaraps/pywal/archive/0.1.6.tar.gz",
- scripts=["wal"],
+ download_url=download_url,
classifiers=[
"Environment :: X11 Applications",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.6",
- ]
+ ],
+ packages=['pywal'],
+ entry_points={
+ "console_scripts": [
+ "wal=pywal:main"
+ ]
+ },
+ python_requires=">=3.6"
)