From: Agnibho Mondal Date: Thu, 8 Feb 2018 09:00:10 +0000 (+0530) Subject: Changed from distutils to setuptools for packaging X-Git-Url: https://code.agnibho.com/repo?a=commitdiff_plain;h=9ad6f850d7f5d2cb92ebbd53acf42edf26ee1713;p=statin.git Changed from distutils to setuptools for packaging --- diff --git a/.gitignore b/.gitignore index c148c05..bd44046 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ __pycache__ dist build -MANIFEST +statin.egg-info diff --git a/script/statin b/script/statin deleted file mode 100755 index 0d4f9a3..0000000 --- a/script/statin +++ /dev/null @@ -1,25 +0,0 @@ -#! /usr/bin/env python3 - -''' -Copyright (c) 2018 Agnibho Mondal -All rights reserved - -This file is part of Statin. - -Statin is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -Statin is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with Statin. If not, see . -''' - -import statin.statin - -statin.statin.main() diff --git a/setup.py b/setup.py index ae59553..7d72c00 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ You should have received a copy of the GNU General Public License along with Statin. If not, see . ''' -from distutils.core import setup +from setuptools import setup setup(name = "statin", version = "1.0", @@ -29,7 +29,7 @@ setup(name = "statin", author_email = "contact@agnibho.com", url = "https://code.agnibho.com/statin/", packages = ["statin"], - scripts = ["script/statin"], + entry_points = {"console_scripts" : ["statin = statin.statin:main"]}, long_description = "Statin is a static html files generator. It is compatible with SSI directives.", classifiers = [ "Development Status :: 4 - Beta",