Skip to content

Commit

Permalink
Prepare 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Jun 10, 2021
1 parent b3dbcc9 commit f5c1a8e
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 11 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,27 @@ are used for versioning (schema follows below):
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.

1.8
---
2021-06-10

*Additions to the Django contrib app*

- Drop Python 2.7 and 3.5 support.
- Tested against Django 2.2, 3.0, 3.1 and 3.2.
- Tested against Python 3.8 and 3.9.
- ``django-constance`` specific template tags have been moved to
``ska.contrib.django.ska.integration.constance_integration``. Update your
Django settings accordingly.
- ``django-constance`` specific authentication backend has been moved to
``'ska.contrib.django.ska.backends.constance_backend.SkaAuthenticationConstanceBackend``.
Update your Django settings accordingly.
- ``django-constance`` specific DRF permission
classes (``ConstanceSignedRequestRequired``
and ``ConstanceProviderSignedRequestRequired``) have been moved to
``ska.contrib.django.ska.integration.drf.permissions.constance_permissions``.
Update your Django settings accordingly.

1.7.5
-----
2019-05-15
Expand Down
6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ Prerequisites
=============
Present
-------
- Core ``ska`` module requires Python 2.7, 3.5, 3.6 or 3.7.
- Core ``ska`` module requires Python 3.6, 3.7, 3.8 or 3.9.
- Django ``ska`` module (``ska.contrib.django.ska``) requires the mentioned
above plus Django 1.8, 1.9, 1.10, 1.11, 2.0 or 2.1. Additionally, certain
above plus Django 2.2, 3.0, 3.1 or 3.2. Additionally, certain
versions of `django-constance` and `djangorestframework` are required.
Specific version requirement primarily depends on the used Django version.
Check the `example requirements
Expand All @@ -100,6 +100,8 @@ Past
In future releases (any time) compatibility with no-longer-supported
versions might/will be wiped out.

- Dropping support of Python 2.7 and 3.5 has been announced in version 1.8.
As of 1.7.5 everything still worked.
- Dropping support of Python 3.4 has been announced in version 1.6.8. As of
1.6.8 everything still worked.
- Dropping support of Django 1.5, 1.6 and 1.7 has been announced in version
Expand Down
21 changes: 21 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,27 @@ are used for versioning (schema follows below):
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.

1.8
---
2021-06-10

*Additions to the Django contrib app*

- Drop Python 2.7 and 3.5 support.
- Tested against Django 2.2, 3.0, 3.1 and 3.2.
- Tested against Python 3.8 and 3.9.
- ``django-constance`` specific template tags have been moved to
``ska.contrib.django.ska.integration.constance_integration``. Update your
Django settings accordingly.
- ``django-constance`` specific authentication backend has been moved to
``'ska.contrib.django.ska.backends.constance_backend.SkaAuthenticationConstanceBackend``.
Update your Django settings accordingly.
- ``django-constance`` specific DRF permission
classes (``ConstanceSignedRequestRequired``
and ``ConstanceProviderSignedRequestRequired``) have been moved to
``ska.contrib.django.ska.integration.drf.permissions.constance_permissions``.
Update your Django settings accordingly.

1.7.5
-----
2019-05-15
Expand Down
20 changes: 17 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ Prerequisites
=============
Present
-------
- Core ``ska`` module requires Python 2.7, 3.5, 3.6 or 3.7.
- Core ``ska`` module requires Python 3.6, 3.7, 3.8 or 3.9.
- Django ``ska`` module (``ska.contrib.django.ska``) requires the mentioned
above plus Django 1.8, 1.9, 1.10, 1.11, 2.0 or 2.1. Additionally, certain
above plus Django 2.2, 3.0, 3.1 or 3.2. Additionally, certain
versions of `django-constance` and `djangorestframework` are required.
Specific version requirement primarily depends on the used Django version.
Check the `example requirements
Expand All @@ -100,6 +100,8 @@ Past
In future releases (any time) compatibility with no-longer-supported
versions might/will be wiped out.

- Dropping support of Python 2.7 and 3.5 has been announced in version 1.8.
As of 1.7.5 everything still worked.
- Dropping support of Python 3.4 has been announced in version 1.6.8. As of
1.6.8 everything still worked.
- Dropping support of Django 1.5, 1.6 and 1.7 has been announced in version
Expand Down Expand Up @@ -829,6 +831,18 @@ loaded as follows:

{% load ska_constance_tags %}

Note, that if you want to use ``ska_constance_tags``, add
the ``ska.contrib.django.ska.integration.constance_integration`` line to
your``INSTALLED_APPS``:

.. code-block:: python
INSTALLED_APPS = (
# ...
'ska.contrib.django.ska.integration.constance_integration',
# ...
)
sign_url
++++++++
The ``sign_url`` template tag accepts template context and the following
Expand Down Expand Up @@ -1060,7 +1074,7 @@ settings.py
.. code-block:: python
AUTHENTICATION_BACKENDS = (
'ska.contrib.django.ska.backends.SkaAuthenticationConstanceBackend',
'ska.contrib.django.ska.backends.constance_backend.SkaAuthenticationConstanceBackend',
'django.contrib.auth.backends.ModelBackend',
)
Expand Down
18 changes: 12 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
except:
readme = ''

version = '1.7.5'
version = '1.8'

exec_dirs = [
'src/ska/bin/',
Expand All @@ -24,12 +24,11 @@
long_description=readme,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Security :: Cryptography",
"Environment :: Web Environment",
"Intended Audience :: Developers",
Expand All @@ -51,6 +50,13 @@
package_data={
'ska': execs,
},
project_urls={
"Bug Tracker": "https://github.com/barseghyanartur/ska/issues",
"Documentation": "https://ska.readthedocs.io/",
"Source Code": "https://github.com/barseghyanartur/ska",
"Changelog": "https://ska.readthedocs.io/"
"en/latest/changelog.html",
},
license='GPL-2.0-only OR LGPL-2.1-or-later',
scripts=['src/ska/bin/ska-sign-url'],
install_requires=[
Expand All @@ -60,11 +66,11 @@
extras_require={
'django-constance': ['django-constance'],
'djangorestframework': ['djangorestframework'],
'djangorestframework-jwt': ['djangorestframework-jwt'],
'drf-jwt': ['drf-jwt'],
},
tests_require=[
'factory_boy',
'fake-factory',
'faker',
'pytest',
'pytest-django',
'radar',
Expand Down

0 comments on commit f5c1a8e

Please sign in to comment.