[setup] Add setup and __pkginfo__
authorVincent Michel <vincent.michel@logilab.fr>
Tue, 18 Dec 2012 13:06:20 +0100
changeset 178 e4fe75fbe5cc
parent 177 986bfcf945e9
child 179 fe3556bda079
[setup] Add setup and __pkginfo__
MANIFEST.in
__pkginfo__.py
debian/rules
setup.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MANIFEST.in	Tue Dec 18 13:06:20 2012 +0100
@@ -0,0 +1,4 @@
+recursive-include . *.py
+recursive-include debian *
+include *.rst
+recursive-include test/data *
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/__pkginfo__.py	Tue Dec 18 13:06:20 2012 +0100
@@ -0,0 +1,41 @@
+# pylint: disable-msg=W0622
+# copyright 2004-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
+#
+# This file is part of rql.
+#
+# rql is free software: you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# rql 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 Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License along
+# with rql. If not, see <http://www.gnu.org/licenses/>.
+"""Nazca packaging information."""
+__docformat__ = "restructuredtext en"
+import sys
+
+distname = 'nazca'
+modname = 'nazca'
+
+numversion = (0, 1, 0)
+version = '.'.join([str(num) for num in numversion])
+
+license = 'LGPL' # 2.1 or later
+description = "Python library for data alignment"
+web = "https://www.logilab.org/project/nazca"
+author = "Logilab"
+author_email = "contact@logilab.fr"
+
+
+from os.path import join
+scripts = [join('bin', 'pytest')]
+include_dirs = [join('test', 'data')]
+
+if sys.version_info < (2, 7):
+    install_requires = ['unittest2 >= 0.5.1']
--- a/debian/rules	Tue Dec 18 08:58:52 2012 +0100
+++ b/debian/rules	Tue Dec 18 13:06:20 2012 +0100
@@ -27,8 +27,6 @@
 	dh_clean -k
 	dh_installdirs -i
 	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/nazca/usr/
-	# remove generated .egg-info file
-	rm -rf debian/nazca/usr/lib/python*
 
 
 # Build architecture-independent files here.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/setup.py	Tue Dec 18 13:06:20 2012 +0100
@@ -0,0 +1,26 @@
+# -*- coding:utf-8 -*-
+# copyright 2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr -- mailto:contact@logilab.fr
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# This program 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 Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+from distutils.core import setup
+
+setup(name='nazca',
+      version='0.1.0',
+      description='Python library for data alignment',
+      author='LOGILAB S.A. (Paris, FRANCE)',
+      author_email=' <contact@logilab.fr>',
+      url='https://www.logilab.org/project/nazca',
+      packages=[],
+     )