Commit graph libervia-backend/setup.py
Author SHA1 Message Date
Goffi
f7aad247c2 misc: don't import memory in launch script:
launch script was importing a method from memory (fixLocalDir), but memory is importing
twisted.internet.reactor which can result to a ReactorAlreadyInstalledError.

This patch fixes it by moving fixLocalDir to tools/config.

The launch script is now using /usr/bin/env.
2019-10-08 12:10:26 +02:00
Goffi
310ce2eb13 core (patches): updated TLS patches:
- updated patches to handle TLS after implementation in Twisted 19.7.0. A patch is still
  needed for Wokkel.
- minimum required version of Twisted is now 19.7.0
2019-10-01 22:49:10 +02:00
Goffi
76aadbb3fb jp: jp asyncio port:
/!\ this commit is huge. Jp is temporarily not working with `dbus` bridge /!\

This patch implements the port of jp to asyncio, so it is now correctly using the bridge
asynchronously, and it can be used with bridges like `pb`. This also simplify the code,
notably for things which were previously implemented with many callbacks (like pagination
with RSM).

During the process, some behaviours have been modified/fixed, in jp and backends, check
diff for details.
2019-09-25 08:56:41 +02:00
Goffi
2b062e9cde install (setup.py): updated classifiers 2019-08-25 12:16:18 +02:00
Goffi
c9574e2b87 install (setup.py): updated python_requires 2019-08-25 09:53:03 +02:00
Goffi
fbfe96c505 Python 3 port:
/!\ this is a huge commit
/!\ starting from this commit, SàT is needs Python 3.6+
/!\ SàT maybe be instable or some feature may not work anymore, this will improve with time

This patch port backend, bridge and frontends to Python 3.

Roughly this has been done this way:

