lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

commit 640097f4fe0957edae1479f43c5a173c98bee5b1
parent 77f0b522e1a16b1dba36432d5aa7a099bfe84403
Author: rsiddharth <rsd@gnu.org>
Date:   Sat, 19 Dec 2015 17:44:21 -0500

Updated setup.py

Added:
   - long_description
   - platforms
   - license
   - entry_points: (lps_gen:main)

Updated:
   - version: now read from lps_gen.__version__

Diffstat:
lps_gen.py | 1+
setup.py | 12++++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/lps_gen.py b/lps_gen.py @@ -30,6 +30,7 @@ from jinja2 import Environment, PackageLoader from jinja2.exceptions import TemplateNotFound from mistune import Renderer, Markdown +__version__ = '0.0.0' # unicode magic reload(sys) diff --git a/setup.py b/setup.py @@ -19,6 +19,8 @@ # along with lpschedule-generator (see COPYING). If not, see # <http://www.gnu.org/licenses/>. +import lps_gen + try: from setuptools import setup except ImportError: @@ -27,13 +29,19 @@ except ImportError: config = { 'name': 'lpschedule-generator', 'description': 'LibrePlanet schedule generator', - 'author': 'rsiddharth', + 'long_description': lps_gen.read_file('README.md'), + 'version': lps_gen.__version__, + 'platforms': 'GNU/Linux', + 'license': 'GNU General Public License version 3 or later', 'url': 'https://notabug.org/rsd/lpschedule-generator/', + 'author': 'rsiddharth', 'author_email': 'rsd@gnu.org', - 'version': '0.0', 'install_requires': ['nose', 'mock', 'mistune', 'Jinja2', 'beautifulsoup4'], 'py_modules': ['lps_gen'], 'data_files':[('templates',['templates/lp-sch-2016.jinja2'])], + 'entry_points': { + 'console_scripts': ['lps_gen = lps_gen:main'] + }, } setup(**config)