20 Commits

Author SHA256 Message Date
5a1fc5958b Accepting request 1281924 from devel:languages:python
- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1281924
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mohawk?expand=0&rev=9
2025-06-02 20:01:24 +00:00
c8f0d91d86 - Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mohawk?expand=0&rev=18
2025-06-02 12:54:50 +00:00
89c7472d4d Accepting request 992127 from devel:languages:python
- Remove unneeded BuildRequires on mock.
- Remove bcond for running tests.

OBS-URL: https://build.opensuse.org/request/show/992127
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mohawk?expand=0&rev=8
2022-08-02 20:09:08 +00:00
3c2ed0022d - Remove unneeded BuildRequires on mock.
- Remove bcond for running tests.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mohawk?expand=0&rev=16
2022-08-02 03:40:31 +00:00
665ea02a12 Accepting request 964932 from devel:languages:python
- Extend remove-nose.patch: Use unittest.mock instead of
  python-mock (https://trello.com/c/S6eADbii/64-remove-python-mock)

OBS-URL: https://build.opensuse.org/request/show/964932
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mohawk?expand=0&rev=7
2022-03-25 20:55:09 +00:00
Antoine Belvire
b4f05a781f Reword changelog
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mohawk?expand=0&rev=14
2022-03-25 19:09:54 +00:00
Antoine Belvire
4b4c294a92 Accepting request 964782 from home:pgajdos:python
- use unittest.mock instead
  https://trello.com/b/WsskhdXA/opensuse-python
- modified patches
  % remove-nose.patch (extended)

OBS-URL: https://build.opensuse.org/request/show/964782
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mohawk?expand=0&rev=13
2022-03-25 19:06:43 +00:00
121c52d084 Accepting request 921090 from devel:languages:python
- Add patch remove-nose.patch:
  * Use unittest assert methods rather than requiring nose.

OBS-URL: https://build.opensuse.org/request/show/921090
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mohawk?expand=0&rev=6
2021-09-23 21:03:58 +00:00
3f5198b536 - Add patch remove-nose.patch:
* Use unittest assert methods rather than requiring nose.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mohawk?expand=0&rev=12
2021-09-23 06:12:43 +00:00
432aa5090e Accepting request 873931 from devel:languages:python
- Replace call to 'python setup.py test' by pyunittest macro: This
  prevents a DeprecationWarning turned into an error from failing
  the build.

OBS-URL: https://build.opensuse.org/request/show/873931
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mohawk?expand=0&rev=5
2021-02-20 21:12:24 +00:00
Antoine Belvire
8f2f068b9e Reword changelog
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mohawk?expand=0&rev=10
2021-02-19 23:05:05 +00:00
Antoine Belvire
153aa93008 - Replace call to 'python setup.py test' by pyunittest macro: This
prevents a DeprecationWarning to be turned into an error and to
  fail the build.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mohawk?expand=0&rev=9
2021-02-19 22:59:35 +00:00
50a11b04a6 Accepting request 743605 from devel:languages:python
- Update to version 1.1.0:
  * Support passing file-like objects (those implementing .read(n))
    as the content parameter for Resources. See mohawk.Sender for
    details.

OBS-URL: https://build.opensuse.org/request/show/743605
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mohawk?expand=0&rev=4
2019-10-30 13:43:09 +00:00
Antoine Belvire
064a3be1f8 - Update to version 1.1.0:
* Support passing file-like objects (those implementing .read(n))
    as the content parameter for Resources. See mohawk.Sender for
    details.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mohawk?expand=0&rev=7
2019-10-28 20:15:04 +00:00
3c0bc9b31c Accepting request 664544 from devel:languages:python
- Update to version 1.0.0:
  * Security related: Bewit MACs were not compared in constant time
    and were thus possibly circumventable by an attacker.
  * Breaking change: Escape characters in header values (such as a
    back slash) are no longer allowed, potentially breaking clients
    that depended on this behavior.
  * A sender is allowed to omit the content hash as long as their
    request has no content. The `mohawk.Receiver` will skip the
    content hash check in this situation, regardless of the value
    of accept_untrusted_content.
  * Introduced max limit of 4096 characters in the Authorization
    header.
  * Changed default values of content and content_type arguments to
    `mohawk.base.EmptyValue` in order to differentiate between
    misconfiguration and cases where these arguments are explicitly
    given as None (as with some web frameworks).
  * Failing to pass content and content_type arguments to
    `mohawk.Receiver` or `mohawk.Sender.accept_response` without
    specifying accept_untrusted_content=True will now raise
    `mohawk.exc.MissingContent` instead of `ValueError`.

OBS-URL: https://build.opensuse.org/request/show/664544
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mohawk?expand=0&rev=3
2019-01-11 13:06:07 +00:00
Antoine Belvire
2545ba84c5 - Update to version 1.0.0:
* Security related: Bewit MACs were not compared in constant time
    and were thus possibly circumventable by an attacker.
  * Breaking change: Escape characters in header values (such as a
    back slash) are no longer allowed, potentially breaking clients
    that depended on this behavior.
  * A sender is allowed to omit the content hash as long as their
    request has no content. The `mohawk.Receiver` will skip the
    content hash check in this situation, regardless of the value
    of accept_untrusted_content.
  * Introduced max limit of 4096 characters in the Authorization
    header.
  * Changed default values of content and content_type arguments to
    `mohawk.base.EmptyValue` in order to differentiate between
    misconfiguration and cases where these arguments are explicitly
    given as None (as with some web frameworks).
  * Failing to pass content and content_type arguments to
    `mohawk.Receiver` or `mohawk.Sender.accept_response` without
    specifying accept_untrusted_content=True will now raise
    `mohawk.exc.MissingContent` instead of `ValueError`.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mohawk?expand=0&rev=5
2019-01-11 06:56:08 +00:00
b3e17e48ac Accepting request 659497 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659497
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mohawk?expand=0&rev=2
2018-12-24 10:39:47 +00:00
5436f9e1d7 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mohawk?expand=0&rev=3
2018-12-04 13:40:43 +00:00
6d48f6fe6e Accepting request 602560 from devel:languages:python
misc accidental remove

OBS-URL: https://build.opensuse.org/request/show/602560
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mohawk?expand=0&rev=1
2018-04-30 20:58:51 +00:00
Tomáš Chvátal
7580503cde misc accidental
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mohawk?expand=0&rev=1
2018-04-30 13:47:31 +00:00