14
0
forked from pool/python-Beaker

31 Commits

Author SHA256 Message Date
28153d102a - Switch to pyproject macros.
- Add patch avoid-dbm-sqlite3.patch:
  * Avoid dbm.sqlite3 to support testing with Python 3.13.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=65
2025-04-15 06:22:45 +00:00
ccc1ab5b39 - update to 1.13.0:
* Fix validation messages for validate_key and encrypt_key
  * Added support for rediscluster via ext:redisclusternm
  * Removed the need to install mock library to run tests
- Actually correct BuildRequires.
  * Fixed issue #180 - KeyError when loading deleted session
- add glibc-locale dependency for tests
  * Session cookies will now provide support for ``SameSite`` through the ``samesite`` option.
 * Fix bug with cookie deletion on leap years. Patch contributed
- minor spec improvement
  * Added an optimization to the FileNamespaceContainer when used with
    Session, such that the pickled contents of the file are not

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=63
2024-04-20 13:26:46 +00:00
3c95418ea2 - update to 1.12.1:
* Fix ext:database backend failing to initialize
  * Improved inline code documentation for the crypto module

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=61
2023-02-10 10:20:01 +00:00
ff4a2f41f6 - Actually correct BuildRequires.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=59
2023-01-03 08:16:51 +00:00
49b92c395e - Update to 1.12.0:
* Enabled testing on Python 3.10 and 3.11
  * Fixed issue #122 - Session ignores deserializer json
  * Remove ID generation fallback for when the uuid module is not found
  * Port testing from nose to pytest
  * Fixed issue #180 - KeyError when loading deleted session 
- Remove Python 2 and Python 3 gubbins.
- Remove patch denose.patch, merged upstream.
- Add patch support-pymemcache.patch:
  * Also support pymemcache.
- Fiddle BuildRequires as appropiate.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=57
2022-12-20 06:37:17 +00:00
0faa9b5ad8 Accepting request 962105 from home:pgajdos:python
- python-mock is actually not required for build

OBS-URL: https://build.opensuse.org/request/show/962105
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=55
2022-03-16 20:46:32 +00:00
522b33e89f - add glibc-locale dependency for tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=54
2022-03-01 08:41:02 +00:00
ec7e7b905c Accepting request 876935 from home:mcalabkova:branches:devel:languages:python
- Replace broken %ifpython3 macro

