]> Softwares of Agnibho - statin.git/commitdiff
Changed from distutils to setuptools for packaging
authorAgnibho Mondal <mondal@agnibho.com>
Thu, 8 Feb 2018 09:00:10 +0000 (14:30 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Thu, 8 Feb 2018 09:00:10 +0000 (14:30 +0530)
.gitignore
script/statin [deleted file]
setup.py

index c148c05b46ada8de35103122ff9b2957c4f95a4b..bd44046e3e94ab7b696139eb4baa8809b8ce30fa 100644 (file)
@@ -1,4 +1,4 @@
 __pycache__
 dist
 build
-MANIFEST
+statin.egg-info
diff --git a/script/statin b/script/statin
deleted file mode 100755 (executable)
index 0d4f9a3..0000000
+++ /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 <http://www.gnu.org/licenses/>.
-'''
-
-import statin.statin
-
-statin.statin.main()
index ae59553f0ce48fc71b84916c67bbfa3c115f9ef5..7d72c008a7c9565c3ebdc883173624c238ecac34 100644 (file)
--- 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 <http://www.gnu.org/licenses/>.
 '''
 
-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",