Commit Graph

93 Commits

Author SHA1 Message Date
Raoul Snyman 50fcc9b5d5 Add zeroconf to AppVeyor and setup.py, broadcast on all valid interfaces, quit the thread properly 2019-07-02 13:29:42 -07:00
Bastian Germann 7288336ad4 Replace native test runner with pytest 2019-05-25 16:43:43 +02:00
Bastian Germann df538b1d70 Remove nose2 references 2019-05-16 00:36:16 +02:00
Bastian Germann 685e46f623 Synchronize setup.py with check_dependencies 2019-05-15 22:46:10 +02:00
Bastian Germann 2ed038ee2e Make PyMuPDF mandatory for tests 2019-05-02 12:35:29 +02:00
Bastian Germann a610133919 Introduce PyMuPDF as additional PDF controller 2019-05-01 10:39:01 +02:00
Bastian Germann be1a398f7b License change to GPL-3.0-or-later 2019-04-13 15:00:22 +02:00
Bastian Germann b5065ac3ca Make pylint happy 2019-04-02 19:09:18 +02:00
Bastian Germann fa6f4d0c1f Specify platform deps with PEP508 2019-04-02 01:34:53 +02:00
Bastian Germann 61dc9f69da Correct setuptools requires 2019-04-02 00:44:08 +02:00
Phill 98f7c28d65 Add proxy settings to ftw. Option to skip sample data
bzr-revno: 2853
2019-03-28 22:03:32 +01:00
Raoul Snyman 461ffeee3d Add xlib to test_requires for Linux 2019-03-26 09:55:02 -07:00
Philip Ridout 670c06db60 Add proxy settings button to FTW, ftw refactors, a few fixes! 2019-02-27 21:12:16 +00:00
Tomas Groth fa4ec96054 Updated to 2019 in copyright headers 2019-02-14 16:09:09 +01:00
Tomas Groth e7526f1e59 merge trunk 2018-10-30 20:46:55 +01:00
Bastian Germann 53d93bff5b Do not export any tests* module, but include them only in sdist
bzr-revno: 2840
2018-10-28 20:46:42 +00:00
Bastian Germann 820476767f Do not export any tests* module 2018-10-27 23:31:14 +02:00
Bastian Germann 6aa998edd0 Replace PyICU with PyQt's QCollator
Use QCollator as new collator to get rid of the PyICU dependency.
Simplify the natural sorting with its numeric mode.
Simplify one test that is heavily dependent on implementation.
Run one sorting test on macOS which was disabled.
2018-10-27 12:50:15 +02:00
Tomas Groth 0e24bf9017 Update dependencies to fit webengine 2018-10-25 21:02:49 +02:00
Philip Ridout a867c54b94 HEAD 2018-10-24 22:02:06 +01:00
Bastian Germann 0484d0bf23 Move the openlp.__main__ module to run_openlp 2018-10-16 22:07:00 +02:00
Bastian Germann f0fb9e773d no mandatory icu for tests 2018-10-16 09:09:18 +02:00
Bastian Germann ba01cd35e1 Optionally depend on launchpadlib 2018-10-13 00:11:04 +02:00
Bastian Germann e124229040 Try to fix CI 2018-10-11 20:25:53 +02:00
Bastian Germann 5f23d3adea Use appdirs instead of pyxdg
appdirs is used for all systems except Windows.
It has Windows support, so it could be used there as well.
2018-10-08 01:34:00 +02:00
Bastian Germann ce6cb838da pymediainfo's version 2.2 supports new XML 2018-10-07 18:53:10 +02:00
Bastian Germann d1e1975394 Use upstream pymediainfo
Current pymediainfo versions load a DLL/so. Use a very thin
wrapper to make sure that the executable is used if the DLL
is not available.
2018-10-07 02:24:29 +02:00
Bastian Germann 9f6b03047b Support running ./setup.py test
setuptools can run tests. Use nose2 to run the tests.
If it is not installed on your system, it is downloaded
and temporarily used.
2018-10-06 22:49:13 +02:00
Bastian Germann 6edd85146d test_get_locale_key needs PyICU 2018-10-06 21:04:09 +02:00
Bastian Germann 1574ecd4f3 Add the optional pyxdg module 2018-10-05 09:26:18 +02:00
Bastian Germann 41bd1d9bb8 Raise minimum Python version to 3.6 2018-10-05 09:24:47 +02:00
Bastian Germann 0b1ba4ba6d Fix setup's requirements
Move the startup script so that its name does not
conflict with the openlp namespace.
Codify scripts/check_dependencies.py in setup.py.
The name on PyPI is used to declare the dependencies.
This is a first step to enable OpenLP distribution via
PyPI.

