Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Publish Python 🐍 distribution 📦 to PyPI

on:
push:
tags:
- 'v*.*.*'

permissions: {}

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

permissions:
contents: read
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.x"
- name: Install pypa/build
run: python3 -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/asyncgui-ext-clock
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: "unittest"

on:
Expand All @@ -9,12 +6,16 @@ on:
pull_request:
branches: [ main ]

permissions: {}

jobs:
noname:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', 'pypy-3.10']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', 'pypy-3.10']
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -24,7 +25,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest "asyncgui>=0.7,<0.8"
python -m pip install pytest "asyncgui>=0.9.3,<1"
python -m pip install .
- name: Test with pytest
run: make test
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2024 gottadiveintopython
Copyright 2024-2026 gottadiveintopython

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ test:

html:
sphinx-build -b html ./sphinx ./docs

livehtml:
sphinx-autobuild -b html ./sphinx ./docs
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ while running:
Pin the minor version.

```
poetry add asyncgui-ext-clock@~0.6
pip install "asyncgui-ext-clock>=0.6,<0.7"
```

Expand All @@ -46,4 +45,5 @@ pip install "asyncgui-ext-clock>=0.6,<0.7"
- CPython 3.11
- CPython 3.12
- CPython 3.13
- CPython 3.14
- PyPy 3.10
772 changes: 0 additions & 772 deletions poetry.lock

This file was deleted.

65 changes: 34 additions & 31 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,44 +1,47 @@
[tool.poetry]
[project]
name = "asyncgui-ext-clock"
version = "0.6.1"
version = "0.6.2"
description = "An event scheduler for asyncgui programs"
authors = ["Nattōsai Mitō <flow4re2c@gmail.com>"]
authors = [{ name = "Nattōsai Mitō", email = "flow4re2c@gmail.com" }]
requires-python = ">=3.10,<4"
readme = "README.md"
license = "MIT"
readme = 'README.md'
repository = 'https://github.com/asyncgui/asyncgui-ext-clock'
homepage = 'https://github.com/asyncgui/asyncgui-ext-clock'
keywords = ['async', ]
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Software Development :: Libraries',
'Operating System :: OS Independent',
keywords = ["async"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries",
"Operating System :: OS Independent",
]
packages = [
{ include = "asyncgui_ext", from = "src" },
dependencies = [
"asyncgui>=0.9.3,<1",
]

[tool.poetry.dependencies]
python = "^3.10"
asyncgui = ">=0.9.3,<0.10"
[project.urls]
Documentation = "https://asyncgui.github.io/asyncgui-ext-clock"
Repository = "https://github.com/asyncgui/asyncgui-ext-clock"

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
[dependency-groups]
dev = [
"pytest>=9.0.3,<10",
]
doc = [
"sphinx>=7.2.6,<8",
"furo>=2023.9.10,<2024",
]

[tool.uv]
default-groups = "all"

[tool.poetry.group.doc.dependencies]
sphinx = "^7.2.6"
sphinx-autobuild = "^2021.3.14"
furo = "^2023.9.10"
[tool.uv.build-backend]
module-name = "asyncgui_ext"
namespace = true

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires = ["uv_build>=0.9.2,<0.10.0"]
build-backend = "uv_build"

[tool.pytest.ini_options]
xfail_strict = true
Expand Down
2 changes: 1 addition & 1 deletion sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
'sphinx.ext.autodoc',
# 'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
# 'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
Expand Down
Loading
Loading