Skip to content

Commit f5f22ed

Browse files
author
Tom Softreck
committed
Merge remote-tracking branch 'origin/main'
# Conflicts: # .gitignore
2 parents 6b1746c + 7250fb0 commit f5f22ed

File tree

449 files changed

+8980
-315
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

449 files changed

+8980
-315
lines changed

.github/workflows/python-app.yml

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

.github/workflows/python-publish.yml

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

.github/workflows/release.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
2+
name: Publish Python Package
3+
4+
on:
5+
push:
6+
branches:
7+
- "main"
8+
pull_request:
9+
branches:
10+
- "main"
11+
release:
12+
types: [published]
13+
14+
permissions:
15+
contents: read
16+
id-token: write
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v3
27+
with:
28+
python-version: '3.x'
29+
30+
- name: Install dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install flake8 pytest hatchling
34+
35+
# - name: Generate __init__.py
36+
# run: python generate_init.py # Run the script to generate __init__.py
37+
38+
- name: Install project dependencies
39+
run: |
40+
python -m pip install -r requirements.txt
41+
42+
- name: Lint with flake8
43+
run: |
44+
# Stop the build if there are Python syntax errors or undefined names
45+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
46+
# Exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
47+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
48+
49+
# - name: Test with pytest
50+
# run: pytest
51+
52+
publish:
53+
needs: build
54+
runs-on: ubuntu-latest
55+
environment: release
56+
permissions:
57+
# IMPORTANT: this permission is mandatory for trusted publishing
58+
id-token: write
59+
60+
steps:
61+
- uses: actions/checkout@v3
62+
63+
- name: Set up Python
64+
uses: actions/setup-python@v3
65+
with:
66+
python-version: '3.x'
67+
68+
- name: Install build dependencies
69+
run: |
70+
python -m pip install --upgrade pip
71+
pip install build hatchling
72+
73+
# - name: Generate __init__.py
74+
# run: python generate_init.py # Run the script to generate __init__.py
75+
76+
- name: Install project dependencies
77+
run: |
78+
python -m pip install -r requirements.txt
79+
80+
- name: Build package
81+
run: python -m build
82+
83+
- name: Publish package to PyPI
84+
uses: pypa/gh-action-pypi-publish@release/v1
85+
with:
86+
user: __token__
87+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
.idea
2+
pyproject.toml.bak
3+
.bak
4+
.log
5+
example_invoice.pdf
6+
example_invoice_base64.txt
7+
requirements.txt.backup
28
# Byte-compiled / optimized / DLL files
39
__pycache__/
410
*.py[cod]
@@ -159,3 +165,210 @@ cython_debug/
159165
# and can be added to the global gitignore or merged into this file. For a more nuclear
160166
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
161167
#.idea/
168+
.token
169+
170+
.run
171+
.idea
172+
reports
173+
venv_test
174+
mcp_test
175+
twinizer-0
176+
test_output.txt
177+
.env
178+
.wav
179+
*.wav
180+
.mp3
181+
*.mp3
182+
.mp4
183+
*.mp4
184+
.jpg
185+
*.jpg
186+
.png
187+
*.png
188+
storage
189+
test_storage
190+
pyproject.toml.bak
191+
.bak
192+
.log
193+
requirements.txt.backup
194+
testfile.txt
195+
.flatedit.logs.txt
196+
.logs.txt
197+
.logs
198+
.py.bak
199+
*.py.bak
200+
mcp.code-workspace
201+
# Byte-compiled / optimized / DLL files
202+
__pycache__/
203+
*.py[cod]
204+
*$py.class
205+
python-sdk
206+
# C extensions
207+
*.so
208+
209+
# Distribution / packaging
210+
.Python
211+
build/
212+
develop-eggs/
213+
dist/
214+
downloads/
215+
eggs/
216+
.eggs/
217+
lib/
218+
lib64/
219+
parts/
220+
sdist/
221+
var/
222+
wheels/
223+
share/python-wheels/
224+
*.egg-info/
225+
.installed.cfg
226+
*.egg
227+
MANIFEST
228+
229+
# PyInstaller
230+
# Usually these files are written by a python script from a template
231+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
232+
*.manifest
233+
*.spec
234+
235+
# Installer logs
236+
pip-log.txt
237+
pip-delete-this-directory.txt
238+
239+
# Unit test / coverage reports
240+
htmlcov/
241+
.tox/
242+
.nox/
243+
.coverage
244+
.coverage.*
245+
.cache
246+
nosetests.xml
247+
coverage.xml
248+
*.cover
249+
*.py,cover
250+
.hypothesis/
251+
.pytest_cache/
252+
cover/
253+
254+
# Translations
255+
*.mo
256+
*.pot
257+
258+
# Django stuff:
259+
*.log
260+
local_settings.py
261+
db.sqlite3
262+
db.sqlite3-journal
263+
264+
# Flask stuff:
265+
instance/
266+
.webassets-cache
267+
268+
# Scrapy stuff:
269+
.scrapy
270+
271+
# Sphinx documentation
272+
docs/_build/
273+
274+
# PyBuilder
275+
.pybuilder/
276+
target/
277+
278+
# Jupyter Notebook
279+
.ipynb_checkpoints
280+
281+
# IPython
282+
profile_default/
283+
ipython_config.py
284+
285+
# pyenv
286+
# For a library or package, you might want to ignore these files since the code is
287+
# intended to run in multiple environments; otherwise, check them in:
288+
# .python-version
289+
290+
# pipenv
291+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
292+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
293+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
294+
# install all needed dependencies.
295+
#Pipfile.lock
296+
297+
# UV
298+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
299+
# This is especially recommended for binary packages to ensure reproducibility, and is more
300+
# commonly ignored for libraries.
301+
#uv.lock
302+
303+
# poetry
304+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
305+
# This is especially recommended for binary packages to ensure reproducibility, and is more
306+
# commonly ignored for libraries.
307+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
308+
#poetry.lock
309+
310+
# pdm
311+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
312+
#pdm.lock
313+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
314+
# in version control.
315+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
316+
.pdm.toml
317+
.pdm-python
318+
.pdm-build/
319+
320+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
321+
__pypackages__/
322+
323+
# Celery stuff
324+
celerybeat-schedule
325+
celerybeat.pid
326+
327+
# SageMath parsed files
328+
*.sage.py
329+
330+
# Environments
331+
.env
332+
.venv
333+
env/
334+
venv/
335+
ENV/
336+
env.bak/
337+
venv.bak/
338+
339+
# Spyder project settings
340+
.spyderproject
341+
.spyproject
342+
343+
# Rope project settings
344+
.ropeproject
345+
346+
# mkdocs documentation
347+
/site
348+
349+
# mypy
350+
.mypy_cache/
351+
.dmypy.json
352+
dmypy.json
353+
354+
# Pyre type checker
355+
.pyre/
356+
357+
# pytype static type analyzer
358+
.pytype/
359+
360+
# Cython debug symbols
361+
cython_debug/
362+
363+
# PyCharm
364+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
365+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
366+
# and can be added to the global gitignore or merged into this file. For a more nuclear
367+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
368+
#.idea/
369+
370+
# Ruff stuff:
371+
.ruff_cache/
372+
373+
# PyPI configuration file
374+
.pypirc

.idea/.gitignore

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

0 commit comments

Comments
 (0)