steam-editor-tools 0.1.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.
- steam_editor_tools-0.1.0/.flake8 +13 -0
- steam_editor_tools-0.1.0/.gitattributes +21 -0
- steam_editor_tools-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +89 -0
- steam_editor_tools-0.1.0/.github/ISSUE_TEMPLATE/docs_request.yml +47 -0
- steam_editor_tools-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +55 -0
- steam_editor_tools-0.1.0/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +33 -0
- steam_editor_tools-0.1.0/.github/PULL_REQUEST_TEMPLATE/pull_request_template.yml +50 -0
- steam_editor_tools-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +33 -0
- steam_editor_tools-0.1.0/.github/workflows/python-package.yml +39 -0
- steam_editor_tools-0.1.0/.github/workflows/python-publish.yml +42 -0
- steam_editor_tools-0.1.0/.gitignore +249 -0
- steam_editor_tools-0.1.0/CODE_OF_CONDUCT.md +128 -0
- steam_editor_tools-0.1.0/CONTRIBUTING.md +209 -0
- steam_editor_tools-0.1.0/Changelog.md +29 -0
- steam_editor_tools-0.1.0/Dockerfile +37 -0
- steam_editor_tools-0.1.0/Dockerfile.dockerignore +243 -0
- steam_editor_tools-0.1.0/LICENSE +21 -0
- steam_editor_tools-0.1.0/MANIFEST.in +10 -0
- steam_editor_tools-0.1.0/PKG-INFO +219 -0
- steam_editor_tools-0.1.0/README.md +160 -0
- steam_editor_tools-0.1.0/SECURITY.md +21 -0
- steam_editor_tools-0.1.0/classifiers.txt +17 -0
- steam_editor_tools-0.1.0/conftest.py +30 -0
- steam_editor_tools-0.1.0/create_test_files.py +210 -0
- steam_editor_tools-0.1.0/display/docker-dev.png +0 -0
- steam_editor_tools-0.1.0/display/docker-hello-world.png +0 -0
- steam_editor_tools-0.1.0/display/docker-pytest.png +0 -0
- steam_editor_tools-0.1.0/display/logo-banner.webp +0 -0
- steam_editor_tools-0.1.0/docker/entrypoint.sh +85 -0
- steam_editor_tools-0.1.0/docker/install.sh +94 -0
- steam_editor_tools-0.1.0/docker/requirements-docker.txt +30 -0
- steam_editor_tools-0.1.0/examples/create_a_title_figure.py +82 -0
- steam_editor_tools-0.1.0/examples/create_logo.py +387 -0
- steam_editor_tools-0.1.0/examples/download_a_guide.py +56 -0
- steam_editor_tools-0.1.0/examples/download_screenshots.py +103 -0
- steam_editor_tools-0.1.0/examples/markdown.md +39 -0
- steam_editor_tools-0.1.0/examples/markdown_to_bbcode.py +51 -0
- steam_editor_tools-0.1.0/examples/save_description_of_a_game.py +108 -0
- steam_editor_tools-0.1.0/logo.png +0 -0
- steam_editor_tools-0.1.0/logo.svg +40 -0
- steam_editor_tools-0.1.0/py-description.txt +1 -0
- steam_editor_tools-0.1.0/pyproject.toml +128 -0
- steam_editor_tools-0.1.0/requirements-dev.txt +9 -0
- steam_editor_tools-0.1.0/requirements.txt +8 -0
- steam_editor_tools-0.1.0/setup.cfg +4 -0
- steam_editor_tools-0.1.0/setup.py +28 -0
- steam_editor_tools-0.1.0/steam-etools.code-workspace +63 -0
- steam_editor_tools-0.1.0/steam_editor_tools/__init__.py +76 -0
- steam_editor_tools-0.1.0/steam_editor_tools/bbcode/__init__.py +54 -0
- steam_editor_tools-0.1.0/steam_editor_tools/bbcode/guide.py +389 -0
- steam_editor_tools-0.1.0/steam_editor_tools/bbcode/nodes.py +323 -0
- steam_editor_tools-0.1.0/steam_editor_tools/bbcode/parser.py +453 -0
- steam_editor_tools-0.1.0/steam_editor_tools/bbcode/renderer.py +328 -0
- steam_editor_tools-0.1.0/steam_editor_tools/improc/__init__.py +69 -0
- steam_editor_tools-0.1.0/steam_editor_tools/improc/data.py +305 -0
- steam_editor_tools-0.1.0/steam_editor_tools/improc/latex_to_img.py +200 -0
- steam_editor_tools-0.1.0/steam_editor_tools/improc/renderer.py +1644 -0
- steam_editor_tools-0.1.0/steam_editor_tools/improc/tools.py +84 -0
- steam_editor_tools-0.1.0/steam_editor_tools/improc/variables.py +80 -0
- steam_editor_tools-0.1.0/steam_editor_tools/steaminfo/__init__.py +52 -0
- steam_editor_tools-0.1.0/steam_editor_tools/steaminfo/data.py +342 -0
- steam_editor_tools-0.1.0/steam_editor_tools/steaminfo/query.py +138 -0
- steam_editor_tools-0.1.0/steam_editor_tools/steaminfo/utils.py +63 -0
- steam_editor_tools-0.1.0/steam_editor_tools/utils.py +104 -0
- steam_editor_tools-0.1.0/steam_editor_tools/version.py +23 -0
- steam_editor_tools-0.1.0/steam_editor_tools.egg-info/PKG-INFO +219 -0
- steam_editor_tools-0.1.0/steam_editor_tools.egg-info/SOURCES.txt +98 -0
- steam_editor_tools-0.1.0/steam_editor_tools.egg-info/dependency_links.txt +1 -0
- steam_editor_tools-0.1.0/steam_editor_tools.egg-info/requires.txt +26 -0
- steam_editor_tools-0.1.0/steam_editor_tools.egg-info/top_level.txt +1 -0
- steam_editor_tools-0.1.0/steam_editor_tools.egg-info/zip-safe +1 -0
- steam_editor_tools-0.1.0/test.json +14685 -0
- steam_editor_tools-0.1.0/tests/__init__.py +20 -0
- steam_editor_tools-0.1.0/tests/data/Roboto-Regular.ttf +0 -0
- steam_editor_tools-0.1.0/tests/data/example.bbcode +93 -0
- steam_editor_tools-0.1.0/tests/data/example.html +90 -0
- steam_editor_tools-0.1.0/tests/data/example.json +629 -0
- steam_editor_tools-0.1.0/tests/data/example.md +86 -0
- steam_editor_tools-0.1.0/tests/data/example.png +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-bottom_center.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-bottom_left.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-bottom_right.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-center.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-complicated.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-crop.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-expand.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-img_and_text.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-left.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-near.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-resize.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-right.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-text.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-top_center.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-top_left.webp +0 -0
- steam_editor_tools-0.1.0/tests/data/ref-top_right.webp +0 -0
- steam_editor_tools-0.1.0/tests/requirements.txt +12 -0
- steam_editor_tools-0.1.0/tests/test_bbcode.py +102 -0
- steam_editor_tools-0.1.0/tests/test_improc.py +371 -0
- steam_editor_tools-0.1.0/tests/test_steaminfo.py +181 -0
- steam_editor_tools-0.1.0/version/__init__.py +81 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[flake8]
|
|
2
|
+
# Recommend matching the black line length (default 88),
|
|
3
|
+
# rather than using the flake8 default of 79:
|
|
4
|
+
max-line-length = 88
|
|
5
|
+
extend-ignore =
|
|
6
|
+
# See https://github.com/PyCQA/pycodestyle/issues/373
|
|
7
|
+
E203, E501, W503, E701, E704
|
|
8
|
+
exclude =
|
|
9
|
+
./deps
|
|
10
|
+
./inst
|
|
11
|
+
./man
|
|
12
|
+
./docs
|
|
13
|
+
./alpha-*.py
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Auto detect text files and perform LF normalization
|
|
2
|
+
* text=auto
|
|
3
|
+
|
|
4
|
+
# Declare files that will always have LF line endings on checkout.
|
|
5
|
+
*.sh text eol=lf
|
|
6
|
+
*.bash text eol=lf
|
|
7
|
+
/Dockerfile text eol=lf
|
|
8
|
+
*.cmd text eol=crlf
|
|
9
|
+
*.bat text eol=crlf
|
|
10
|
+
*.txt text eol=lf
|
|
11
|
+
*.svg text eol=lf
|
|
12
|
+
*.json text eol=lf
|
|
13
|
+
|
|
14
|
+
# Denote all files that are truly binary and should not be modified.
|
|
15
|
+
*.png binary
|
|
16
|
+
*.jpg binary
|
|
17
|
+
*.webp binary
|
|
18
|
+
*.ico binary
|
|
19
|
+
*.pdf binary
|
|
20
|
+
*.xls binary
|
|
21
|
+
*.xlsx binary
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Something is not working correctly.
|
|
3
|
+
title: "[BUG]"
|
|
4
|
+
labels:
|
|
5
|
+
- bug
|
|
6
|
+
- to be solved
|
|
7
|
+
|
|
8
|
+
body:
|
|
9
|
+
- type: checkboxes
|
|
10
|
+
attributes:
|
|
11
|
+
label: Get started
|
|
12
|
+
options:
|
|
13
|
+
- label: >-
|
|
14
|
+
I have read [Contributing guidelines](https://github.com/cainmagi/steam-editor-tools/blob/main/CONTRIBUTING.md).
|
|
15
|
+
required: true
|
|
16
|
+
- label: >-
|
|
17
|
+
I agree to follow the [Code of Conduct](https://github.com/cainmagi/steam-editor-tools/blob/main/CODE_OF_CONDUCT.md).
|
|
18
|
+
required: true
|
|
19
|
+
- label: >-
|
|
20
|
+
I have confirmed that my issue is not duplicated with an existing issue.
|
|
21
|
+
required: true
|
|
22
|
+
|
|
23
|
+
- type: textarea
|
|
24
|
+
attributes:
|
|
25
|
+
label: Description
|
|
26
|
+
description: >-
|
|
27
|
+
A clear and concise description of what the bug is.
|
|
28
|
+
validations:
|
|
29
|
+
required: true
|
|
30
|
+
|
|
31
|
+
- type: textarea
|
|
32
|
+
attributes:
|
|
33
|
+
label: To Reproduce
|
|
34
|
+
description: >-
|
|
35
|
+
Steps to reproduce the behavior. Instead of describing the steps, you could also provide your codes related to the error here.
|
|
36
|
+
value: |
|
|
37
|
+
1. Get package from '...'
|
|
38
|
+
2. Then run '...'
|
|
39
|
+
3. An error occurs.
|
|
40
|
+
|
|
41
|
+
- type: textarea
|
|
42
|
+
attributes:
|
|
43
|
+
label: Traceback
|
|
44
|
+
description: >-
|
|
45
|
+
The python traceback of the bug. If there is no traceback, please describe (1) The expected behaviors. (2) The actual behaviors.
|
|
46
|
+
render: bash
|
|
47
|
+
|
|
48
|
+
- type: textarea
|
|
49
|
+
attributes:
|
|
50
|
+
label: Behaviors
|
|
51
|
+
description: >-
|
|
52
|
+
If there is no traceback, please describe (1) The expected behaviors. (2) The actual behaviors.
|
|
53
|
+
value: |
|
|
54
|
+
1. The expected behaviors:
|
|
55
|
+
2. The actual behaviors:
|
|
56
|
+
|
|
57
|
+
- type: textarea
|
|
58
|
+
attributes:
|
|
59
|
+
label: Screenshots
|
|
60
|
+
description: >-
|
|
61
|
+
If applicable, add screenshots to help explain your problem.
|
|
62
|
+
|
|
63
|
+
- type: input
|
|
64
|
+
attributes:
|
|
65
|
+
label: OS
|
|
66
|
+
description: >-
|
|
67
|
+
e.g. Ubuntu 24.04, Debian 13, Windows 11 25H2
|
|
68
|
+
validations:
|
|
69
|
+
required: true
|
|
70
|
+
- type: input
|
|
71
|
+
attributes:
|
|
72
|
+
label: Python version
|
|
73
|
+
description: >-
|
|
74
|
+
e.g. 3.14
|
|
75
|
+
validations:
|
|
76
|
+
required: true
|
|
77
|
+
- type: input
|
|
78
|
+
attributes:
|
|
79
|
+
label: Steam Editor Tools version
|
|
80
|
+
description: >-
|
|
81
|
+
e.g. 0.1.x
|
|
82
|
+
validations:
|
|
83
|
+
required: true
|
|
84
|
+
|
|
85
|
+
- type: textarea
|
|
86
|
+
attributes:
|
|
87
|
+
label: Additional context
|
|
88
|
+
description: >-
|
|
89
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: Docs request
|
|
2
|
+
description: Report a problem or a request for the docs.
|
|
3
|
+
title: "[Docs]"
|
|
4
|
+
labels:
|
|
5
|
+
- documentation
|
|
6
|
+
- to be solved
|
|
7
|
+
|
|
8
|
+
body:
|
|
9
|
+
- type: checkboxes
|
|
10
|
+
attributes:
|
|
11
|
+
label: Get started
|
|
12
|
+
options:
|
|
13
|
+
- label: >-
|
|
14
|
+
I have read [Contributing guidelines](https://github.com/cainmagi/steam-editor-tools/blob/main/CONTRIBUTING.md).
|
|
15
|
+
required: true
|
|
16
|
+
- label: >-
|
|
17
|
+
I agree to follow the [Code of Conduct](https://github.com/cainmagi/steam-editor-tools/blob/main/CODE_OF_CONDUCT.md).
|
|
18
|
+
required: true
|
|
19
|
+
- label: >-
|
|
20
|
+
I have confirmed that my issue is not duplicated with an existing issue.
|
|
21
|
+
required: true
|
|
22
|
+
|
|
23
|
+
- type: textarea
|
|
24
|
+
attributes:
|
|
25
|
+
label: Problem
|
|
26
|
+
description: >-
|
|
27
|
+
If you meet any problems with the documentation, please describe your problems here.
|
|
28
|
+
|
|
29
|
+
- type: textarea
|
|
30
|
+
attributes:
|
|
31
|
+
label: Required feature
|
|
32
|
+
description: >-
|
|
33
|
+
If you need more explanations in the documentation, please describe your needs here.
|
|
34
|
+
|
|
35
|
+
- type: input
|
|
36
|
+
attributes:
|
|
37
|
+
label: Steam Editor Tools version
|
|
38
|
+
description: >-
|
|
39
|
+
e.g. 0.1.x
|
|
40
|
+
validations:
|
|
41
|
+
required: true
|
|
42
|
+
|
|
43
|
+
- type: textarea
|
|
44
|
+
attributes:
|
|
45
|
+
label: Additional context
|
|
46
|
+
description: >-
|
|
47
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Suggest an idea for this project
|
|
3
|
+
title: "[Feature]"
|
|
4
|
+
labels:
|
|
5
|
+
- enhancement
|
|
6
|
+
- to be solved
|
|
7
|
+
|
|
8
|
+
body:
|
|
9
|
+
- type: checkboxes
|
|
10
|
+
attributes:
|
|
11
|
+
label: Get started
|
|
12
|
+
options:
|
|
13
|
+
- label: >-
|
|
14
|
+
I have read [Contributing guidelines](https://github.com/cainmagi/steam-editor-tools/blob/main/CONTRIBUTING.md).
|
|
15
|
+
required: true
|
|
16
|
+
- label: >-
|
|
17
|
+
I agree to follow the [Code of Conduct](https://github.com/cainmagi/steam-editor-tools/blob/main/CODE_OF_CONDUCT.md).
|
|
18
|
+
required: true
|
|
19
|
+
- label: >-
|
|
20
|
+
I have confirmed that my issue is not duplicated with an existing issue.
|
|
21
|
+
required: true
|
|
22
|
+
|
|
23
|
+
- type: textarea
|
|
24
|
+
attributes:
|
|
25
|
+
label: Problem
|
|
26
|
+
description: >-
|
|
27
|
+
If your feature request is related to a problem, please describe the problem clearly and concisely.
|
|
28
|
+
|
|
29
|
+
- type: textarea
|
|
30
|
+
attributes:
|
|
31
|
+
label: Required feature
|
|
32
|
+
description: >-
|
|
33
|
+
A clear and concise description of what you want to happen.
|
|
34
|
+
validations:
|
|
35
|
+
required: true
|
|
36
|
+
|
|
37
|
+
- type: textarea
|
|
38
|
+
attributes:
|
|
39
|
+
label: Alternative solution
|
|
40
|
+
description: >-
|
|
41
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
42
|
+
|
|
43
|
+
- type: input
|
|
44
|
+
attributes:
|
|
45
|
+
label: Steam Editor Tools version
|
|
46
|
+
description: >-
|
|
47
|
+
e.g. 0.1.x
|
|
48
|
+
validations:
|
|
49
|
+
required: true
|
|
50
|
+
|
|
51
|
+
- type: textarea
|
|
52
|
+
attributes:
|
|
53
|
+
label: Additional context
|
|
54
|
+
description: >-
|
|
55
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Pull request
|
|
2
|
+
|
|
3
|
+
## Get started
|
|
4
|
+
|
|
5
|
+
- [ ] I have read [Contributing guidelines](https://github.com/cainmagi/steam-editor-tools/blob/main/CONTRIBUTING.md).
|
|
6
|
+
- [ ] I agree to follow the [Code of Conduct](https://github.com/cainmagi/steam-editor-tools/blob/main/CODE_OF_CONDUCT.md).
|
|
7
|
+
- [ ] I have confirmed that my pull request (PR) is not duplicated with an existing PR.
|
|
8
|
+
- [ ] I have confirmed that my pull request (PR) passes the testing workflow of the project.
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
|
|
12
|
+
Describe what you have done with this PR. List any dependencies that are required for this change.
|
|
13
|
+
|
|
14
|
+
If your PR is designed for an issue, please refer to the issue by the following example:
|
|
15
|
+
|
|
16
|
+
Fixes # (issue)
|
|
17
|
+
|
|
18
|
+
## Updated report
|
|
19
|
+
|
|
20
|
+
Please summarize your modifications as an itemized report.
|
|
21
|
+
|
|
22
|
+
1. Update ...
|
|
23
|
+
2. Add ...
|
|
24
|
+
|
|
25
|
+
## Information
|
|
26
|
+
|
|
27
|
+
Please provide the following information about your PR:
|
|
28
|
+
|
|
29
|
+
- Steam Editor Tools version:
|
|
30
|
+
|
|
31
|
+
## Additional context
|
|
32
|
+
|
|
33
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Pull request
|
|
2
|
+
description: Send a pull request (PR) for this project.
|
|
3
|
+
title: "[PR]"
|
|
4
|
+
|
|
5
|
+
body:
|
|
6
|
+
- type: checkboxes
|
|
7
|
+
attributes:
|
|
8
|
+
label: Get started
|
|
9
|
+
options:
|
|
10
|
+
- label: >-
|
|
11
|
+
I have read [Contributing guidelines](https://github.com/cainmagi/steam-editor-tools/blob/main/CONTRIBUTING.md).
|
|
12
|
+
required: true
|
|
13
|
+
- label: >-
|
|
14
|
+
I agree to follow the [Code of Conduct](https://github.com/cainmagi/steam-editor-tools/blob/main/CODE_OF_CONDUCT.md).
|
|
15
|
+
required: true
|
|
16
|
+
- label: >-
|
|
17
|
+
I have confirmed that my pull request (PR) is not duplicated with an existing PR.
|
|
18
|
+
required: true
|
|
19
|
+
- label: >-
|
|
20
|
+
I have confirmed that my pull request (PR) passes the testing workflow of the project.
|
|
21
|
+
required: true
|
|
22
|
+
|
|
23
|
+
- type: textarea
|
|
24
|
+
attributes:
|
|
25
|
+
label: Description
|
|
26
|
+
description: >-
|
|
27
|
+
Describe what you have done with this PR.
|
|
28
|
+
|
|
29
|
+
- type: textarea
|
|
30
|
+
attributes:
|
|
31
|
+
label: Updated report
|
|
32
|
+
description: >-
|
|
33
|
+
Summarize your modifications as itemized report.
|
|
34
|
+
value: |
|
|
35
|
+
1. Update ...
|
|
36
|
+
2. Add ...
|
|
37
|
+
|
|
38
|
+
- type: input
|
|
39
|
+
attributes:
|
|
40
|
+
label: Steam Editor Tools version
|
|
41
|
+
description: >-
|
|
42
|
+
e.g. 0.1.x
|
|
43
|
+
validations:
|
|
44
|
+
required: true
|
|
45
|
+
|
|
46
|
+
- type: textarea
|
|
47
|
+
attributes:
|
|
48
|
+
label: Additional context
|
|
49
|
+
description: >-
|
|
50
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Pull request
|
|
2
|
+
|
|
3
|
+
## Get started
|
|
4
|
+
|
|
5
|
+
- [ ] I have read [Contributing guidelines](https://github.com/cainmagi/steam-editor-tools/blob/main/CONTRIBUTING.md).
|
|
6
|
+
- [ ] I agree to follow the [Code of Conduct](https://github.com/cainmagi/steam-editor-tools/blob/main/CODE_OF_CONDUCT.md).
|
|
7
|
+
- [ ] I have confirmed that my pull request (PR) is not duplicated with an existing PR.
|
|
8
|
+
- [ ] I have confirmed that my pull request (PR) passes the testing workflow of the project.
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
|
|
12
|
+
Describe what you have done with this PR. List any dependencies that are required for this change.
|
|
13
|
+
|
|
14
|
+
If your PR is designed for an issue, please refer to the issue by the following example:
|
|
15
|
+
|
|
16
|
+
Fixes # (issue)
|
|
17
|
+
|
|
18
|
+
## Updated report
|
|
19
|
+
|
|
20
|
+
Please summarize your modifications as an itemized report.
|
|
21
|
+
|
|
22
|
+
1. Update ...
|
|
23
|
+
2. Add ...
|
|
24
|
+
|
|
25
|
+
## Information
|
|
26
|
+
|
|
27
|
+
Please provide the following information about your PR:
|
|
28
|
+
|
|
29
|
+
- Steam Editor Tools version:
|
|
30
|
+
|
|
31
|
+
## Additional context
|
|
32
|
+
|
|
33
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,39 @@
|
|
|
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: Python package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [main]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [main]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v6
|
|
22
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
23
|
+
uses: actions/setup-python@v6
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ matrix.python-version }}
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: |
|
|
28
|
+
python -m pip install --upgrade pip
|
|
29
|
+
python -m pip install flake8 pytest wheel
|
|
30
|
+
python -m pip install -r requirements.txt -r tests/requirements.txt
|
|
31
|
+
- name: Lint with flake8
|
|
32
|
+
run: |
|
|
33
|
+
# stop the build if there are Python syntax errors or undefined names
|
|
34
|
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
35
|
+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
36
|
+
flake8 . --count --exit-zero --max-complexity=50 --ignore=E203,E501,W503,E701,E704 --statistics
|
|
37
|
+
- name: Test with pytest
|
|
38
|
+
run: |
|
|
39
|
+
python -m pytest
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# This workflow will upload a Python Package using Twine when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
|
3
|
+
|
|
4
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
5
|
+
# They are provided by a third-party and are governed by
|
|
6
|
+
# separate terms of service, privacy policy, and support
|
|
7
|
+
# documentation.
|
|
8
|
+
|
|
9
|
+
name: Upload Python Package
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
release:
|
|
13
|
+
types: [published]
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
deploy:
|
|
20
|
+
name: upload release to PyPI
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
# Specifying a GitHub environment is optional, but strongly encouraged
|
|
23
|
+
environment: release
|
|
24
|
+
permissions:
|
|
25
|
+
# IMPORTANT: this permission is mandatory for trusted publishing
|
|
26
|
+
id-token: write
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v6
|
|
30
|
+
- name: Set up Python
|
|
31
|
+
uses: actions/setup-python@v6
|
|
32
|
+
with:
|
|
33
|
+
python-version: "3.x"
|
|
34
|
+
- name: Install dependencies
|
|
35
|
+
run: |
|
|
36
|
+
python -m pip install --upgrade pip
|
|
37
|
+
pip install build wheel
|
|
38
|
+
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
|
|
39
|
+
- name: Build package
|
|
40
|
+
run: python -m build
|
|
41
|
+
- name: Publish package distributions to PyPI
|
|
42
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# Created by .ignore support plugin (hsz.mobi)
|
|
2
|
+
### Webpack
|
|
3
|
+
.build_cache
|
|
4
|
+
### VisualStudioCode template
|
|
5
|
+
.vscode/*
|
|
6
|
+
# !.vscode/settings.json
|
|
7
|
+
# !.vscode/tasks.json
|
|
8
|
+
# !.vscode/launch.json
|
|
9
|
+
# !.vscode/extensions.json
|
|
10
|
+
### JetBrains template
|
|
11
|
+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
|
|
12
|
+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
13
|
+
|
|
14
|
+
# User-specific stuff
|
|
15
|
+
.idea/**/workspace.xml
|
|
16
|
+
.idea/**/tasks.xml
|
|
17
|
+
.idea/**/usage.statistics.xml
|
|
18
|
+
.idea/**/dictionaries
|
|
19
|
+
.idea/**/shelf
|
|
20
|
+
|
|
21
|
+
# Sensitive or high-churn files
|
|
22
|
+
.idea/**/dataSources/
|
|
23
|
+
.idea/**/dataSources.ids
|
|
24
|
+
.idea/**/dataSources.local.xml
|
|
25
|
+
.idea/**/sqlDataSources.xml
|
|
26
|
+
.idea/**/dynamic.xml
|
|
27
|
+
.idea/**/uiDesigner.xml
|
|
28
|
+
.idea/**/dbnavigator.xml
|
|
29
|
+
|
|
30
|
+
# Gradle
|
|
31
|
+
.idea/**/gradle.xml
|
|
32
|
+
.idea/**/libraries
|
|
33
|
+
|
|
34
|
+
# Gradle and Maven with auto-import
|
|
35
|
+
# When using Gradle or Maven with auto-import, you should exclude module files,
|
|
36
|
+
# since they will be recreated, and may cause churn. Uncomment if using
|
|
37
|
+
# auto-import.
|
|
38
|
+
# .idea/modules.xml
|
|
39
|
+
# .idea/*.iml
|
|
40
|
+
# .idea/modules
|
|
41
|
+
|
|
42
|
+
# Marked by dev.
|
|
43
|
+
/alpha*
|
|
44
|
+
/data*
|
|
45
|
+
/temp*
|
|
46
|
+
!/data/*.py
|
|
47
|
+
/logs
|
|
48
|
+
/outputs
|
|
49
|
+
/cache
|
|
50
|
+
/instance
|
|
51
|
+
/migrations
|
|
52
|
+
|
|
53
|
+
# Temp files
|
|
54
|
+
/examples/markdown.bbcode
|
|
55
|
+
/examples/example-*.bbcode
|
|
56
|
+
/examples/example-*.png
|
|
57
|
+
/examples/example-*.html
|
|
58
|
+
/examples/example-*/**
|
|
59
|
+
|
|
60
|
+
# Ignore docs (maintained by another branch)
|
|
61
|
+
/docs
|
|
62
|
+
|
|
63
|
+
# Byte-compiled / optimized / DLL files
|
|
64
|
+
__pycache__/
|
|
65
|
+
*.py[cod]
|
|
66
|
+
*$py.class
|
|
67
|
+
|
|
68
|
+
# C extensions
|
|
69
|
+
*.so
|
|
70
|
+
|
|
71
|
+
# Distribution / packaging
|
|
72
|
+
.Python
|
|
73
|
+
build/
|
|
74
|
+
develop-eggs/
|
|
75
|
+
dist/
|
|
76
|
+
downloads/
|
|
77
|
+
eggs/
|
|
78
|
+
.eggs/
|
|
79
|
+
lib64/
|
|
80
|
+
parts/
|
|
81
|
+
sdist/
|
|
82
|
+
var/
|
|
83
|
+
wheels/
|
|
84
|
+
*.egg-info/
|
|
85
|
+
.installed.cfg
|
|
86
|
+
*.egg
|
|
87
|
+
MANIFEST
|
|
88
|
+
|
|
89
|
+
# PyInstaller
|
|
90
|
+
# Usually these files are written by a python script from a template
|
|
91
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
92
|
+
*.manifest
|
|
93
|
+
*.spec
|
|
94
|
+
|
|
95
|
+
# Installer logs
|
|
96
|
+
pip-log.txt
|
|
97
|
+
pip-delete-this-directory.txt
|
|
98
|
+
|
|
99
|
+
# Unit test / coverage reports
|
|
100
|
+
htmlcov/
|
|
101
|
+
.tox/
|
|
102
|
+
.coverage
|
|
103
|
+
.coverage.*
|
|
104
|
+
nosetests.xml
|
|
105
|
+
coverage.xml
|
|
106
|
+
*.cover
|
|
107
|
+
.hypothesis/
|
|
108
|
+
.pytest_cache/
|
|
109
|
+
|
|
110
|
+
# Translations
|
|
111
|
+
*.mo
|
|
112
|
+
*.pot
|
|
113
|
+
|
|
114
|
+
# Django stuff:
|
|
115
|
+
local_settings.py
|
|
116
|
+
db.sqlite3
|
|
117
|
+
|
|
118
|
+
# Flask stuff:
|
|
119
|
+
instance/
|
|
120
|
+
.webassets-cache
|
|
121
|
+
|
|
122
|
+
# Scrapy stuff:
|
|
123
|
+
.scrapy
|
|
124
|
+
|
|
125
|
+
# Sphinx documentation
|
|
126
|
+
docs/_build/
|
|
127
|
+
|
|
128
|
+
# PyBuilder
|
|
129
|
+
.pybuilder/
|
|
130
|
+
target/
|
|
131
|
+
|
|
132
|
+
# Jupyter Notebook
|
|
133
|
+
.ipynb_checkpoints
|
|
134
|
+
|
|
135
|
+
# IPython
|
|
136
|
+
profile_default/
|
|
137
|
+
ipython_config.py
|
|
138
|
+
|
|
139
|
+
# pyenv
|
|
140
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
141
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
142
|
+
# .python-version
|
|
143
|
+
|
|
144
|
+
# pipenv
|
|
145
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
146
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
147
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
148
|
+
# install all needed dependencies.
|
|
149
|
+
#Pipfile.lock
|
|
150
|
+
|
|
151
|
+
# poetry
|
|
152
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
153
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
154
|
+
# commonly ignored for libraries.
|
|
155
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
156
|
+
#poetry.lock
|
|
157
|
+
|
|
158
|
+
# pdm
|
|
159
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
160
|
+
#pdm.lock
|
|
161
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
162
|
+
# in version control.
|
|
163
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
164
|
+
.pdm.toml
|
|
165
|
+
|
|
166
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
167
|
+
__pypackages__/
|
|
168
|
+
|
|
169
|
+
# Celery stuff
|
|
170
|
+
celerybeat-schedule
|
|
171
|
+
celerybeat.pid
|
|
172
|
+
|
|
173
|
+
# SageMath parsed files
|
|
174
|
+
*.sage.py
|
|
175
|
+
|
|
176
|
+
# Environments
|
|
177
|
+
.venv
|
|
178
|
+
env/
|
|
179
|
+
venv/
|
|
180
|
+
ENV/
|
|
181
|
+
env.bak/
|
|
182
|
+
venv.bak/
|
|
183
|
+
|
|
184
|
+
# Spyder project settings
|
|
185
|
+
.spyderproject
|
|
186
|
+
.spyproject
|
|
187
|
+
|
|
188
|
+
# Rope project settings
|
|
189
|
+
.ropeproject
|
|
190
|
+
|
|
191
|
+
# mkdocs documentation
|
|
192
|
+
/site
|
|
193
|
+
|
|
194
|
+
# mypy
|
|
195
|
+
.mypy_cache/
|
|
196
|
+
.dmypy.json
|
|
197
|
+
dmypy.json
|
|
198
|
+
|
|
199
|
+
# Pyre type checker
|
|
200
|
+
.pyre/
|
|
201
|
+
|
|
202
|
+
# pytype static type analyzer
|
|
203
|
+
.pytype/
|
|
204
|
+
|
|
205
|
+
# Cython debug symbols
|
|
206
|
+
cython_debug/
|
|
207
|
+
|
|
208
|
+
# PyCharm
|
|
209
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
210
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
211
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
212
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
213
|
+
#.idea/
|
|
214
|
+
|
|
215
|
+
### SublimeText template
|
|
216
|
+
# Cache files for Sublime Text
|
|
217
|
+
*.tmlanguage.cache
|
|
218
|
+
*.tmPreferences.cache
|
|
219
|
+
*.stTheme.cache
|
|
220
|
+
|
|
221
|
+
# Workspace files are user-specific
|
|
222
|
+
*.sublime-workspace
|
|
223
|
+
|
|
224
|
+
# Project files should be checked into the repository, unless a significant
|
|
225
|
+
# proportion of contributors will probably not be using Sublime Text
|
|
226
|
+
# *.sublime-project
|
|
227
|
+
|
|
228
|
+
# SFTP configuration file
|
|
229
|
+
sftp-config.json
|
|
230
|
+
|
|
231
|
+
# Package control specific files
|
|
232
|
+
Package Control.last-run
|
|
233
|
+
Package Control.ca-list
|
|
234
|
+
Package Control.ca-bundle
|
|
235
|
+
Package Control.system-ca-bundle
|
|
236
|
+
Package Control.cache/
|
|
237
|
+
Package Control.ca-certs/
|
|
238
|
+
Package Control.merged-ca-bundle
|
|
239
|
+
Package Control.user-ca-bundle
|
|
240
|
+
oscrypto-ca-bundle.crt
|
|
241
|
+
bh_unicode_properties.cache
|
|
242
|
+
|
|
243
|
+
# Sublime-github package stores a github token in this file
|
|
244
|
+
# https://packagecontrol.io/packages/sublime-github
|
|
245
|
+
GitHub.sublime-settings
|
|
246
|
+
|
|
247
|
+
# Julia manifest file names
|
|
248
|
+
Manifest.toml
|
|
249
|
+
JuliaManifest.toml
|