Merge pull request #3401 from Jamim/feature/python-3.8
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Declare support for Python 3.8
authored by David Lord · committed by GitHub · parents 42942ec, 824e548 · Browse files · 4 files·+34 added−33 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+34 added−33 removed
- other:+34 added−33 removed
Provenance
- Commit
af5743f- Tree
fe31b7a- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
42942ec- Parent 2
824e548
4 files changed+34 added−33 removed
modified:.azure-pipelines.yml+22 added-24 removed
3 unmodified lines45678910891012111213141617181915161718212219202421222623242526282728302930323132333536373435363739403839404142432 unmodified lines464748495150515253545755565758596061646263646566676871697071727312 unmodified lines3 unmodified lines
jobs: - job: Flask variables: vmImage: ubuntu-latest python.version: '3.7' python.architecture: 'x64' vmImage: 'ubuntu-latest' python.version: '3.8' TOXENV: 'py,coverage-ci' publish.test.results: 'true' hasTestResults: 'true'
strategy: matrix: Python37Linux: python.version: '3.7' Python37Windows: python.version: '3.7' Python 3.8 Linux: vmImage: 'ubuntu-latest' Python 3.8 Windows: vmImage: 'windows-latest' Python37Mac: python.version: '3.7' Python 3.8 Mac: vmImage: 'macos-latest' Pypy3Linux: PyPy 3 Linux: python.version: 'pypy3' Python36Linux: Python 3.7 Linux: python.version: '3.7' Python 3.6 Linux: python.version: '3.6' Python35Linux: Python 3.5 Linux: python.version: '3.5' Python27Linux: Python 2.7 Linux: python.version: '2.7' Python27Windows: Python 2.7 Windows: python.version: '2.7' vmImage: 'windows-latest' DocsHtml: TOXENV: 'docs-html' publish.test.results: 'false' Docs: TOXENV: 'docs' hasTestResults: 'false' Style: TOXENV: stylecheck publish.test.results: 'false' TOXENV: 'style' hasTestResults: 'false' VersionRange: TOXENV: 'devel,lowest,coverage-ci'
pool:2 unmodified lines steps: - task: UsePythonVersion@0 inputs: versionSpec: $(python.version) architecture: $(python.architecture) displayName: Use Python $(python.version)
- script: pip --disable-pip-version-check install -U tox displayName: Install tox
- script: tox -- --junitxml=test-results.xml tests examples - script: tox -s false -- --junitxml=test-results.xml tests examples displayName: Run tox
- task: PublishTestResults@2 inputs: testResultsFiles: test-results.xml testRunTitle: $(Agent.JobName) condition: eq(variables['publish.test.results'], 'true') condition: eq(variables['hasTestResults'], 'true') displayName: Publish test results
- task: PublishCodeCoverageResults@1 inputs: codeCoverageTool: Cobertura summaryFileLocation: coverage.xml condition: eq(variables['publish.test.results'], 'true') condition: eq(variables['hasTestResults'], 'true') displayName: Publish coverage results
# Test on the nightly version of Python. # Use a container since Azure Pipelines may not have the latest build.12 unmodified linesmodified:CONTRIBUTING.rst+1 added
162 unmodified lines163 164 Build the docs in the ``docs`` directory using Sphinx::165 166 cd docs167+ pip install -r requirements.txt168 make html169 170 Open ``_build/html/index.html`` in your browser to view the docs.171 25 unmodified linesmodified:setup.py+3 added
38 unmodified lines39 "Programming Language :: Python :: 3",40 "Programming Language :: Python :: 3.5",41 "Programming Language :: Python :: 3.6",42 "Programming Language :: Python :: 3.7",43+ "Programming Language :: Python :: 3.8",44+ "Programming Language :: Python :: Implementation :: CPython",45+ "Programming Language :: Python :: Implementation :: PyPy",46 "Topic :: Internet :: WWW/HTTP :: Dynamic Content",47 "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",48 "Topic :: Software Development :: Libraries :: Application Frameworks",49 "Topic :: Software Development :: Libraries :: Python Modules",31 unmodified linesmodified:tox.ini+8 added-9 removed
1 [tox]2 envlist =3- py{37,36,35,27,py3,py}4- py37-{simplejson,devel,lowest}5- docs-html3+ py{38,37,36,35,27,py3,py}4+ py38-{simplejson,devel,lowest}5+ docs6 coverage7+skip_missing_interpreters = true8 9 [testenv]10 passenv = LANG11 deps =2 unmodified lines14 greenlet15 blinker16 python-dotenv17 17- lowest: Werkzeug==0.1518+ lowest: Werkzeug==0.15.519 lowest: Jinja2==2.1020 lowest: itsdangerous==0.2421 lowest: Click==5.122 16 unmodified lines39 [testenv:nightly]40 # courtesy Python nightly test, don't fail the build in CI41 ignore_outcome = true42 commands =42- pip install -q -e examples/tutorial[test]43- pip install -q -e examples/javascript[test]44- coverage run -p -m pytest --tb=short -Werror --junitxml=test-results.xml {posargs:tests examples}43+ coverage run -p -m pytest --tb=short -Werror --junitxml=test-results.xml tests44 46-[testenv:stylecheck]45+[testenv:style]46 deps = pre-commit47 skip_install = true48 commands = pre-commit run --all-files --show-diff-on-failure49 51-[testenv:docs-html]50+[testenv:docs]51 deps =52 -r docs/requirements.txt53 commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html54 15 unmodified lines