OBS-URL: https://build.opensuse.org/request/show/876935
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=52
2021-03-05 23:25:37 +00:00
adb95bf563 Accepting request 822302 from home:mcepl:branches:devel:languages:python
- Add denose.patch, which ports the package from the dependency
  on nose to pytest (gh#bbangert/beaker#192).

OBS-URL: https://build.opensuse.org/request/show/822302
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=49
2020-07-22 22:15:00 +00:00
Tomáš Chvátal
a6c8590456 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=47 2020-04-22 07:13:15 +00:00
7c62141a36 - Fix build without Python 2 present.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=46
2020-04-22 07:05:11 +00:00
2c961879ba Drop BuildRequires on mock and funcsigs, and update Requires/Recommends
to python3.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=45
2020-04-22 05:13:34 +00:00
eac65c512c Accepting request 750441 from home:stroeder:branches:devel:languages:python
- only recommend installation of package python-python-memcached

OBS-URL: https://build.opensuse.org/request/show/750441
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=43
2019-11-23 15:59:44 +00:00
Tomáš Chvátal
dd47824840 Accepting request 732760 from home:pgajdos
- version update to 1.11.0
  * Fixed cookie path option not being properly set (`self._path`
    was removed, only `self.path` exists)
  * Documented `SameSite` option
  * Fixed cookie expiration being localised when it shouldn't.

OBS-URL: https://build.opensuse.org/request/show/732760
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=41
2019-09-23 17:43:21 +00:00
4be96b7cbd Accepting request 695668 from home:mcepl:branches:devel:languages:python
- Actually for working around gh#bbangert/beaker#172 it is enough
  to rm -fv tests/test.db, because the test suite apparently
  doesn't clean up after itself.

OBS-URL: https://build.opensuse.org/request/show/695668
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=39
2019-04-18 12:28:40 +00:00
1bf1ac4a82 Accepting request 690383 from home:mcepl:branches:devel:languages:python
- Ignore test_database tests to avoid gh#bbangert/beaker#172

OBS-URL: https://build.opensuse.org/request/show/690383
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=37
2019-04-01 13:50:10 +00:00
Tomáš Chvátal
44c079a628 - Update to 1.10.1:
* Fix issue with Redis namespace manager TTL
  * Fix for SameSite cookie option not being set in some cases
  * Fix for memcached tests on Python3
  * Redis namespace manager now supports providing a TTL for session entries that had a ``timeout`` provided.
    This will remove the need to manually clear expired sessions from the redis storage.
  * ``nsscrypto`` backend is now properly identified as providing AES support.
  * When a crypto backend doesn't support AES it will no longer crash if the ``encrypt_key`` is ``None``.
  * Session cookies will now provide support for ``SameSite`` through the ``samesite`` option. 
    By default this will be ``Lax``, but can be set to ``Strict`` or ``None`` to disable it.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=36
2019-03-06 19:05:41 +00:00
Todd R
6e4f1663a7 Accepting request 522092 from devel:languages:python:singlespec-staging
- Update to version 1.9.0
  * Beaker now provides builtin ``ext:mongodb`` and ``ext:redis``
    namespace managers. Both come with a Synchronizer implemented
    on the storage backend instead of relying on file one.
  * Fixed an issue where cookie options like ``Secure``,
    ``Domain`` and so on where lost.
  * Improved support for cache entries expiration.
    NamespaceManagers that support it will expire their key
    automatically.
  * Pycryptodome can be used instead of pycrypto.
  * An issue with ``Cookie`` module import on case insensitive
    file systems should have been resolved.
  * Cryptography module is now as a crypto function provider
    instead of pycrypto
- singlespec auto-conversion
- adjust for cryptopp -> pycryptopp rename
- update to 1.8.1
  * Bugfixes
- Update to version 1.8.0
  * Encrypted sessions can now specify nonce length for salt
    generation through encrypt_nonce_bits parameter. set it to 48
    for backward compatibility with sessions generated before 1.8.0
  * kwargs support in @cache_region decorator
  * annotations support in @cache_region decorator
  * data_serializer parameter in Session can now specify json to
    avoid pickle security issues
  * Invalid cookies are now skipped in cookie based sessions
  * Memcached based on PyLibMC now share same connection pool for
    same url
- update to version 1.7.0:
  * Beaker no longer supports python 2.4 and 2.5
  * Beaker now supports Python 2.6, 2.7, 3.2, 3.3, 3.4 without
    2to3 usage
  * Fixed Encrypted Cookie Session on Python3 #57
  * New pbkdf2 mobule working on Python3 #21
  * Fixed Test suite on Python 3.3 #53, #51
- additional changes from version 1.6.5:
  * @cached decorator now keeps docstring of decorated method.
  * Fix crash when Session ``accessed_time`` is not available,
    this happened when session ``encrypt_key`` was changed.
  * Fix cache regions not providing a default key length even
    though this was required and examples in the doc didn't
    provide it.
  * Fix crash when cache expire wasn't an int, this happened when
    caching options were loaded from a config file.
- remove everything related to tests:
  upstream deleted them from archive
- drop Beaker-1.6.4-setup_test.patch: only used by the tests
- do not delete the shebang of pbkdf2.py: fixed upstream
- remove CHANGELOG and LICENSE from package: deleted from archive
- add README.rst to the package documentation
- Add a build conditional for testing with memcached. It can be too
  heavy at times
- Fix previous changes entry
- fix deps
- enable full testing
- Add Beaker-1.6.4-setup_test.patch: Workaround for TypeError in
  multiprocessing/util.py
- added fdupes to remove rpmlint warning
- Update to 1.6.4:
  * Warning: Session hashing for encrypted sessions using PyCrypto has
    changed. This will result in sessions being invalidated upon upgrading
    if PyCrypto is used.
  * Fix bug with key_length not being coerced to a int for comparison.
  * Fix bug with cookie invalidation not clearing the cookie data.
  * Added ability to pass in cookie_path for the Session.
  * Add NSS crypto support to Beaker.
  * Fix security bug with pycrypto not securing data such that an attacker
    could possibly determine parts of the encrypted payload. See CVE-2012-3458
    <http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-3458>.
  * Add ability to specify schema for database-backed sessions.
  * Fix issue with long key names in memcached backend.
- Fix sed script so it removes the shebang instead of inserting "d" throughout
  the pbkdf2.py file.
- Test suite now succeeds (for Python 2 package) but didn't add it to build
  because it takes too long.
- Update URL to what is given in setup.py.
- update to version 1.6.3
 * Fix bug with cookie deletion on leap years. Patch contributed 
   by Greg Nelson and Michael Wirth.
 * Fix issue with referencing same module via different import paths.
   Patch contributed by brianfrantz.
 * Fix cookie expiration check. Patch contributed by Mike Dirolf.
- python3 package added
- minor spec improvement 
- Update to version 1.6.2:
  * Updated dogpile lock so that it locks per namespace+key rather than on the
    entire namespace. (#101)
  * Added encryption option for any backend. Patch contributed by Toby Elliot.
- Update to version 1.6.1:
  * Remove stray print statement.
  * Include .app for consistency instead of requiring wrap_app.
- Changes from version 1.6:
  * Fix bug with cache_key length calculation.
  * Fix bug with how path was set so that its restored properly and propagated.
  * Fix bug with CacheMiddleware clobbering enabled setting.
  * Update option for ``cookie_expires`` so that it can now handle an integer
    which will be used as the seconds till the cookie expires.
  * Merge fix for Issue 31, can now handle unicode cache keys.
  * Add ``key_length`` option for cache regions, and for keyword args passed
    into the cache system. Cache keys longer than this will be SHA'd.
  * added runtime beaker.__version__
  * Add ``webtest_varname`` option to configuration to optionally include
    the session value in the environ vars when using Beaker with WebTest.
  * Defer running of pkg_resources to look for external cache modules
    until requested. #66
  * memcached backend uses pylibmc.ThreadMappedPool to ensure thread-local
    usage of pylibmc when that library is in use. (#60)
  * memcached backend also has ``memcache_module`` string argument, allows
    direct specification of the name of which memcache backend to use.
  * Basic container/file-based Session support working in Py3K. (#72)
  * Further Python 3 fixes
  * Added an optimization to the FileNamespaceContainer when used with 
    Session, such that the pickled contents of the file are not 
    read a second time when session.save() is called.  (#64)
  * Fixed bug whereby CacheManager.invalidate wouldn't work for a function
    decorated by cache.cache(). (#61)
  * cache decorators @cache.cache(), @cache_region() won't include first
    argument named 'self' or 'cls' as part of the cache key.  This allows
    reasonably safe usage for methods as well as functions.  (#55)
  * file backend no longer squashes unpickling errors.   This was inconsistent
    behavior versus all the other backends.
  * invalidate_corrupt flag on Session now emits a warning. (#52)
  * cache.remove_value() removes the value even if it's already marked
    'expired' (#42)
- Initial version

OBS-URL: https://build.opensuse.org/request/show/522092
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=34
2017-09-07 17:00:13 +00:00
e571401b5e - adjust for cryptopp -> pycryptopp rename
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=32
2016-11-16 09:56:55 +00:00
2331d974a9 - update to 1.8.1
* Bugfixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=31
2016-11-14 13:58:20 +00:00
Todd R
a2341f8509 Accepting request 428016 from home:TheBlackCat:branches:devel:languages:python
Update to version 1.8.0

OBS-URL: https://build.opensuse.org/request/show/428016
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=29
2016-09-15 23:28:13 +00:00
Michal Čihař
cdabdf27dc Accepting request 303985 from home:benoit_monin:branches:devel:languages:python
- update to version 1.7.0
- remove everything related to tests: upstream deleted them from archive
- drop Beaker-1.6.4-setup_test.patch: only used by the tests
- do not delete the shebang of pbkdf2.py: fixed upstream
- remove CHANGELOG and LICENSE from package: deleted from archive
- add README.rst to the package documentation

OBS-URL: https://build.opensuse.org/request/show/303985
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=27
2015-04-27 10:35:36 +00:00
Sascha Peilicke
9ab69a33ff - Fix previous changes entry
- Add Beaker-1.6.4-setup_test.patch: Workaround for TypeError in
  multiprocessing/util.py

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=25
2013-09-30 09:58:01 +00:00
Sascha Peilicke
b73b3fa9e7 - Add a build conditional for testing with memcached. It can be too
heavy at times

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=24
2013-08-09 09:17:00 +00:00
Sascha Peilicke
9c326ed958 Accepting request 186405 from home:frispete:python
- fix deps
- enable full testing
- add workaround for TypeError in multiprocessing/util.py
- don't package PKG-INFO

OBS-URL: https://build.opensuse.org/request/show/186405
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=23
2013-08-09 08:26:52 +00:00
Sascha Peilicke
2aa8280979 Accepting request 183774 from home:cberendt:Cloud_OpenStack_Master
added fdupes to remove rpmlint warning

OBS-URL: https://build.opensuse.org/request/show/183774
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=21
2013-07-22 06:18:29 +00:00
Sascha Peilicke
b5d8e96af8 Accepting request 135402 from home:poorboywilly:branches:devel:languages:python
Update to 1.6.4, fix sed script for exec. file, update URL in spec file.

OBS-URL: https://build.opensuse.org/request/show/135402
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=14
2012-10-01 08:25:51 +00:00
Todd R
5f86eed5d5 Accepting request 121836 from home:HighwayStar:branches:devel:languages:python
update to 1.6.3, python3 package added

OBS-URL: https://build.opensuse.org/request/show/121836
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=9
2012-05-23 07:11:35 +00:00
Sascha Peilicke
0262fd86c7 - Update to version 1.6.2:
* Updated dogpile lock so that it locks per namespace+key rather than on the
    entire namespace. (#101)
  * Added encryption option for any backend. Patch contributed by Toby Elliot.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=6
2012-02-01 10:43:55 +00:00
Sascha Peilicke
c875a5daf1 - Update to version 1.6.1:
* Remove stray print statement.
  * Include .app for consistency instead of requiring wrap_app.
- Changes from version 1.6:
  * Fix bug with cache_key length calculation.
  * Fix bug with how path was set so that its restored properly and propagated.
  * Fix bug with CacheMiddleware clobbering enabled setting.
  * Update option for ``cookie_expires`` so that it can now handle an integer
    which will be used as the seconds till the cookie expires.
  * Merge fix for Issue 31, can now handle unicode cache keys.
  * Add ``key_length`` option for cache regions, and for keyword args passed
    into the cache system. Cache keys longer than this will be SHA'd.
  * added runtime beaker.__version__
  * Add ``webtest_varname`` option to configuration to optionally include
    the session value in the environ vars when using Beaker with WebTest.
  * Defer running of pkg_resources to look for external cache modules
    until requested. #66
  * memcached backend uses pylibmc.ThreadMappedPool to ensure thread-local
    usage of pylibmc when that library is in use. (#60)
  * memcached backend also has ``memcache_module`` string argument, allows
    direct specification of the name of which memcache backend to use.
  * Basic container/file-based Session support working in Py3K. (#72)
  * Further Python 3 fixes
  * Added an optimization to the FileNamespaceContainer when used with 
    Session, such that the pickled contents of the file are not 
    read a second time when session.save() is called.  (#64)
  * Fixed bug whereby CacheManager.invalidate wouldn't work for a function
    decorated by cache.cache(). (#61)
  * cache decorators @cache.cache(), @cache_region() won't include first
    argument named 'self' or 'cls' as part of the cache key.  This allows

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=3
2011-11-10 10:42:56 +00:00
Sascha Peilicke
b0ea6bade3 - Initial version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=1
2011-09-01 13:17:45 +00:00