Skip to content

Commit acba00a

Browse files
committed
First pass of version 3.0
1 parent 5cd374f commit acba00a

File tree

15 files changed

+706
-445
lines changed

15 files changed

+706
-445
lines changed

.flake8

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/lint.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: linting
2+
3+
on:
4+
pull_request:
5+
branches: [ $default-branch ]
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.12"
17+
- run: pip install black ruff mypy types-requests
18+
- run: ruff .
19+
- run: black --check .
20+
- run: mypy .

.github/workflows/publish.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
6+
7+
jobs:
8+
publish_package:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.12"
17+
- run: |
18+
pip install poetry
19+
poetry self add "poetry-dynamic-versioning[plugin]"
20+
poetry config pypi-token.pypi ${{ secrets.POETRY_PYPI_TOKEN }}
21+
poetry build
22+
poetry publish

.github/workflows/retag.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: retag
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
username:
7+
description: "The username to use for the container registry"
8+
required: true
9+
type: string
10+
source:
11+
description: "The image to retag, example: example.azurecr.io/ubuntu:latest"
12+
required: true
13+
type: string
14+
tag:
15+
description: "The new tag to apply to the image, example: v1.0.0"
16+
required: true
17+
type: string
18+
secrets:
19+
password:
20+
description: "The password to use for the container registry"
21+
required: true
22+
23+
jobs:
24+
retag:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/setup-python@v5
28+
with:
29+
python-version: "3.12"
30+
- run: pip install container-tagbot
31+
- run: tagbot \
32+
--username ${{ github.event.inputs.username }} \
33+
--password ${{ secrets.password }} \
34+
--source ${{ github.event.source.image }} \
35+
--tag ${{ github.event.inputs.tag }}

.gitignore

Lines changed: 79 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,3 @@
1-
2-
# Created by https://www.gitignore.io/api/macos,python
3-
# Edit at https://www.gitignore.io/?templates=macos,python
4-
5-
### macOS ###
6-
# General
7-
.DS_Store
8-
.AppleDouble
9-
.LSOverride
10-
11-
# Icon must end with two \r
12-
Icon
13-
14-
# Thumbnails
15-
._*
16-
17-
# Files that might appear in the root of a volume
18-
.DocumentRevisions-V100
19-
.fseventsd
20-
.Spotlight-V100
21-
.TemporaryItems
22-
.Trashes
23-
.VolumeIcon.icns
24-
.com.apple.timemachine.donotpresent
25-
26-
# Directories potentially created on remote AFP share
27-
.AppleDB
28-
.AppleDesktop
29-
Network Trash Folder
30-
Temporary Items
31-
.apdisk
32-
33-
### Python ###
341
# Byte-compiled / optimized / DLL files
352
__pycache__/
363
*.py[cod]
@@ -53,7 +20,6 @@ parts/
5320
sdist/
5421
var/
5522
wheels/
56-
pip-wheel-metadata/
5723
share/python-wheels/
5824
*.egg-info/
5925
.installed.cfg
@@ -80,8 +46,10 @@ htmlcov/
8046
nosetests.xml
8147
coverage.xml
8248
*.cover
49+
*.py,cover
8350
.hypothesis/
8451
.pytest_cache/
52+
cover/
8553

8654
# Translations
8755
*.mo
@@ -104,6 +72,7 @@ instance/
10472
docs/_build/
10573

10674
# PyBuilder
75+
.pybuilder/
10776
target/
10877

10978
# Jupyter Notebook
@@ -114,7 +83,9 @@ profile_default/
11483
ipython_config.py
11584

11685
# pyenv
117-
.python-version
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
11889

11990
# pipenv
12091
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
@@ -123,8 +94,27 @@ ipython_config.py
12394
# install all needed dependencies.
12495
#Pipfile.lock
12596

126-
# celery beat schedule file
97+
# poetry
98+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102+
#poetry.lock
103+
104+
# pdm
105+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106+
#pdm.lock
107+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108+
# in version control.
109+
# https://pdm.fming.dev/#use-with-ide
110+
.pdm.toml
111+
112+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113+
__pypackages__/
114+
115+
# Celery stuff
127116
celerybeat-schedule
117+
celerybeat.pid
128118

129119
# SageMath parsed files
130120
*.sage.py
@@ -156,6 +146,57 @@ dmypy.json
156146
# Pyre type checker
157147
.pyre/
158148

159-
# End of https://www.gitignore.io/api/macos,python
149+
# pytype static type analyzer
150+
.pytype/
151+
152+
# Cython debug symbols
153+
cython_debug/
154+
155+
# PyCharm
156+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158+
# and can be added to the global gitignore or merged into this file. For a more nuclear
159+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160+
#.idea/
161+
162+
# General
163+
.DS_Store
164+
.AppleDouble
165+
.LSOverride
166+
167+
# Icon must end with two \r
168+
Icon
169+
170+
171+
# Thumbnails
172+
._*
173+
174+
# Files that might appear in the root of a volume
175+
.DocumentRevisions-V100
176+
.fseventsd
177+
.Spotlight-V100
178+
.TemporaryItems
179+
.Trashes
180+
.VolumeIcon.icns
181+
.com.apple.timemachine.donotpresent
182+
183+
# Directories potentially created on remote AFP share
184+
.AppleDB
185+
.AppleDesktop
186+
Network Trash Folder
187+
Temporary Items
188+
.apdisk
189+
190+
*~
191+
192+
# temporary files which can be created if a process still has a handle open of a deleted file
193+
.fuse_hidden*
194+
195+
# KDE directory preferences
196+
.directory
197+
198+
# Linux trash folder which might appear on any partition or disk
199+
.Trash-*
160200

161-
.vscode
201+
# .nfs files are created when an open file is removed but is still being accessed
202+
.nfs*

Dockerfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Bink
3+
Copyright (c) 2024 Bink
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Pipfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)