The differences are:
* pyenchant and pyodbc are declared optional because
  they are optional in the code and pyenchant is not
  maintained anymore.
* pyenchant's required version is set to 1.6 not only
  for windows. This version is quite old.
* The 5.0 version checks for PyQt5 are left out because
  this is the first version anyway.
* LibreOffice's uno does not exist on PyPI
* sqlite3, asyncio and mock are available in Python
  >= 3.4 anyway and not noted as dependencies.
* six is not defined as dependency because the code
  should be py3 only.

The situation with regards to platform wheels being
published looks quite promising.
As Linux users typically install via their package
manager wheel availability is not as import for them
as for Win or Mac users.
Both of them are available for most dependencies with
native extensions.
The few exceptions:
* PyICU does not publish any platform wheels.
  More info: https://github.com/ovalhub/pyicu/issues/79
* mysql-connector-python does not publish win32 wheels.
* pyenchant does not publish win64 wheels.

The wheels are typically available for Py=2.7 and Py>=3.4,
although some (mysql-connector-python, PyQt5, pywin32)
need Py>=3.5
2018-10-03 01:19:49 +02:00
Raoul Snyman aa3b0c4bcc HEAD 2018-10-01 21:39:42 -07:00
Raoul Snyman be4795fba0 Added merge proposal script; updated version style again 2018-08-21 22:04:11 -07:00
Raoul Snyman a6f8909d72 Move to using a PEP 440 compliant version number 2018-08-21 21:05:22 -07:00
Tim Bentley 41f35f52e3 End of 2017 2017-12-29 09:15:48 +00:00
Tim Bentley 74ca42e220 Yet another year goes by 2016-12-31 11:01:36 +00:00
Tim Bentley 6729ea9d19 move file 2016-04-05 19:33:50 +01:00
Tim Bentley 3a8b068af8 Year older 2015-12-31 22:46:06 +00:00
Phill Ridout 051db41e20 removed python3 string 2015-01-22 17:42:29 +00:00
Raoul Snyman ffcea13021 Updated the copyright. 2015-01-18 15:39:21 +02:00
Tim Bentley f3c09af379 Years go by 2014-12-31 10:58:13 +00:00
Raoul Snyman 551a10d311 Added and updated tests:
- Refactored FirstTimeForm to use an initalise() method, in order to be more testable
- Rewrote FTW tests to test initialise()
- Refactored TestMixin get_application() to setup_application() since it doesn't actually return an application object
- Refactored ListPreviewWidget to make it more testable
- Wrote tests for ListPreviewWidget
- Refactored FormattingTagsForm somewhat
- Updated FormattingTagsForm tests

Updated setup.py with some Python3 changes.
2014-10-22 22:43:05 +02:00
Raoul Snyman 9d572fd4c4 The code in setup.py was written at around the time Noah got off the ark. Python 3 does not have a "cmp" function, nor does sorted() have a "cmp" parameter. Lose the extras that we don't need any more. 2014-10-09 23:03:04 +02:00
Tim Bentley 3f889e08d4 Fix setup.py 2014-07-02 20:34:28 +01:00
Tim Bentley 7d2f8fa6cd Fix setup.py 2014-07-01 22:10:26 +01:00
Tim Bentley c38c576f94 test fixes 2014-04-02 19:51:21 +01:00
Tim Bentley 9610be5cd0 Fix up comments 2014-03-17 19:05:55 +00:00
Tim Bentley 6d8b5cadb4 Lib cleanup and 2014 2013-12-24 08:56:50 +00:00
Jeffrey S. Smith 74e5bcf500 Update helper scripts to Python 3 2013-09-06 20:40:48 -05:00