-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from Erotemic/dev/1.3.6
Dev/1.3.6
- Loading branch information
Showing
18 changed files
with
930 additions
and
150 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 |
---|---|---|
|
@@ -123,7 +123,7 @@ jobs: | |
- name: Checkout source | ||
uses: actions/[email protected] | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
uses: docker/setup-qemu-action@v3.0.0 | ||
if: runner.os == 'Linux' && matrix.arch != 'auto' | ||
with: | ||
platforms: all | ||
|
@@ -183,75 +183,75 @@ jobs: | |
arch: auto | ||
- python-version: '3.12' | ||
install-extras: tests | ||
os: windows-latest | ||
os: macOS-latest | ||
arch: auto | ||
- python-version: '3.12' | ||
install-extras: tests | ||
os: windows-latest | ||
arch: auto | ||
- python-version: '3.6' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: ubuntu-20.04 | ||
arch: auto | ||
- python-version: '3.7' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: ubuntu-latest | ||
arch: auto | ||
- python-version: '3.8' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: ubuntu-latest | ||
arch: auto | ||
- python-version: '3.9' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: ubuntu-latest | ||
arch: auto | ||
- python-version: '3.10' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: ubuntu-latest | ||
arch: auto | ||
- python-version: '3.11' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: ubuntu-latest | ||
arch: auto | ||
- python-version: '3.12' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: ubuntu-latest | ||
arch: auto | ||
- python-version: pypy-3.7 | ||
- python-version: pypy-3.9 | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: ubuntu-latest | ||
arch: auto | ||
- python-version: '3.6' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: macos-13 | ||
arch: auto | ||
- python-version: '3.7' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: macos-13 | ||
arch: auto | ||
- python-version: '3.8' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: macOS-latest | ||
arch: auto | ||
- python-version: '3.9' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: macOS-latest | ||
arch: auto | ||
- python-version: '3.10' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: macOS-latest | ||
arch: auto | ||
- python-version: '3.11' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: macOS-latest | ||
arch: auto | ||
- python-version: '3.12' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: macOS-latest | ||
arch: auto | ||
- python-version: pypy-3.7 | ||
- python-version: pypy-3.9 | ||
install-extras: tests,optional | ||
os: windows-latest | ||
os: macOS-latest | ||
arch: auto | ||
- python-version: '3.6' | ||
install-extras: tests,optional | ||
|
@@ -281,19 +281,7 @@ jobs: | |
install-extras: tests,optional | ||
os: windows-latest | ||
arch: auto | ||
- python-version: pypy-3.7 | ||
install-extras: tests,optional | ||
os: windows-latest | ||
arch: auto | ||
- python-version: pypy-3.7 | ||
install-extras: tests,optional | ||
os: windows-latest | ||
arch: auto | ||
- python-version: pypy-3.7 | ||
install-extras: tests,optional | ||
os: windows-latest | ||
arch: auto | ||
- python-version: pypy-3.7 | ||
- python-version: pypy-3.9 | ||
install-extras: tests,optional | ||
os: windows-latest | ||
arch: auto | ||
|
@@ -304,7 +292,7 @@ jobs: | |
uses: ilammy/msvc-dev-cmd@v1 | ||
if: matrix.os == 'windows-latest' | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
uses: docker/setup-qemu-action@v3.0.0 | ||
if: runner.os == 'Linux' && matrix.arch != 'auto' | ||
with: | ||
platforms: all | ||
|
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 |
---|---|---|
@@ -1,4 +0,0 @@ | ||
jaraco.windows>=3.9.1;platform_system=="Windows" | ||
|
||
# Transative dependency from pydantic>=1.9.1->inflect->jaraco.text->jaraco.windows->ubelt | ||
pydantic<2.0;platform_system=="Windows" and platform_python_implementation == "PyPy" | ||
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,18 +1,47 @@ | ||
#!/usr/bin/env python | ||
if __name__ == '__main__': | ||
import sys | ||
|
||
|
||
def get_this_script_fpath(): | ||
import pathlib | ||
try: | ||
fpath = pathlib.Path(__file__) | ||
except NameError: | ||
# This is not being run from a script, thus the developer is doing some | ||
# IPython hacking, so we will assume a path on the developer machine. | ||
fpath = pathlib.Path('~/code/ubelt/run_tests.py').expanduser() | ||
if not fpath.exists(): | ||
raise Exception( | ||
'Unable to determine the file path that this script ' | ||
'should correspond to') | ||
return fpath | ||
|
||
|
||
def main(): | ||
import pytest | ||
import sys | ||
import os | ||
|
||
repo_dpath = get_this_script_fpath().parent | ||
|
||
package_name = 'ubelt' | ||
mod_dpath = 'ubelt' | ||
test_dpath = 'tests' | ||
mod_dpath = repo_dpath / 'ubelt' | ||
test_dpath = repo_dpath / 'tests' | ||
config_fpath = repo_dpath / 'pyproject.toml' | ||
|
||
pytest_args = [ | ||
'--cov-config', 'pyproject.toml', | ||
'--cov-config', os.fspath(config_fpath), | ||
'--cov-report', 'html', | ||
'--cov-report', 'term', | ||
'--durations', '100', | ||
'--xdoctest', | ||
'--cov=' + package_name, | ||
mod_dpath, test_dpath | ||
os.fspath(mod_dpath), | ||
os.fspath(test_dpath) | ||
] | ||
pytest_args = pytest_args + sys.argv[1:] | ||
sys.exit(pytest.main(pytest_args)) | ||
ret = pytest.main(pytest_args) | ||
return ret | ||
|
||
|
||
if __name__ == '__main__': | ||
sys.exit(main()) |
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
Oops, something went wrong.