Author SHA1 Message Date
daniel156161 f5076112a1 chore: prepare package publishing metadata
Build & Publish Package / publish (push) Successful in 30s
- Add Gitea workflow for tagged package releases.
- Move package metadata into pyproject.toml.
- Bump the package version to 3.0.2.
- Define optional extras for dotenv, MongoDB, Redis, and Trio Redis.
- Keep setup.py as a minimal setuptools entry point.
- Disable universal wheel output for Python 3 only builds.
2026-09-06 01:52:06 +02:00
daniel156161 ce173e43c7 install uv into project 2025-10-31 13:17:55 +01:00
daniel156161 b3105423f8 fix that it can set the responce cookie correctly for newer werkzeug version 2025-09-18 18:16:18 +02:00
Kroket Ltd 249a7abd89 Bump to 3.0.0 2023-11-24 04:12:03 +02:00
Kroket Ltd 093d28fe62 Merge pull request #19 from jonathonfletcher/master
do not unpack initial in call to ServerSideSession's super.
2023-11-24 04:07:24 +02:00
Jonathon Fletcher 7e43c76ad0 do not unpack initial in call to ServerSideSession's super. 2023-11-04 11:50:46 -07:00
Kroket Ltd c25a62412d Merge pull request #16 from kroketio/session_cookie_name_fix
Session cookie name fix
2023-10-17 01:42:31 +03:00
7 changed files with 84 additions and 60 deletions
+28
View File
@@ -0,0 +1,28 @@
name: Build & Publish Package
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Build package
run: uv build
- name: Publish to Gitea
run: |
uv publish \
--publish-url "${{ vars.REGISTRY_URL }}/api/packages/${{ github.repository_owner }}/pypi" \
--username "${{ github.repository_owner }}" \
--password "${{ secrets.ACTION_ACCESS_TOKEN }}"
+6
View File
@@ -1,3 +1,9 @@
### 3.0.2
- Add package metadata for Gitea PyPI registry publishing.
- Add Gitea workflow for tagged package releases.
- Add explicit redis-trio extra for the bundled Trio Redis client.
### 2.1.0
- `session_cookie_name` fix
+44
View File
@@ -0,0 +1,44 @@
[project]
name = "quart-session"
version = "3.0.2"
description = "Server-side sessions for Quart"
readme = "README.md"
requires-python = ">=3.13"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
authors = [{ name = "Kroket Ltd.", email = "code@kroket.io" }]
dependencies = [
"Quart>=0.19.0",
]
classifiers = [
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.urls]
Homepage = "https://git.yiprawr.dev/daniel156161/quart-session"
Repository = "https://git.yiprawr.dev/daniel156161/quart-session"
Issues = "https://git.yiprawr.dev/daniel156161/quart-session/issues"
[project.optional-dependencies]
dotenv = ["python-dotenv"]
mongodb = ["motor>=2.5.1"]
redis = ["redis>=4.4.0"]
redis-trio = ["trio>=0.22"]
[dependency-groups]
dev = [
"build>=1.3.0",
]
[build-system]
requires = ["setuptools>=80", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["quart_session*"]
+1 -1
View File
@@ -10,7 +10,7 @@
:license: BSD, see LICENSE for more details.
"""
__version__ = '2.1.0'
__version__ = '3.0.0'
import os
+2 -2
View File
@@ -31,7 +31,7 @@ class ServerSideSession(SecureCookieSession):
"""Baseclass for server-side based sessions."""
def __init__(self, initial=None, sid=None, permanent=None, addr=None):
super(ServerSideSession, self).__init__(**initial or {})
super(ServerSideSession, self).__init__(initial or {})
self.sid = sid
if permanent:
self.permanent = permanent
@@ -189,7 +189,7 @@ class SessionInterface(QuartSessionInterface):
session_id = self._get_signer(app).sign(want_bytes(session.sid))
else:
session_id = session.sid
response.set_cookie(cname, session_id,
response.set_cookie(cname, session_id.decode('utf-8'),
expires=expires, httponly=httponly,
domain=domain, path=path, secure=secure, samesite=samesite)
+2 -2
View File
@@ -1,2 +1,2 @@
[wheel]
universal = 1
[bdist_wheel]
universal = 0
+1 -55
View File
@@ -1,57 +1,3 @@
"""
Quart-Session
-------------
Quart-Session is an extension for Quart that adds support for
Server-side Session to your application.
Links
`````
* `Github
<https://github.com/kroketio/quart-session>`_
"""
from setuptools import setup
with open('README.md') as f:
long_description = f.read()
INSTALL_REQUIRES = [
"Quart>=0.10.0"
]
setup(
name='Quart-Session',
version='2.1.0',
url='https://github.com/kroketio/quart-session',
license='BSD',
author='Kroket Ltd.',
author_email='code@kroket.io',
description='Adds server-side session support to your Quart application',
long_description=long_description,
long_description_content_type='text/markdown',
packages=['quart_session'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=INSTALL_REQUIRES,
tests_require=INSTALL_REQUIRES + ["asynctest", "hypothesis", "pytest", "pytest-asyncio"],
extras_require={
"dotenv": ["python-dotenv"],
"mongodb": ["motor>=2.5.1"],
"redis": ["redis>=4.4.0"]
},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
setup()