Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5076112a1
|
||
|
|
ce173e43c7
|
||
|
|
b3105423f8
|
||
|
|
249a7abd89 | ||
|
|
093d28fe62 | ||
|
|
7e43c76ad0 | ||
|
|
c25a62412d |
@@ -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 }}"
|
||||
@@ -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
|
||||
|
||||
@@ -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*"]
|
||||
@@ -10,7 +10,7 @@
|
||||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
__version__ = '2.1.0'
|
||||
__version__ = '3.0.0'
|
||||
|
||||
import os
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user