Compare commits

19 Commits

Author SHA256 Message Date
8cb717afa2 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
dcf9472fc6 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
92143b33e6 - 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
899ed9aa10 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
1d279f357c 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
e3f631d722 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
59bfa589f0 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
007a17dc6a - 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
341deb250f 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
9096d2dd90 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
a21b896eac - 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
51e514d0f4 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
59ac590158 - 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
1531c082a6 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
be79f764f9 - 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
7db99ca62c 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
9bceef0851 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
3aa6494660 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
b79267fa70 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

Diff Content Not Available