- 2to3 tools has been applied (with python 3.7)
- all references to python2 have been replaced with python3 (notably shebangs)
- fixed files not handled by 2to3 (notably the shell script)
- several manual fixes
- fixed issues reported by Python 3 that where not handled in Python 2
- replaced "async" with "async_" when needed (it's a reserved word from Python 3.7)
- replaced zope's "implements" with @implementer decorator
- temporary hack to handle data pickled in database, as str or bytes may be returned,
  to be checked later
- fixed hash comparison for password
- removed some code which is not needed anymore with Python 3
- deactivated some code which needs to be checked (notably certificate validation)
- tested with jp, fixed reported issues until some basic commands worked
- ported Primitivus (after porting dependencies like urwid satext)
- more manual fixes
2019-08-13 19:08:41 +02:00
Goffi
5cd41da237 install: remove "service_identity" which is need by Twisted, and request "tls" extra for twisted 2019-06-21 11:37:51 +02:00
Goffi
88843cb483 install: updated minimal version for sat_tmp and urwid-satext 2019-06-19 20:07:56 +02:00
Goffi
e1ff10bf77 template (i18n): activate ext.i18n.trimmed policy, to have clean translation strings. Set minimal jinja2 version to 2.10 2019-04-14 08:21:51 +02:00
Goffi
08650b3037 misc (setup): minimum markdown version is not 3.0 2019-03-25 08:46:09 +01:00
Goffi
ace2f57027 plugin XEP-0384: removed version restriction, it is now compatible with (and require) last version of python-omemo (0.10.4) 2019-03-20 09:08:37 +01:00
Goffi
e8e8881016 plugin XEP-0384: better bundle handling + misc improvments
- public bundles are now retrieved only when needed (i.e. on MissingBundleException when encrypting a message)
- a feedback is given to user when a message is received but it has not been encrypted for our device
- fixed feedback on decryption error if message come from an other device of the client (i.e. it's a carbon copy)
- setBundle if called in a "finally" if republish_bundle is set after decrypting a message
2019-02-28 18:57:26 +01:00
Goffi
111d77e75e plugin XEP-0384: update to last python-omemo + trust management:
- Plugin has been updated to use last version of python-omemo (10.0.3).
- A temporary method remove all storage data if they are found, this method must be removed before 0.7 release (only people using dev version should have old omemo data in there storage).
- Trust management is not implemented, using new encryptionTrustUIGet method (an UI is also displayed when trust handling is needed before sending a message).
- omemo.DefaultOTPKPolicy is now used, instead of previous test policy of always deleting.

OMEMO e2e encryption is now functional for one2one conversations, including fingerprint management.
2019-01-02 18:50:28 +01:00
Goffi
9771affbcc install: don't do conditional requirement for omemo anymore, it should now work on all unixes 2018-09-23 17:02:47 +02:00
Goffi
465ba81bc2 install: use omemo in install_requires only for platforms supported upstream 2018-09-20 19:04:02 +02:00
Goffi
583d4b0c2e plugin XEP-0384, install: adapted plugin to omemo module changes + added omemo module to dependencies:
- omemo module logs are now integrated in SàT
- OmemoStorage adapated to changes
- now really delete OTPK each time, behaviour may be modified in future
- fixed bad arguments used during decryption
- adapted to other changes

OMEMO is now working \o/
It still needs some adjustements though: bundles/devices are for the moment requested on each message encryption, and fingerprints management is not implemented yet.
2018-08-11 18:24:55 +02:00
Goffi
a3ed513ee1 install (setup.py): don't use sys.prefix for locales 2018-07-08 18:37:36 +02:00
Goffi
a84634d3f8 install: fixed DBUS_FILE path 2018-07-04 07:58:24 +02:00
Goffi
ea9583aea0 core: some more line limiting 2018-06-27 07:23:13 +02:00
Goffi
d36f76e7d3 install (setup): added python-dateutil as dependency (was already a dependency of Wokkel) 2018-06-21 01:21:44 +02:00
Goffi
a9e368cf6a setup, tools(utils): fixed versioning in setup and getRepositoryData 2018-04-06 16:47:40 +02:00
Goffi
38d303f09d setup: use NAME to get version 2018-04-05 17:42:05 +02:00
Goffi
b5a4d8c58d setup: use scm version 2018-04-05 12:49:25 +02:00
Goffi
ac954f378d setup: version is now set in SAT/VERSION, sat is not imported anymore in setup 2018-04-05 10:41:08 +02:00
Goffi
69faabb405 setup: minimal version of sat_tmp is 0.0.3 2018-04-04 08:45:09 +02:00
Goffi
14c817fa2c setup, constant: use https address in APP_URL, and keep pypi NAME separated from constants 2018-04-03 09:04:55 +02:00
Goffi
b92101dabc setup: use constants to get name and version 2018-04-03 08:00:42 +02:00
Goffi
80ef13612b core, setup: huge cleaning:
- moved directories from src and frontends/src to sat and sat_frontends, which is the recommanded naming convention
- move twisted directory to root
- removed all hacks from setup.py, and added missing dependencies, it is now clean
- use https URL for website in setup.py
- removed "Environment :: X11 Applications :: GTK", as wix is deprecated and removed
- renamed sat.sh to sat and fixed its installation
- added python_requires to specify Python version needed
- replaced glib2reactor which use deprecated code by gtk3reactor

sat can now be installed directly from virtualenv without using --system-site-packages anymore \o/
2018-04-02 19:44:50 +02:00
Goffi
87690d88ce core, template (filters): added pygments as a dependency + new highlight filter to use it. 2017-11-30 21:00:24 +01:00
Goffi
a5f28ef7dd tmp: removed sat.tmp hierarchy and fixed references to it as it is now an independant sat_tmp repository 2017-11-03 14:19:10 +01:00
Goffi
c6ea8e7dbe core (tools/common/template): i18n support
- babel has been added as a new dependencies, and should replace gettext in core in the future
    - added i18n support in template rendered
    - current locale is available as babel Locale in templates through "locale" variable
    - locales can be changed before rendering using setLocale
    - for now, all locales translations are loaded on init, and stay in cache. A more complex cache system may be needed in the future (e.g. keeping only most used and load others from files when needed).
2017-05-21 15:59:47 +02:00
Goffi
d7d5ca1d18 plugin invitations: first draft:
/!\ new dependency: shortuuid
Plugin invitations allows to invite somebody without XMPP account, using an unique identifier.
The various arguments are explained in the docstring.
2017-03-12 19:35:36 +01:00
Goffi
cd5e05bd1f installation (setup.py): changed version to 0.6.1.1 so new archive with fixed MANIFEST can be uploaded on pypi 2016-07-13 11:01:07 +02:00
Goffi
ec8a5fbffb version update (0.6.1) 2016-07-12 23:30:13 +02:00
Goffi
effcee07bf installation: updated urwid-satext minimal version to 0.6.1 + added service_identity which is needed by Twisted for proper TLS check 2016-07-12 23:29:43 +02:00
Goffi
0b52799489 core (installation): minor comment in setup.py 2016-04-17 18:07:55 +02:00
Goffi
06663b9571 core: removed pyfeed and xe dependencies:
pyfeed and xe where still used only for date format handling, and there is already dateutil which is a dependency of Wokkel.
    Furthermore pyfeed and xe are still not on pypi, causing troubles for installation with pip
2016-04-17 17:08:12 +02:00
Goffi
b6be98a193 setup: added sat.tools.common in packages 2016-03-25 14:37:49 +01:00
Goffi
aa50a1e807 install: minimum Twisted version is now 15.2.0 as sendmail need username argument 2016-03-09 11:16:24 +01:00
Goffi
0927253b7e install: removed "nox" option as there is no more X dependency since WIX has been deprecated 2016-02-10 12:48:19 +01:00
souliane
aa2b4f6e67 test, setup: requires lxml >= 3.1.0 (fixes html cleaning issue) 2014-08-21 20:45:24 +02:00
Goffi
348be27934 copyright update 2016-01-03 16:28:30 +01:00
Goffi
0cab316424 updated setup.py version 2015-12-02 13:20:08 +01:00
souliane
9295bba396 setup: wx is not more a dependency since wix has been deprecated 2015-08-20 10:22:46 +02:00
souliane
d2c822fb95 add PyOpenSSL to the dependency list 2015-07-21 11:56:53 +02:00
Goffi
fbec02d396 2015 copyright dates update 2015-03-30 10:26:26 +02:00
Goffi
6760c927d3 merged branch frontends_multi_profiles 2015-03-18 10:52:28 +01:00
souliane
3ee9f140df remove remaining references to Wix 2015-01-24 16:12:50 +01:00
souliane
f09b837c36 setup: fixes to install sat.tmp.wokkel 2014-12-25 12:26:49 +01:00
souliane
37d1cd6c22 version update 2014-09-18 11:41:52 +02:00