summaryrefslogtreecommitdiffstats
path: root/tox.ini
Commit message (Collapse)AuthorAge
* [Tests] Remove reference to Twisted TrialCalum Lind2022-03-02
| | | | | With the move to pytest remove remainings documentation or comments that refer to Trial.
* Remove all Python 2 supportdeluge-2.1.0.dev0DjLegolas2021-12-28
| | | | | | | | | * Removed all __future__ imports from code * Removed all six dependencies * Removed all future_builtins imports * Removed all Python 2 related code Closes: deluge-torrent/deluge#325
* [CI/CD] Add Travis windows buildCalum Lind2021-02-23
| | | | | | | | | * Added APPDATA to tox passenv so it is available to common module. * Fixed windows path issue in httpdownloader tests * Skipped torrentmanager test due to the following error from loading a Linux pickled state file with a different line ending. ModuleNotFoundError: No module named 'deluge.core.torrentmanager\r' * Removed appveyor build
* [Tests] Add pytest markers to tox.inibendikro2020-04-23
| | | | Remove pytest warnings due to unknown markers
* [Tests] Fix tox, pytest and travis issuesCalum Lind2020-04-12
| | | | | | | | | | * Error occurring with Pytest 5.4 so pin to below that version. * Fix minor issues with Travis config. * Use full command-switches for pytest in tox config. * Remove pin for pip as issue with pip-wheel-metadata was fixed in 19.3 * Remove tox-venv as causing issues of incompatible packages installed. The latest versions of the virtualenv package should handle these duties.
* [Docs] Add spellchecking with pyenchantCalum Lind2019-06-15
| | | | | | | | | - Use sphinxcontrib.spelling with custom wordlist. - Skip the checking of the modules documents as they raise false-positives. - Add a setup.py spellcheck_docs command. - Fix spelling and other issues. - Add a doc favicon.
* [Docs] Cleanup changelog and docsCalum Lind2019-06-06
|
* [Tests] Remove python2 from tox configCalum Lind2019-06-06
|
* [Appveyor] Switch to Python 3.6Calum Lind2019-05-23
| | | | | | | | - Change build from Python 2.7 to 3.6 64-bit. - Specify py36 for tox since using py3 will choose latest py3 e.g. 3.7! - Use python 3.6 libtorrent.pyd build - Use pre-installed OpenSSL 1.1 (matches libtorrent build) - Add python version output to tox.ini for debugging.
* [Docs] Updates and fixes to build on Python 3Calum Lind2019-05-21
| | | | | | | | | | | - Updates to the sphinx conf - Applied Mock fixes to build on Python 3. - Group patches at bottom of conf file. - Use just a major.minor for version. - Specify Sphinx 2.0 version requirement. - Move requirements.txt to docs dir. - Add readthedocs config - Fix docstring code block rst formatting issue.
* [Tox] Pin pip version to fix PEP517 issuesCalum Lind2019-05-03
| | | | | | | | | | | * Using pyproject.toml for black config pip version 19.1 errors out about using editable install with pyproject.toml. Workaround is to not use pip 19.1 in tox. * Pin to 18.1 to avoid pip-wheel-metadata-folder creation Ref: - https://github.com/pypa/pip/issues/6434 - https://github.com/pypa/pip/issues/6213
* Cleanup tox configurationCalum Lind2018-11-02
| | | | | | | | | | | | | | | | | | | There were issues with dependencies and tox environments under Python 3 so refactored the tox configuration to be more consistent and clearer. - Moved travis to default to Python 3 for linting and tests. - Fixed missing mock for cairo in sphinx config. - Collated the base deps sections to improve readability. - Added PYTEST_ADDOPTS env to override pytest verbosity in just tox tests as this was a common option being used. - Renamed env 'testcoverage' to the more concise 'coverage' and moved html creation under single env as handy to have this output as well as report. - Cleaned up the isort config for gtk3. - Added `bad-continuation` to pylint config as conflcts with black formatting. - Fix isort issue with bbfreeze script. This will likely be removed in future so just skip sorting it.
* [Docs] Move apidoc command to Sphinx configCalum Lind2018-11-02
| | | | | | | | | The apidoc modules were not being generated on ReadTheDocs because there is no way to run sphinx-apidoc manually. Moved the running of sphinx-apidoc into conf.py. Added zope.interface minimum version to fix Readthedocs warning.
* [Docs] Fix build errors getting Deluge versionCalum Lind2018-11-01
| | | | | | | | | | The use of pkg_resource.require caused an unwanted requirements lookup that errored out the sphinx build when no dependencies are installed. This is fixed by switching to pkg_resources.get_distribution. Also changed the tox docs env to not install Deluge as the setup.py now contains install_requires which is unwanted.
* [Docs] Reorganise and add sections from wikiCalum Lind2018-11-01
| | | | | | | | | | | | | | | | | | | - Change the layout and contents of docs to be better organised and follow ideas from: https://www.divio.com/blog/documentation/ - Use markdown for non-technical documents to speed up writing. - Added new sections and imported documents from Trac wiki. Build fixes: - Added a patch to fix recommonmark 0.4 and doc referencing: https://github.com/rtfd/recommonmark/issues/93 - Set docs build in tox to Py2.7 since there are problems with autodoc mocking multiple inheritance on Python 3 resulting in metaclass errors. - Supressed warning about `modules.rst` not in the toctree by creating a static `modules.rst` with `:orphan:` file directive and add to git. Also skip creating this toc file with sphinx-apidoc in setup and tox. - Simplified finding exported RPC and JSON API methods by adding an autodoc custom class directive. Removed unneeded __rpcapi.py.
* Cleanup Tox and CI configsCalum Lind2018-10-10
| | | | | | | - Use the apt addon for installing libtorrent package. - Start the py3 test sooner as it is slow to complete. - Add if conditions for gtkui test dependencies. - Remove Appveyor tests that are taken care of by Travis.
* Update tox and CI for Python 3Calum Lind2018-10-10
|
* [Tests] Remove slimit dependencyCalum Lind2018-10-08
| | | | The changes to the minify script mean we no longer require slimit.
* [Tests] Lint with pre-commitCalum Lind2018-10-05
| | | | | | - Add lint section to tox. - Replace flake8 with lint on Travis and remove commented out sections. - Remove flake8 from appveyor to reduce sequential testing time.
* [Tests] Update tox and CI configsCalum Lind2018-10-05
| | | | | | | | | | | | | | | | | | | | | - Add new requirements files to make it easier to install deps. - Tox changes - Update tox to use new requirements files. - Tweak heading styles. - Add development environment command `devenv`. - Remove testenv command as it would run on devenv creation. - Travis changes - Now uses xenial as trusty is very old now. - Trial run disabled to speed up tests. - Add tox-venv for Python 3 support. - Only install testssl if running security tests. - Appveyor - Add tox-venv for Python 3 support. - Use requirements file for non-tox. - Remove trial run to speed up testing.
* [Docs] Add markdown supportCalum Lind2018-10-04
| | | | | | | | | - Use recommonmark to enable use of markdown files in docs. - Fix theme not specified - Remove unused spelling module. - Cleanup mocking modules in conf so building docs requires only Sphinx. - Simplify tox section, including use of requirements-docs file. Added slimit dependency for sdist-ing deluge package.
* [Lint] Use Black to auto-format codeCalum Lind2018-10-03
| | | | | | | | | | | | | | | | | The move to using auto-formatter makes it easier to read, submit and speeds up development time. https://github.com/ambv/black/ Although I would prefer 79 chars, the default line length of 88 chars used by black suffices. The flake8 line length remains at 120 chars since black does not touch comments or docstrings and this will require another round of fixes. The only black setting that is not standard is the use of double-quotes for strings so disabled any formatting of these. Note however that flake8 will still flag usage of double-quotes. I may change my mind on double vs single quotes but for now leave them. A new pyproject.toml file has been created for black configuration.
* Fix travis docs failing with Sphinx 1.8.0Calum Lind2018-09-14
| | | | | | Sphinx pinned to 1.7 See sphinx-doc/sphinx#5417
* [Tests] Add pytest-twisted to tox depsCalum Lind2018-09-14
|
* [WebUI][Daemon] Enhance TLS SecurityDjLegolas2018-09-06
| | | | | | | | | | | | | | | | | This applies the following for both WebUI and Daemon: 1. Raised minimal TLS version to TLSv1.2 2. Added specific cipher suite list 3. Added support for ECDSA auth keys 4. Added support for ECDHE key exchange algorithm We disabled the ability to perform TLS/SSL renegotiation and therefore will prevent the clients from renegotiating, which can be exploit for DoS attacks. New security tests now will be skipped when running `pydef` and `trial` testenvs. To run the test, use the testenv `security` or add the environment variable `SECURITY_TESTS` before running the tests. Also should only run when adding to the commit message the string `SECURITY_TEST`.
* Fix the docs run failing on TravisCalum Lind2018-07-28
| | | | | | | | | | Likely that the deprecation warning from cryptography is causing the setup.py sphinx build command to return an error so the tox/travis job is marked as failing. Changing to calling the sphinx-build command directly solves this. Also updated the sphinx config for built-in napoleon and faster builds using jobs option.
* Make Tox Multi-OS FriendlyUnknown2018-06-02
|
* Fix files to pass new Flake8 checkersCalum Lind2018-06-01
| | | | | | | | | | | Some new flake8 checkers were added so fix these new warnings and any issues uncovered. Use add-trailing-comma to fix missing trailing commas. It does not format it as well as I would like however it was fast to change and helps with git changes in future. Removed pylint from tox due to large number of warnings.
* [Tox] Use platform independant toxworkdir instead of PWDCalum Lind2018-05-20
| | | | | | The use of `{env:PWD}` is not available on Windows so switch to `{toxworkdir}` which is the directory where virtual environments are created and sub directories for packaging reside.
* Cleanup pytest config in toxCalum Lind2017-12-17
| | | | | | | | Config values are either wrong, unused or default is better. Disable logging of deluge log output in testing. Newer versions of pytest now use `pytest` cmd so rename.
* Fix tox config to install latest pip packagesCalum Lind2017-12-16
| | | | Trial changed command in latest versions of twisted
* Replace pep8 with pycodestyle in tox.iniCalum Lind2017-06-07
|
* [Tests] Unpin isort as 4.2.13 contains fixesCalum Lind2017-06-07
|
* [Core] Replace usage of deprecated new.classobjCalum Lind2017-06-05
| | | | * type is new module to use
* [Docs] Remove chardet mock to fix requests version checkCalum Lind2017-06-05
| | | | * chardet is an easily installed pure python module so doesn't need mocking.
* [Tests] Specify module versions to fix tox testsCalum Lind2017-06-05
|
* Add python 3 section to toxCalum Lind2017-03-16
|
* [Tox] Twisted version pin to 16.6Calum Lind2017-02-14
| | | | | | | | | * There is a problem with Twisted 17 and the setup for travis and tox using site-packages with an old openssh package. AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1' * The simplest workaround for now is to pin Twisted to 16.6.
* [Tox] Remove py26 and add lt version output to trialCalum Lind2017-01-26
|
* [Setup] Add a CleanDocs classCalum Lind2016-11-28
|
* [Tests] Replace isort test with flake8-isortCalum Lind2016-11-25
| | | | * Move the known_third_party back to setup.cfg with comments.
* [WebUI] Log correct http address if listening on IPv6bendikro2016-11-22
|
* [Lint] Add flake8-quotes to tox and fix bad quotesCalum Lind2016-11-04
|
* [Tests] Remove redundant pillow dep from toxbendikro2016-11-03
|
* [Lint] Fix couple of pylint complaintsbendikro2016-11-03
|
* [Tests] Add pillow dep so pylint parses Win32IconImagePluginCalum Lind2016-11-03
|
* [Tests] Fix for isort config package handlingbendikro2016-11-01
| | | | * Force gtk modules to be third_party for tox/travis testing.
* [UI] Add gettext.ngettext to __builtin__.__dict__bendikro2016-10-30
| | | | | Handle plurality with getttext using ngettext. Added to __builtin__.__dict__ as _n
* [Docs] Clean module sources dir before generating docsbendikro2016-10-21
| | | | | If old and outdated sources are present in docs/sources/modules, python setup.py build_docs will fail to generate docs.
* [Core] Change deprecated lt.version to lt.__version__Calum Lind2016-10-17
|