chore: prepare package publishing metadata
Build & Publish Package / publish (push) Successful in 30s
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.
This commit is contained in:
@@ -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
|
||||
|
||||
+40
-3
@@ -1,7 +1,44 @@
|
||||
[project]
|
||||
name = "quart-session"
|
||||
version = "3.0.1"
|
||||
description = "Add your description here"
|
||||
version = "3.0.2"
|
||||
description = "Server-side sessions for Quart"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.13"
|
||||
dependencies = []
|
||||
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,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.19.0"
|
||||
]
|
||||
|
||||
setup(
|
||||
name='Quart-Session',
|
||||
version='3.0.1',
|
||||
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