mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
982508d30f
This patch does a lot. - Ditch sphinx in favor of hugo. This gives us complete control of the layout and presentation of our docs. Henceforth, docs will be hosted on our website rather than ReadTheDocs. - Create a simple, clean doc layout and theme. - Remove large parts of the documentaion. I've ditched anything that was a) woefully out of date, b) too detailed, or c) too hard to maintain in the long term. - Huge updates to the docs themselves: completely rewrite addons documentation, add docs for core concepts like commands and options, and revise and tweak a lot of the existing docs. With this patch, we're also changing the way we publish and maintain the docs. From now on, we don't publish docs for every release. Instead, the website will contain ONE set of docs for each major release. The online docs will be updated if needed as minor releases are made. Docs are free to improve during minor releases, but anything that changes behaviour sufficiently to require a doc change warrants a new major release. This also leaves us free to progressively update and improve docs out of step with our release cadence. With this new scheme, I feel CI over the docs is less important. I've removed it for now, but won't object if someone wants to add it back in.
59 lines
1.5 KiB
INI
59 lines
1.5 KiB
INI
[tox]
|
|
envlist = py35, py36, lint
|
|
skipsdist = True
|
|
toxworkdir={env:TOX_WORK_DIR:.tox}
|
|
|
|
[testenv]
|
|
deps =
|
|
{env:CI_DEPS:}
|
|
-rrequirements.txt
|
|
passenv = CODECOV_TOKEN CI CI_* TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* SNAPSHOT_* OPENSSL RTOOL_*
|
|
setenv = HOME = {envtmpdir}
|
|
commands =
|
|
mitmdump --version
|
|
pytest --timeout 60 --cov-report='' \
|
|
--cov=mitmproxy --cov=pathod \
|
|
--full-cov=mitmproxy/ --full-cov=pathod/ \
|
|
{posargs}
|
|
{env:CI_COMMANDS:python -c ""}
|
|
|
|
[testenv:lint]
|
|
commands =
|
|
mitmdump --version
|
|
flake8 --jobs 8 mitmproxy pathod examples test release
|
|
python test/filename_matching.py
|
|
rstcheck README.rst
|
|
mypy --ignore-missing-imports ./mitmproxy ./pathod
|
|
mypy --ignore-missing-imports --follow-imports=skip ./examples/simple/ ./examples/pathod/ ./examples/complex/
|
|
|
|
[testenv:individual_coverage]
|
|
deps =
|
|
-rrequirements.txt
|
|
commands =
|
|
python test/individual_coverage.py
|
|
|
|
[testenv:wheel]
|
|
recreate = True
|
|
deps =
|
|
commands =
|
|
python setup.py -q bdist_wheel --dist-dir release/dist
|
|
pip install {posargs} release/dist/mitmproxy-{env:VERSION:}-py3-none-any.whl
|
|
# skip `mitmproxy --version` if SKIP_MITMPROXY is defined.
|
|
{env:SKIP_MITMPROXY:mitmproxy --version}
|
|
mitmdump --version
|
|
mitmweb --version
|
|
pathod --version
|
|
pathoc --version
|
|
|
|
[testenv:rtool]
|
|
passenv = SKIP_MITMPROXY SNAPSHOT_HOST SNAPSHOT_PORT SNAPSHOT_USER SNAPSHOT_PASS RTOOL_KEY
|
|
deps =
|
|
-rrequirements.txt
|
|
pyinstaller==3.3.1
|
|
twine==1.9.1
|
|
pysftp==0.2.9
|
|
|
|
commands =
|
|
mitmdump --version
|
|
python ./release/rtool.py {posargs}
|