Mercurial > libervia-pubsub
annotate setup.py @ 325:8d939378f023
mam: removed requestor in favor of mam_request.sender and recipient + fixed bad use of requestor instead of recipient in getItemsData
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 08 Jan 2016 20:47:52 +0100 |
parents | 9df844d9d5ac |
children | bfbc84057c0e |
rev | line source |
---|---|
233 | 1 #!/usr/bin/python |
2 #-*- coding: utf-8 -*- | |
3 | |
264 | 4 # Copyright (c) 2003-2011 Ralph Meijer |
5 # Copyright (C) 2011-2014 Jérôme Poisson <goffi@goffi.org> | |
233 | 6 |
264 | 7 # This program is free software: you can redistribute it and/or modify |
8 # it under the terms of the GNU Affero General Public License as published by | |
9 # the Free Software Foundation, either version 3 of the License, or | |
10 # (at your option) any later version. | |
233 | 11 |
264 | 12 # This program is distributed in the hope that it will be useful, |
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 # GNU Affero General Public License for more details. | |
233 | 16 |
264 | 17 # You should have received a copy of the GNU Affero General Public License |
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
233 | 19 |
264 | 20 # This program is based on Idavoll (http://idavoll.ik.nu/), |
21 # originaly written by Ralph Meijer (http://ralphm.net/blog/) | |
22 # It is sublicensed under AGPL v3 (or any later version) as allowed | |
23 # by the original license. | |
155 | 24 |
264 | 25 # Here is a copy of the original license: |
233 | 26 |
264 | 27 # Copyright (c) 2003-2011 Ralph Meijer |
233 | 28 |
264 | 29 # Permission is hereby granted, free of charge, to any person obtaining |
30 # a copy of this software and associated documentation files (the | |
31 # "Software"), to deal in the Software without restriction, including | |
32 # without limitation the rights to use, copy, modify, merge, publish, | |
33 # distribute, sublicense, and/or sell copies of the Software, and to | |
34 # permit persons to whom the Software is furnished to do so, subject to | |
35 # the following conditions: | |
233 | 36 |
264 | 37 # The above copyright notice and this permission notice shall be |
38 # included in all copies or substantial portions of the Software. | |
233 | 39 |
264 | 40 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
41 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
42 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
43 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | |
44 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | |
45 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | |
46 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
155 | 47 |
190
6e6c89eca9db
Make sure optional PostgreSQL connect parameters are passed as None, require
Ralph Meijer <ralphm@ik.nu>
parents:
189
diff
changeset
|
48 import sys |
189 | 49 from setuptools import setup |
234
51af2ed8bd50
replaced idavoll imports by sat_pubsub imports
Goffi <goffi@goffi.org>
parents:
233
diff
changeset
|
50 from sat_pubsub import __version__ |
155 | 51 |
264 | 52 |
53 # seen here: http://stackoverflow.com/questions/7275295 | |
54 try: | |
55 from setuptools.command import egg_info | |
56 egg_info.write_toplevel_names | |
57 except (ImportError, AttributeError): | |
58 pass | |
59 else: | |
60 def _top_level_package(name): | |
61 return name.split('.', 1)[0] | |
62 | |
63 def _hacked_write_toplevel_names(cmd, basename, filename): | |
64 pkgs = dict.fromkeys( | |
65 [_top_level_package(k) | |
66 for k in cmd.distribution.iter_distribution_names() | |
67 if _top_level_package(k) != "twisted" | |
68 ] | |
69 ) | |
70 cmd.write_file("top-level names", filename, '\n'.join(pkgs) + '\n') | |
71 | |
72 egg_info.write_toplevel_names = _hacked_write_toplevel_names | |
73 | |
74 | |
193 | 75 install_requires = [ |
254
d29e2360b05c
minimum required wokkel version is now 0.7.1
Goffi <goffi@goffi.org>
parents:
239
diff
changeset
|
76 'wokkel >= 0.7.1', |
193 | 77 'simplejson', |
78 ] | |
190
6e6c89eca9db
Make sure optional PostgreSQL connect parameters are passed as None, require
Ralph Meijer <ralphm@ik.nu>
parents:
189
diff
changeset
|
79 |
6e6c89eca9db
Make sure optional PostgreSQL connect parameters are passed as None, require
Ralph Meijer <ralphm@ik.nu>
parents:
189
diff
changeset
|
80 if sys.version_info < (2, 5): |
6e6c89eca9db
Make sure optional PostgreSQL connect parameters are passed as None, require
Ralph Meijer <ralphm@ik.nu>
parents:
189
diff
changeset
|
81 install_requires.append('uuid') |
6e6c89eca9db
Make sure optional PostgreSQL connect parameters are passed as None, require
Ralph Meijer <ralphm@ik.nu>
parents:
189
diff
changeset
|
82 |
239
2b50e4664d74
fixed setup.py and twistd plugin file
Goffi <goffi@goffi.org>
parents:
235
diff
changeset
|
83 setup(name='sat_pubsub', |
217 | 84 version=__version__, |
269 | 85 description=u'XMPP Publish-Subscribe Service Component, build for the need of the « Salut à Toi » project', |
239
2b50e4664d74
fixed setup.py and twistd plugin file
Goffi <goffi@goffi.org>
parents:
235
diff
changeset
|
86 maintainer='Jérôme Poisson', |
2b50e4664d74
fixed setup.py and twistd plugin file
Goffi <goffi@goffi.org>
parents:
235
diff
changeset
|
87 maintainer_email='goffi@goffi.org', |
2b50e4664d74
fixed setup.py and twistd plugin file
Goffi <goffi@goffi.org>
parents:
235
diff
changeset
|
88 url='http://repos.goffi.org/sat_pubsub', |
2b50e4664d74
fixed setup.py and twistd plugin file
Goffi <goffi@goffi.org>
parents:
235
diff
changeset
|
89 license='AGPLv3+', |
155 | 90 packages=[ |
239
2b50e4664d74
fixed setup.py and twistd plugin file
Goffi <goffi@goffi.org>
parents:
235
diff
changeset
|
91 'sat_pubsub', |
2b50e4664d74
fixed setup.py and twistd plugin file
Goffi <goffi@goffi.org>
parents:
235
diff
changeset
|
92 'sat_pubsub.test', |
264 | 93 'twisted.plugins', |
155 | 94 ], |
264 | 95 package_data={'twisted.plugins': ['twisted/plugins/sat_pubsub.py']}, |
96 data_files=[('share/sat_pubsub', ['db/pubsub.sql', 'doc/examples/sat_pubsub.tac'])], | |
189 | 97 zip_safe=False, |
190
6e6c89eca9db
Make sure optional PostgreSQL connect parameters are passed as None, require
Ralph Meijer <ralphm@ik.nu>
parents:
189
diff
changeset
|
98 install_requires=install_requires, |
155 | 99 ) |