comparison setup.py @ 1216:b2d067339de3

python 3 port: /!\ Python 3.6+ is now needed to use libervia /!\ instability may occur and features may not be working anymore, this will improve with time /!\ TxJSONRPC dependency has been removed The same procedure as in backend has been applied (check backend commit ab2696e34d29 logs for details). Removed now deprecated code (Pyjamas compiled browser part, legacy blog, JSON RPC related code). Adapted code to work without `html` and `themes` dirs.
author Goffi <goffi@goffi.org>
date Tue, 13 Aug 2019 19:12:31 +0200
parents ece192e6b4db
children b2a9da7708f6
comparison
equal deleted inserted replaced
1215:f14ab8a25e8b 1216:b2d067339de3
1 #!/usr/bin/env python2 1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 3
4 # Libervia: a Salut à Toi frontend 4 # Libervia: a Salut à Toi frontend
5 # Copyright (C) 2011-2018 Jérôme Poisson (goffi@goffi.org) 5 # Copyright (C) 2011-2018 Jérôme Poisson (goffi@goffi.org)
6 # Copyright (C) 2013-2016 Adrien Cossa (souliane@mailoo.org) 6 # Copyright (C) 2013-2016 Adrien Cossa (souliane@mailoo.org)
22 import os 22 import os
23 23
24 NAME = "libervia" 24 NAME = "libervia"
25 25
26 install_requires = [ 26 install_requires = [
27 "sat>=0.7.0", 27 "sat>=0.8.0.dev0",
28 "sat-templates", 28 "sat-templates",
29 "twisted", 29 "twisted",
30 "txJSON-RPC==0.3.1",
31 "zope.interface", 30 "zope.interface",
32 "pyopenssl", 31 "pyopenssl",
33 "jinja2>=2.9", 32 "jinja2>=2.9",
34 "shortuuid", 33 "shortuuid",
35 "autobahn", 34 "autobahn",
36 ] 35 ]
37 long_description = u"""\ 36 long_description = """\
38 Libervia is a web frontend for Salut à Toi (SàT), a multi-frontends and multi-purposes XMPP client. 37 Libervia is a web frontend for Salut à Toi (SàT), a multi-frontends and multi-purposes XMPP client.
39 It features chat, blog, forums, events, tickets, merge requests, file sharing, photo albums, etc. 38 It features chat, blog, forums, events, tickets, merge requests, file sharing, photo albums, etc.
40 It is also a decentralized, XMPP based web framework. 39 It is also a decentralized, XMPP based web framework.
41 """ 40 """
42 41
58 57
59 58
60 setup( 59 setup(
61 name=NAME, 60 name=NAME,
62 version=VERSION, 61 version=VERSION,
63 description=u"Web frontend for Salut à Toi", 62 description="Web frontend for Salut à Toi",
64 long_description=long_description, 63 long_description=long_description,
65 author="Association « Salut à Toi »", 64 author="Association « Salut à Toi »",
66 author_email="contact@goffi.org", 65 author_email="contact@goffi.org",
67 url="https://www.salut-a-toi.org", 66 url="https://www.salut-a-toi.org",
68 classifiers=[ 67 classifiers=[
77 packages=["libervia", "libervia.common", "libervia.server", "twisted.plugins"], 76 packages=["libervia", "libervia.common", "libervia.server", "twisted.plugins"],
78 include_package_data=True, 77 include_package_data=True,
79 data_files=[(os.path.join("share", "doc", NAME), ["COPYING", "README", "INSTALL"])] 78 data_files=[(os.path.join("share", "doc", NAME), ["COPYING", "README", "INSTALL"])]
80 + [ 79 + [
81 (os.path.join("share", NAME, root), [os.path.join(root, f) for f in files]) 80 (os.path.join("share", NAME, root), [os.path.join(root, f) for f in files])
82 for root, dirs, files in os.walk(u"themes") 81 for root, dirs, files in os.walk("themes")
83 ], 82 ],
84 scripts=["bin/libervia"], 83 scripts=["bin/libervia"],
85 zip_safe=False, 84 zip_safe=False,
86 setup_requires=["setuptools_scm"] if is_dev_version else [], 85 setup_requires=["setuptools_scm"] if is_dev_version else [],
87 use_scm_version=libervia_dev_version if is_dev_version else False, 86 use_scm_version=libervia_dev_version if is_dev_version else False,