Skip to content

Commit 6b13998

Browse files
add Event
1 parent 176c77e commit 6b13998

File tree

18 files changed

+1104
-0
lines changed

18 files changed

+1104
-0
lines changed

.gitattribute

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
*.apk binary
2+
3+
*.ogg binary
4+
*.mp3 binary
5+
*.wav binary
6+
7+
*.png binary
8+
*.jpg binary
9+
*.gif binary
10+
11+
*.mp4 binary
12+
*.avi binary
13+
*.webm binary
14+
15+
*.ttf binary
16+
*.ttc binary
17+
*.otf binary
18+
19+
*.zip binary
20+
*.7z binary

.github/workflows/python-package.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: "unittest"
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
noname:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: ['3.10', '3.11', '3.12']
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install pytest "asyncgui>=0.6,<0.7"
28+
python -m pip install .
29+
- name: Test with pytest
30+
run: make test

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
__pycache__/
2+
bin/
3+
*.pyc
4+
*.pyo
5+
/.venv/
6+
/.pytest_cache/
7+
/dist
8+
/docs/
9+
/src/asyncgui.py

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "pytest",
9+
"type": "debugpy",
10+
"request": "launch",
11+
"module": "pytest",
12+
"args": ["${file}"]
13+
},
14+
{
15+
"name": "Python: Current File",
16+
"type": "debugpy",
17+
"request": "launch",
18+
"program": "${file}",
19+
"console": "integratedTerminal"
20+
}
21+
]
22+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.pythonPath": ".venv/bin/python"
3+
}

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2024 gottadiveintopython
2+
3+
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:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
test:
2+
python -m pytest ./tests
3+
4+
html:
5+
sphinx-build -b html ./sphinx ./docs
6+
7+
livehtml:
8+
sphinx-autobuild -b html ./sphinx ./docs

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SyncTools
2+
3+
Inter-task sychronization and communication.
4+
5+
## Installation
6+
7+
Pin the minor version.
8+
9+
```
10+
poetry add asyncgui-ext-synctools@~0.1
11+
pip install "asyncgui-ext-synctools>=0.1,<0.2"
12+
```
13+
14+
## Tested on
15+
16+
- CPython 3.10
17+
- CPython 3.11
18+
- CPython 3.12

poetry.lock

Lines changed: 678 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[tool.poetry]
2+
name = "asyncgui-ext-synctools"
3+
version = "0.1.0"
4+
description = "Inter-task sychronization and communication."
5+
authors = ["Nattōsai Mitō <[email protected]>"]
6+
license = "MIT"
7+
readme = 'README.md'
8+
repository = 'https://github.com/asyncgui/asyncgui-ext-synctools'
9+
homepage = 'https://github.com/asyncgui/asyncgui-ext-synctools'
10+
keywords = ['async', ]
11+
classifiers=[
12+
'Development Status :: 5 - Production/Stable',
13+
'License :: OSI Approved :: MIT License',
14+
'Intended Audience :: Developers',
15+
'Programming Language :: Python',
16+
'Programming Language :: Python :: 3.10',
17+
'Programming Language :: Python :: 3.11',
18+
'Programming Language :: Python :: 3.12',
19+
'Topic :: Software Development :: Libraries',
20+
'Operating System :: OS Independent',
21+
]
22+
packages = [
23+
{ include = "asyncgui_ext", from = "src" },
24+
]
25+
26+
[tool.poetry.dependencies]
27+
python = "^3.10"
28+
asyncgui = "^0.6"
29+
30+
[tool.poetry.group.dev.dependencies]
31+
pytest = "^8.0"
32+
33+
[tool.poetry.group.doc.dependencies]
34+
sphinx = "^7.2.6"
35+
sphinx-autobuild = "^2021.3.14"
36+
furo = "^2023.9.10"
37+
38+
[build-system]
39+
requires = ["poetry-core"]
40+
build-backend = "poetry.core.masonry.api"
41+
42+
[tool.pytest.ini_options]
43+
xfail_strict = true
44+
addopts = "--maxfail=4 --strict-markers"

0 commit comments

Comments
 (0)