mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-08-09 06:24:54 +02:00
Use setuptools.setup console_scripts entry point.
- Switch to distributing pywal as a module and having setuptools register the script as an console_script entry point. - Added python_requires field to setuptools.setup. - Use the module version as the package version.
This commit is contained in:
17
setup.py
17
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"
|
||||
)
|
||||
|
Reference in New Issue
Block a user