From eab524f372f49560009c327e61eb61f01d078f5a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 26 Jun 2017 10:23:43 +1000 Subject: [PATCH] General: Changes --- .travis.yml | 4 ++-- pywal/__init__.py | 4 ++++ setup.py | 12 +++++++----- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index f35f61f..7cea333 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,5 +6,5 @@ install: - pip install flake8 pylint script: - - flake8 pywal - - pylint pywal + - flake8 pywal setup.py + - pylint pywal setup.py diff --git a/pywal/__init__.py b/pywal/__init__.py index c766af7..9c4cd8f 100755 --- a/pywal/__init__.py +++ b/pywal/__init__.py @@ -576,3 +576,7 @@ def main(): # This saves 10ms. # pylint: disable=W0212 # os._exit(0) + + +if __name__ == "__main__": + main() diff --git a/setup.py b/setup.py index 0a3b76b..01e2096 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,8 @@ """wal - setup.py""" from setuptools import setup - import pywal + DESC = ( "View the DOCS at: https://github.com/dylanaraps/pywal\n\n" "Pypi doesn't like markdown OR rst with anchor links so " @@ -10,19 +10,21 @@ DESC = ( ) DESC = "".join(DESC) -version = pywal.__version__ -download_url = f"https://github.com/dylanaraps/pywal/archive/{version}.tar.gz" + +VERSION = pywal.__version__ +DOWNLOAD_URL = f"https://github.com/dylanaraps/pywal/archive/{VERSION}.tar.gz" + setup( name="pywal", - version=version, + 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=download_url, + download_url=DOWNLOAD_URL, classifiers=[ "Environment :: X11 Applications", "License :: OSI Approved :: MIT License",