odt2xml 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odt2xml-1.0.0/.github/workflows/ci.yaml +44 -0
- odt2xml-1.0.0/.github/workflows/release.yaml +36 -0
- odt2xml-1.0.0/.pre-commit-config.yaml +19 -0
- odt2xml-1.0.0/.pre-commit-hooks.yaml +8 -0
- odt2xml-1.0.0/LICENSE +674 -0
- odt2xml-1.0.0/PKG-INFO +73 -0
- odt2xml-1.0.0/README.md +62 -0
- odt2xml-1.0.0/pyproject.toml +31 -0
- odt2xml-1.0.0/setup.cfg +4 -0
- odt2xml-1.0.0/src/odt2xml/__init__.py +1 -0
- odt2xml-1.0.0/src/odt2xml/__main__.py +3 -0
- odt2xml-1.0.0/src/odt2xml/cli.py +44 -0
- odt2xml-1.0.0/src/odt2xml/convert.py +90 -0
- odt2xml-1.0.0/src/odt2xml/hook.py +42 -0
- odt2xml-1.0.0/src/odt2xml.egg-info/PKG-INFO +73 -0
- odt2xml-1.0.0/src/odt2xml.egg-info/SOURCES.txt +32 -0
- odt2xml-1.0.0/src/odt2xml.egg-info/dependency_links.txt +1 -0
- odt2xml-1.0.0/src/odt2xml.egg-info/entry_points.txt +3 -0
- odt2xml-1.0.0/src/odt2xml.egg-info/requires.txt +1 -0
- odt2xml-1.0.0/src/odt2xml.egg-info/scm_file_list.json +28 -0
- odt2xml-1.0.0/src/odt2xml.egg-info/scm_version.json +8 -0
- odt2xml-1.0.0/src/odt2xml.egg-info/top_level.txt +1 -0
- odt2xml-1.0.0/tests/ReferenceFile.odt +0 -0
- odt2xml-1.0.0/tests/ReferenceFile.odt.extracted/META-INF/manifest.xml +12 -0
- odt2xml-1.0.0/tests/ReferenceFile.odt.extracted/Pictures/10000001000004000000023B2A148D56.png +0 -0
- odt2xml-1.0.0/tests/ReferenceFile.odt.extracted/Thumbnails/thumbnail.png +0 -0
- odt2xml-1.0.0/tests/ReferenceFile.odt.extracted/content.xml +47 -0
- odt2xml-1.0.0/tests/ReferenceFile.odt.extracted/manifest.rdf +18 -0
- odt2xml-1.0.0/tests/ReferenceFile.odt.extracted/meta.xml +11 -0
- odt2xml-1.0.0/tests/ReferenceFile.odt.extracted/mimetype +1 -0
- odt2xml-1.0.0/tests/ReferenceFile.odt.extracted/settings.xml +159 -0
- odt2xml-1.0.0/tests/ReferenceFile.odt.extracted/styles.xml +193 -0
- odt2xml-1.0.0/tests/test_cli.py +45 -0
- odt2xml-1.0.0/tests/test_convert.py +94 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
|
3
|
+
|
|
4
|
+
name: CI
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [main]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [main]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
tests:
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
os:
|
|
17
|
+
- ubuntu-latest
|
|
18
|
+
python-version:
|
|
19
|
+
- '3.15'
|
|
20
|
+
|
|
21
|
+
name: ${{ matrix.os }}-py${{ matrix.python-version }} ${{ matrix.label }}
|
|
22
|
+
runs-on: ${{ matrix.os }}
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v2
|
|
26
|
+
|
|
27
|
+
- name: Install system dependencies
|
|
28
|
+
run: sudo apt-get update && sudo apt-get install -y libxml2-utils
|
|
29
|
+
|
|
30
|
+
- name: Set up python
|
|
31
|
+
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
|
|
32
|
+
with:
|
|
33
|
+
python-version: ${{ matrix.python-version }}
|
|
34
|
+
|
|
35
|
+
- name: Install with dependencies
|
|
36
|
+
run: uv sync --dev
|
|
37
|
+
|
|
38
|
+
- name: Type checking
|
|
39
|
+
shell: bash
|
|
40
|
+
run: uv run ty check
|
|
41
|
+
|
|
42
|
+
- name: Run pytest
|
|
43
|
+
shell: bash
|
|
44
|
+
run: uv run pytest --color=yes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags:
|
|
5
|
+
- v* # format M.m.p
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build-lib:
|
|
9
|
+
name: Build inspect and upload artifacts
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v7.0.1
|
|
13
|
+
with:
|
|
14
|
+
persist-credentials: false
|
|
15
|
+
fetch-depth: 0
|
|
16
|
+
- uses: hynek/build-and-inspect-python-package@67230f7b8410ae0052b39c1efc89d89fff43ff10 # v3.0.2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
pypi-publish:
|
|
20
|
+
name: Upload release to PyPI
|
|
21
|
+
needs: [build-lib]
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
environment:
|
|
24
|
+
name: charactergenerator
|
|
25
|
+
url: https://pypi.org/p/odt2xml
|
|
26
|
+
permissions:
|
|
27
|
+
id-token: write
|
|
28
|
+
steps:
|
|
29
|
+
- name: Download distributions
|
|
30
|
+
uses: actions/download-artifact@v8
|
|
31
|
+
with:
|
|
32
|
+
name: Packages
|
|
33
|
+
path: dist
|
|
34
|
+
|
|
35
|
+
- name: Publish package distributions to PyPI
|
|
36
|
+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.3
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-yaml
|
|
6
|
+
- id: end-of-file-fixer
|
|
7
|
+
exclude: ^tests/ReferenceFile.odt.extracted/
|
|
8
|
+
- id: trailing-whitespace
|
|
9
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
10
|
+
rev: v0.17.6
|
|
11
|
+
hooks:
|
|
12
|
+
- id: ruff-format
|
|
13
|
+
- id: ruff
|
|
14
|
+
args: [--fix]
|
|
15
|
+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
16
|
+
rev: v2.16.0
|
|
17
|
+
hooks:
|
|
18
|
+
- id: pretty-format-yaml
|
|
19
|
+
args: [--autofix, --indent, '2']
|