From 0b665043bffe43d52221f76f093be08873505eb1 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 5 Mar 2016 22:50:03 -0500 Subject: Moved _version elsewhere. It is now at lpschedule_generator/_version.py --- _version.py | 21 --------------------- lps_gen.py | 2 +- lpschedule_generator/__init__.py | 0 lpschedule_generator/_version.py | 21 +++++++++++++++++++++ setup.py | 4 ++-- 5 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 _version.py create mode 100644 lpschedule_generator/__init__.py create mode 100644 lpschedule_generator/_version.py diff --git a/_version.py b/_version.py deleted file mode 100644 index 152adbf..0000000 --- a/_version.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2015 lpschedule-generator contributors. See CONTRIBUTORS. -# -# This file is part of lpschedule-generator. -# -# lpschedule-generator 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. -# -# lpschedule-generator 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 lpschedule-generator (see COPYING). If not, see -# . - -__version__ = '0.3.2' diff --git a/lps_gen.py b/lps_gen.py index 544ff02..aa50244 100644 --- a/lps_gen.py +++ b/lps_gen.py @@ -31,7 +31,7 @@ from jinja2.exceptions import TemplateNotFound from mistune import Renderer, Markdown from unidecode import unidecode -from _version import __version__ +from lpschedule_generator._version import __version__ # unicode magic diff --git a/lpschedule_generator/__init__.py b/lpschedule_generator/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/lpschedule_generator/_version.py b/lpschedule_generator/_version.py new file mode 100644 index 0000000..32b7510 --- /dev/null +++ b/lpschedule_generator/_version.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2015 lpschedule-generator contributors. See CONTRIBUTORS. +# +# This file is part of lpschedule-generator. +# +# lpschedule-generator 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. +# +# lpschedule-generator 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 lpschedule-generator (see COPYING). If not, see +# . + +__version__ = '0.3.3.dev3' diff --git a/setup.py b/setup.py index e44de21..2074b1d 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ # along with lpschedule-generator (see COPYING). If not, see # . -import _version +from lpschedule_generator import _version from setuptools import setup, find_packages @@ -46,7 +46,7 @@ config = { 'install_requires': ['mistune', 'Jinja2', 'beautifulsoup4', 'unidecode'], 'tests_require': ['nose', 'mock'], 'test_suite': 'nose.collector', - 'py_modules': ['lps_gen'], + 'py_modules': ['lps_gen', 'lpschedule_generator._version'], 'data_files': [('local/share/lpschedule-generator/libreplanet-templates/2016', ['libreplanet-templates/2016/lp-schedule.jinja2', 'libreplanet-templates/2016/lp-speakers.jinja2'])], -- cgit v1.2.3