Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 31 additions & 28 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,34 +33,37 @@ tasks:
in:
$let:
tests:
- image: 'python:3.13'
name: python:3.13 tests
command:
- /bin/bash
- '--login'
- '-c'
- >-
git clone ${repo.git_url} repo &&
cd repo &&
git config advice.detachedHead false &&
git checkout ${repo.ref} &&
pip install -e . &&
pip install pytest pytest-mock "pytest-asyncio>=0.18.0,<1.2" flake8 asyncmock &&
pytest
- image: 'python:3.13'
name: flake
command:
- /bin/bash
- '--login'
- '-c'
- >-
git clone ${repo.git_url} repo &&
cd repo &&
git config advice.detachedHead false &&
git checkout ${repo.ref} &&
pip install -e . &&
pip install flake8 &&
flake8 tcadmin
$flatten:
$map: ['3.13', '3.14']
each(version):
- image: 'python:${version}'
name: 'python:${version} tests'
command:
- /bin/bash
- '--login'
- '-c'
- >-
git clone ${repo.git_url} repo &&
cd repo &&
git config advice.detachedHead false &&
git checkout ${repo.ref} &&
pip install -e . &&
pip install pytest pytest-mock "pytest-asyncio>=0.18.0,<1.2" flake8 asyncmock &&
pytest
- image: 'python:${version}'
name: flake
command:
- /bin/bash
- '--login'
- '-c'
- >-
git clone ${repo.git_url} repo &&
cd repo &&
git config advice.detachedHead false &&
git checkout ${repo.ref} &&
pip install -e . &&
pip install flake8 &&
flake8 tcadmin
in:
$let:
test_tasks:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
],
entry_points={
"console_scripts": [
Expand Down
6 changes: 1 addition & 5 deletions tcadmin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ def run_pre_check(name):
def run_async(fn):
@functools.wraps(fn)
def wrap(*args, **kwargs):
try:
loop = asyncio.get_event_loop()
return loop.run_until_complete(fn(*args, **kwargs))
finally:
loop.close()
return asyncio.run(fn(*args, **kwargs))

return wrap

Expand Down