-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into pr-easyinstall
- Loading branch information
Showing
63 changed files
with
867 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 42.0.2 | ||
current_version = 45.1.0 | ||
commit = True | ||
tag = True | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[flake8] | ||
exclude= | ||
.tox | ||
setuptools/_vendor, | ||
pkg_resources/_vendor | ||
ignore = | ||
# W503 violates spec https://github.com/PyCQA/pycodestyle/issues/513 | ||
W503 | ||
# W504 has issues https://github.com/OCA/maintainer-quality-tools/issues/545 | ||
W504 | ||
setuptools/site-patch.py F821 | ||
setuptools/py*compat.py F811 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
name: >- | ||
👷 | ||
Test suite | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: 1 0 * * * # Run daily at 0:01 UTC | ||
|
||
jobs: | ||
tests: | ||
name: >- | ||
${{ matrix.python-version }} | ||
/ | ||
${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
# max-parallel: 5 | ||
matrix: | ||
python-version: | ||
- 3.8 | ||
- pypy3 | ||
- 3.7 | ||
- 3.6 | ||
- 3.5 | ||
os: | ||
- ubuntu-latest | ||
- ubuntu-16.04 | ||
- macOS-latest | ||
# - windows-2019 | ||
# - windows-2016 | ||
|
||
env: | ||
NETWORK_REQUIRED: 1 | ||
TOX_PARALLEL_NO_SPINNER: 1 | ||
TOXENV: python | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1.1.1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Log Python version | ||
run: >- | ||
python --version | ||
- name: Log Python location | ||
run: >- | ||
which python | ||
- name: Log Python env | ||
run: >- | ||
python -m sysconfig | ||
- name: Pip cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}-${{ hashFiles('tests/requirements.txt') }}-${{ hashFiles('tox.ini') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
${{ runner.os }}- | ||
- name: Upgrade pip/setuptools/wheel | ||
run: >- | ||
python | ||
-m pip install | ||
--disable-pip-version-check | ||
--upgrade | ||
pip setuptools wheel | ||
- name: Install tox | ||
run: >- | ||
python -m pip install --upgrade tox tox-venv | ||
- name: Log installed dists | ||
run: >- | ||
python -m pip freeze --all | ||
- name: Adjust TOXENV for PyPy | ||
if: startsWith(matrix.python-version, 'pypy') | ||
run: >- | ||
echo "::set-env name=TOXENV::${{ matrix.python-version }}" | ||
- name: Log env vars | ||
run: >- | ||
env | ||
- name: Verify that there's no cached Python modules in sources | ||
if: >- | ||
! startsWith(matrix.os, 'windows-') | ||
run: >- | ||
! grep pyc setuptools.egg-info/SOURCES.txt | ||
- name: 'Initialize tox envs: ${{ matrix.env.TOXENV }}' | ||
run: >- | ||
python -m | ||
tox | ||
--parallel auto | ||
--notest | ||
--skip-missing-interpreters false | ||
- name: Test with tox | ||
run: >- | ||
python -m | ||
tox | ||
--parallel auto | ||
-- | ||
--cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Create the project in Azure with: | ||
# az devops project create --name $name --organization https://dev.azure.com/$org/ --visibility public | ||
# then configure the pipelines (through web UI) | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- '*' | ||
tags: | ||
include: | ||
- '*' | ||
|
||
pool: | ||
vmimage: 'Ubuntu-18.04' | ||
|
||
variables: | ||
- group: Azure secrets | ||
|
||
stages: | ||
- stage: Test | ||
jobs: | ||
|
||
- job: 'Test' | ||
strategy: | ||
matrix: | ||
Python36: | ||
python.version: '3.6' | ||
Python38: | ||
python.version: '3.8' | ||
maxParallel: 4 | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
architecture: 'x64' | ||
|
||
- script: python -m pip install tox | ||
displayName: 'Install tox' | ||
|
||
- script: | | ||
tox -- --junit-xml=test-results.xml | ||
displayName: 'run tests' | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFiles: '**/test-results.xml' | ||
testRunTitle: 'Python $(python.version)' | ||
condition: succeededOrFailed() | ||
|
||
- stage: Publish | ||
dependsOn: Test | ||
jobs: | ||
- job: 'Publish' | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.8' | ||
architecture: 'x64' | ||
|
||
- script: python -m pip install tox | ||
displayName: 'Install tox' | ||
|
||
- script: | | ||
tox -e release | ||
env: | ||
TWINE_PASSWORD: $(PyPI-token) | ||
displayName: 'publish to PyPI' | ||
condition: contains(variables['Build.SourceBranch'], 'tags') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixed defect in _imp, introduced in 41.6.0 when the 'tests' directory is not present. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add flake8-2020 to check for misuse of sys.version or sys.version_info. |
Oops, something went wrong.