Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to responder 3.0.0.dev0, and support Python 3.13 #28

Merged
merged 3 commits into from
Jan 19, 2025
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8", "3.11", "3.12"]
python-version: ["3.8", "3.13"]

env:
OS: ${{ matrix.os }}
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Changelog

in progress
===========
- Dependencies: Updated to ``responder 3.0.0``
- Dependencies: Updated to ``docopt-ng``
- Verified support for Python 3.13

2024-05-10 0.7.1
================
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
"Environment :: Console",
Expand Down Expand Up @@ -56,7 +57,7 @@
zip_safe=False,
test_suite='vasuki.test',
install_requires=[
'docopt<1',
'docopt-ng<0.10',
'munch<5',
'ulid-py<1.2',
'hashids<1.4',
Expand All @@ -72,8 +73,7 @@
'twine<7',
],
'service': [
'responder @ git+https://github.com/kennethreitz/responder.git@e9613500daf',
'typesystem<0.3',
'responder>=3.0.0.dev0',
],
'test': [
'httpx<0.29',
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_cli_failure():
run()

# Verify output.
assert ex.match("Usage:\n vasuki")
assert ex.match("Usage:\n.*vasuki")


def test_uuid(capsys):
Expand Down
5 changes: 3 additions & 2 deletions vasuki/api.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# -*- coding: utf-8 -*-
# (c) 2019 Andreas Motl <[email protected]>
import importlib.metadata
import importlib.resources

Check warning on line 4 in vasuki/api.py

View check run for this annotation

Codecov / codecov/patch

vasuki/api.py#L4

Added line #L4 was not covered by tests
import logging
import responder
from munch import DefaultMunch, munchify
from pkg_resources import resource_filename
from vasuki.core import VasukiCommand

templates_dir = resource_filename('vasuki', 'templates')
with importlib.resources.path('vasuki', 'templates') as vasuki_templates:
templates_dir = vasuki_templates

Check warning on line 11 in vasuki/api.py

View check run for this annotation

Codecov / codecov/patch

vasuki/api.py#L10-L11

Added lines #L10 - L11 were not covered by tests
api = responder.API(static_dir=templates_dir, templates_dir=templates_dir)


Expand Down
Loading