csu 2.2.5__tar.gz → 2.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {csu-2.2.5 → csu-2.3.0}/.bumpversion.cfg +1 -1
- {csu-2.2.5 → csu-2.3.0}/.cookiecutterrc +1 -1
- {csu-2.2.5 → csu-2.3.0}/PKG-INFO +3 -3
- {csu-2.2.5 → csu-2.3.0}/README.rst +2 -2
- {csu-2.2.5 → csu-2.3.0}/pyproject.toml +1 -1
- {csu-2.2.5 → csu-2.3.0}/src/csu/__init__.py +1 -1
- {csu-2.2.5 → csu-2.3.0}/src/csu/export.py +3 -4
- {csu-2.2.5 → csu-2.3.0}/src/csu/test_logging.py +1 -1
- {csu-2.2.5 → csu-2.3.0}/src/csu/test_management.py +1 -1
- {csu-2.2.5 → csu-2.3.0}/src/csu/test_service.py +4 -5
- {csu-2.2.5 → csu-2.3.0}/src/csu/worker/admin.py +1 -2
- {csu-2.2.5 → csu-2.3.0}/src/csu/worker/engine.py +0 -1
- {csu-2.2.5 → csu-2.3.0}/src/csu.egg-info/PKG-INFO +3 -3
- {csu-2.2.5 → csu-2.3.0}/tests/test_worker.py +1 -1
- {csu-2.2.5 → csu-2.3.0}/.coveragerc +0 -0
- {csu-2.2.5 → csu-2.3.0}/.editorconfig +0 -0
- {csu-2.2.5 → csu-2.3.0}/.github/workflows/github-actions.yml +0 -0
- {csu-2.2.5 → csu-2.3.0}/.pre-commit-config.yaml +0 -0
- {csu-2.2.5 → csu-2.3.0}/.taplo.toml +0 -0
- {csu-2.2.5 → csu-2.3.0}/AUTHORS.rst +0 -0
- {csu-2.2.5 → csu-2.3.0}/CHANGELOG.rst +0 -0
- {csu-2.2.5 → csu-2.3.0}/CONTRIBUTING.rst +0 -0
- {csu-2.2.5 → csu-2.3.0}/LICENSE +0 -0
- {csu-2.2.5 → csu-2.3.0}/MANIFEST.in +0 -0
- {csu-2.2.5 → csu-2.3.0}/ci/bootstrap.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/ci/requirements.txt +0 -0
- {csu-2.2.5 → csu-2.3.0}/ci/templates/.github/workflows/github-actions.yml +0 -0
- {csu-2.2.5 → csu-2.3.0}/pytest.ini +0 -0
- {csu-2.2.5 → csu-2.3.0}/setup.cfg +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/admin.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/conf.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/consts.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/__init__.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/auth.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/fields.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/forms.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/perms.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/phonenumber.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/serializers.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/test_auth.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/test_fields.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/test_forms.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/test_phonenumber.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/test_serializers.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/drf/views.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/enums.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/env.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/exceptions.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/fixups.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/forms/__init__.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/forms/crispy.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/forms/fields.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/gettext.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/gettext_lazy.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/locale/ro/LC_MESSAGES/django.mo +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/locale/ro/LC_MESSAGES/django.po +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/logging.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/management.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/models.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/query.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/routers.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/service.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/templates/api_exception.html +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/templates/forms/widgets/opaquewidget.html +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/test_consts.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/test_env.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/test_exceptions.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/test_timezones.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/test_utils.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/test_xml.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/timezones.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/utils.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/views.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/worker/__init__.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/worker/asgi.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/worker/enums.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/worker/job.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/worker/models.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/worker/registry.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/wsgi.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu/xml.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu.egg-info/SOURCES.txt +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu.egg-info/dependency_links.txt +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu.egg-info/requires.txt +0 -0
- {csu-2.2.5 → csu-2.3.0}/src/csu.egg-info/top_level.txt +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/cassettes/test_service/test_custom_context.yaml +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/cassettes/test_service/test_custom_context_0_retries.yaml +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/cassettes/test_service/test_decoding.yaml +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/cassettes/test_service/test_error.yaml +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/cassettes/test_service/test_logging.yaml +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/cassettes/test_service/test_redirects.yaml +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/cassettes/test_service_auth/test_async.yaml +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/cassettes/test_service_auth/test_sync.yaml +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/conftest.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/exampleworker.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/test_exampleworker.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/test_models.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/test_service.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/test_service_auth.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/test_views.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/testproject/__init__.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/testproject/fixtures/testuser.json +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/testproject/models.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/testproject/settings.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/tests/testproject/urls.py +0 -0
- {csu-2.2.5 → csu-2.3.0}/tox.ini +0 -0
{csu-2.2.5 → csu-2.3.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: csu
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Clean Slate Utils - bunch of utility code, mostly Django/DRF specific.
|
|
5
5
|
Author-email: Ionel Cristian Mărieș <contact@ionelmc.ro>
|
|
6
6
|
License-Expression: BSD-2-Clause
|
|
@@ -77,9 +77,9 @@ Overview
|
|
|
77
77
|
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/csu.svg
|
|
78
78
|
:alt: Supported implementations
|
|
79
79
|
:target: https://pypi.org/project/csu
|
|
80
|
-
.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-csu/v2.
|
|
80
|
+
.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-csu/v2.3.0.svg
|
|
81
81
|
:alt: Commits since latest release
|
|
82
|
-
:target: https://github.com/ionelmc/python-csu/compare/v2.
|
|
82
|
+
:target: https://github.com/ionelmc/python-csu/compare/v2.3.0...main
|
|
83
83
|
.. |scrutinizer| image:: https://img.shields.io/scrutinizer/quality/g/ionelmc/python-csu/main.svg
|
|
84
84
|
:alt: Scrutinizer Status
|
|
85
85
|
:target: https://scrutinizer-ci.com/g/ionelmc/python-csu/
|
|
@@ -34,9 +34,9 @@ Overview
|
|
|
34
34
|
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/csu.svg
|
|
35
35
|
:alt: Supported implementations
|
|
36
36
|
:target: https://pypi.org/project/csu
|
|
37
|
-
.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-csu/v2.
|
|
37
|
+
.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-csu/v2.3.0.svg
|
|
38
38
|
:alt: Commits since latest release
|
|
39
|
-
:target: https://github.com/ionelmc/python-csu/compare/v2.
|
|
39
|
+
:target: https://github.com/ionelmc/python-csu/compare/v2.3.0...main
|
|
40
40
|
.. |scrutinizer| image:: https://img.shields.io/scrutinizer/quality/g/ionelmc/python-csu/main.svg
|
|
41
41
|
:alt: Scrutinizer Status
|
|
42
42
|
:target: https://scrutinizer-ci.com/g/ionelmc/python-csu/
|
|
@@ -26,10 +26,9 @@ from import_export.widgets import Widget
|
|
|
26
26
|
from rest_framework import serializers
|
|
27
27
|
from tablib import InvalidDimensions
|
|
28
28
|
|
|
29
|
-
from
|
|
30
|
-
from
|
|
31
|
-
from
|
|
32
|
-
|
|
29
|
+
from .gettext import _
|
|
30
|
+
from .timezones import adjust_dt
|
|
31
|
+
from .timezones import now
|
|
33
32
|
from .timezones import today
|
|
34
33
|
|
|
35
34
|
EXPORT_FORMATS = {
|
|
@@ -4,13 +4,12 @@ import time_machine
|
|
|
4
4
|
from niquests import PreparedRequest
|
|
5
5
|
from niquests import Response
|
|
6
6
|
|
|
7
|
-
from csu.service import AsyncHTTPService
|
|
8
|
-
from csu.service import AsyncHTTPServiceContext
|
|
9
|
-
from csu.service import HTTPService
|
|
10
|
-
from csu.service import HTTPServiceContext
|
|
11
|
-
|
|
12
7
|
from . import exceptions
|
|
13
8
|
from .exceptions import get_event_id
|
|
9
|
+
from .service import AsyncHTTPService
|
|
10
|
+
from .service import AsyncHTTPServiceContext
|
|
11
|
+
from .service import HTTPService
|
|
12
|
+
from .service import HTTPServiceContext
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
def test_get_accident_id(monkeypatch):
|
|
@@ -8,8 +8,6 @@ from django.utils.html import format_html
|
|
|
8
8
|
from django.utils.safestring import mark_safe
|
|
9
9
|
from import_export.admin import ImportExportMixin
|
|
10
10
|
|
|
11
|
-
from csu.timezones import now
|
|
12
|
-
|
|
13
11
|
from ..export import ChoiceWidget
|
|
14
12
|
from ..export import FullFilenameExportAdminMixin
|
|
15
13
|
from ..export import SmartModelResource
|
|
@@ -17,6 +15,7 @@ from ..gettext import _
|
|
|
17
15
|
from .models import AbstractTask
|
|
18
16
|
from .models import QueueState
|
|
19
17
|
from .models import ResultType
|
|
18
|
+
from .timezones import now
|
|
20
19
|
|
|
21
20
|
|
|
22
21
|
class AbstractTaskResource(SmartModelResource):
|
|
@@ -248,7 +248,6 @@ class AbstractConsumer(AbstractWorker):
|
|
|
248
248
|
result = await self.save_result(
|
|
249
249
|
job,
|
|
250
250
|
result_type=self.result_type_enum.SUCCESS if fields else self.result_type_enum.ABSENT,
|
|
251
|
-
result_details=None if fields else repr(fields),
|
|
252
251
|
**fields or {},
|
|
253
252
|
)
|
|
254
253
|
idle = False
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: csu
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Clean Slate Utils - bunch of utility code, mostly Django/DRF specific.
|
|
5
5
|
Author-email: Ionel Cristian Mărieș <contact@ionelmc.ro>
|
|
6
6
|
License-Expression: BSD-2-Clause
|
|
@@ -77,9 +77,9 @@ Overview
|
|
|
77
77
|
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/csu.svg
|
|
78
78
|
:alt: Supported implementations
|
|
79
79
|
:target: https://pypi.org/project/csu
|
|
80
|
-
.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-csu/v2.
|
|
80
|
+
.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-csu/v2.3.0.svg
|
|
81
81
|
:alt: Commits since latest release
|
|
82
|
-
:target: https://github.com/ionelmc/python-csu/compare/v2.
|
|
82
|
+
:target: https://github.com/ionelmc/python-csu/compare/v2.3.0...main
|
|
83
83
|
.. |scrutinizer| image:: https://img.shields.io/scrutinizer/quality/g/ionelmc/python-csu/main.svg
|
|
84
84
|
:alt: Scrutinizer Status
|
|
85
85
|
:target: https://scrutinizer-ci.com/g/ionelmc/python-csu/
|
|
@@ -59,4 +59,4 @@ async def test_cancel():
|
|
|
59
59
|
with pytest.raises(TimeoutError):
|
|
60
60
|
await asyncio.wait_for(job1.done, 0.1)
|
|
61
61
|
result = await asyncio.wait_for(job2.done, 1)
|
|
62
|
-
assert result == {"result_type": ResultType.SUCCESS, "
|
|
62
|
+
assert result == {"result_type": ResultType.SUCCESS, "time": 0}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{csu-2.2.5 → csu-2.3.0}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{csu-2.2.5 → csu-2.3.0}/tox.ini
RENAMED
|
File without changes
|