fimama 0.1.2__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.
@@ -0,0 +1,143 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v[0-9]+.[0-9]+.[0-9]+"
7
+
8
+ env:
9
+ PACKAGE_NAME: "<PACKAGE_NAME>"
10
+ OWNER: "<OWNER>"
11
+
12
+ jobs:
13
+ details:
14
+ runs-on: ubuntu-latest
15
+ # if: github.repository == 'giuthas-hobbies/fictional-map-maker/'
16
+ outputs:
17
+ new_version: ${{ steps.release.outputs.new_version }}
18
+ suffix: ${{ steps.release.outputs.suffix }}
19
+ tag_name: ${{ steps.release.outputs.tag_name }}
20
+ steps:
21
+ - uses: actions/checkout@v2
22
+
23
+ - name: Extract tag and Details
24
+ id: release
25
+ run: |
26
+ if [ "${{ github.ref_type }}" = "tag" ]; then
27
+ TAG_NAME=${GITHUB_REF#refs/tags/}
28
+ NEW_VERSION=$(echo $TAG_NAME | awk -F'v' '{print $2}')
29
+ SUFFIX=$(echo $TAG_NAME | grep -oP '[abrc]+[0-9]+' || echo "")
30
+ echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
31
+ echo "suffix=$SUFFIX" >> "$GITHUB_OUTPUT"
32
+ echo "tag_name=$TAG_NAME" >> "$GITHUB_OUTPUT"
33
+ echo "Version is $NEW_VERSION"
34
+ echo "Suffix is $SUFFIX"
35
+ echo "Tag name is $TAG_NAME"
36
+ echo "Repository is ${{ github.repository }}"
37
+ else
38
+ echo "No tag found"
39
+ exit 1
40
+ fi
41
+
42
+ check_pypi:
43
+ needs: details
44
+ runs-on: ubuntu-latest
45
+ steps:
46
+ - name: Fetch information from PyPI
47
+ run: |
48
+ response=$(curl -s https://pypi.org/pypi/${{ env.PACKAGE_NAME }}/json || echo "{}")
49
+ latest_previous_version=$(echo $response | jq --raw-output "select(.releases != null) | .releases | keys_unsorted | last")
50
+ if [ -z "$latest_previous_version" ]; then
51
+ echo "Package not found on PyPI."
52
+ latest_previous_version="0.0.0"
53
+ fi
54
+ echo "Latest version on PyPI: $latest_previous_version"
55
+ echo "latest_previous_version=$latest_previous_version" >> $GITHUB_ENV
56
+
57
+ - name: Compare versions and exit if not newer
58
+ run: |
59
+ NEW_VERSION=${{ needs.details.outputs.new_version }}
60
+ LATEST_VERSION=$latest_previous_version
61
+ if [ "$(printf '%s\n' "$LATEST_VERSION" "$NEW_VERSION" | sort -rV | head -n 1)" != "$NEW_VERSION" ] || [ "$NEW_VERSION" == "$LATEST_VERSION" ]; then
62
+ echo "The new version $NEW_VERSION is not greater than the latest version $LATEST_VERSION on PyPI."
63
+ exit 1
64
+ else
65
+ echo "The new version $NEW_VERSION is greater than the latest version $LATEST_VERSION on PyPI."
66
+ fi
67
+
68
+ setup_and_build:
69
+ needs: [details, check_pypi]
70
+ runs-on: ubuntu-latest
71
+ steps:
72
+ - uses: actions/checkout@v2
73
+
74
+ - name: Set up Python
75
+ uses: actions/setup-python@v4
76
+ with:
77
+ python-version: "3.13"
78
+
79
+ - name: Install uv
80
+ run: |
81
+ curl -LsSf https://astral.sh/uv/install.sh | sh
82
+ echo "$HOME/.local/bin" >> $GITHUB_PATH
83
+
84
+ - name: Build source and wheel distribution
85
+ run: |
86
+ uv build
87
+
88
+ - name: Upload artifacts
89
+ uses: actions/upload-artifact@v4
90
+ with:
91
+ name: dist
92
+ path: dist/
93
+
94
+ pypi_publish:
95
+ name: Upload release to PyPI
96
+ needs: [setup_and_build, details]
97
+ runs-on: ubuntu-latest
98
+ environment:
99
+ name: pypi
100
+ permissions:
101
+ id-token: write
102
+ steps:
103
+ - name: Download artifacts
104
+ uses: actions/download-artifact@v4
105
+ with:
106
+ name: dist
107
+ path: dist/
108
+
109
+ - name: Publish distribution to PyPI
110
+ uses: pypa/gh-action-pypi-publish@release/v1
111
+
112
+ github_release:
113
+ name: Create GitHub Release
114
+ needs: [setup_and_build, details, pypi_publish]
115
+ runs-on: ubuntu-latest
116
+ permissions:
117
+ contents: write
118
+ steps:
119
+ - name: Checkout Code
120
+ uses: actions/checkout@v3
121
+ with:
122
+ fetch-depth: 0
123
+
124
+ - name: Download artifacts
125
+ uses: actions/download-artifact@v4
126
+ with:
127
+ name: dist
128
+ path: dist/
129
+
130
+ - name: Get latest release info
131
+ id: query-release-info
132
+ uses: release-flow/keep-a-changelog-action@v2
133
+ with:
134
+ command: query
135
+ version: latest
136
+ changelog: 'docs/Changelog.markdown'
137
+
138
+ - name: Create GitHub Release
139
+ id: create_release
140
+ env:
141
+ GH_TOKEN: ${{ github.token }}
142
+ run: |
143
+ gh release create ${{ needs.details.outputs.tag_name }} dist/* --title "${{steps.query-release-info.outputs.version}} - ${{steps.query-release-info.outputs.release-date }}" --notes "${{steps.query-release-info.outputs.release-notes}}"
@@ -0,0 +1,147 @@
1
+ name: pre_release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+"
7
+ - "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"
8
+ - "v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+"
9
+
10
+ env:
11
+ PACKAGE_NAME: "<PACKAGE_NAME>"
12
+ OWNER: "<OWNER>"
13
+
14
+ jobs:
15
+ details:
16
+ runs-on: ubuntu-latest
17
+ # if: github.repository == 'giuthas-hobbies/fictional-map-maker/'
18
+ outputs:
19
+ new_version: ${{ steps.release.outputs.new_version }}
20
+ suffix: ${{ steps.release.outputs.suffix }}
21
+ tag_name: ${{ steps.release.outputs.tag_name }}
22
+ steps:
23
+ - uses: actions/checkout@v2
24
+
25
+ - name: Extract tag and Details
26
+ id: release
27
+ run: |
28
+ if [ "${{ github.ref_type }}" = "tag" ]; then
29
+ TAG_NAME=${GITHUB_REF#refs/tags/}
30
+ NEW_VERSION=$(echo $TAG_NAME | awk -F'v' '{print $2}')
31
+ SUFFIX=$(echo $TAG_NAME | grep -oP '[abrc]+[0-9]+' || echo "")
32
+ echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
33
+ echo "suffix=$SUFFIX" >> "$GITHUB_OUTPUT"
34
+ echo "tag_name=$TAG_NAME" >> "$GITHUB_OUTPUT"
35
+ echo "Version is $NEW_VERSION"
36
+ echo "Suffix is $SUFFIX"
37
+ echo "Tag name is $TAG_NAME"
38
+ else
39
+ echo "No tag found"
40
+ exit 1
41
+ fi
42
+
43
+ check_pypi:
44
+ needs: details
45
+ runs-on: ubuntu-latest
46
+ steps:
47
+ - name: Fetch information from TestPyPI
48
+ run: |
49
+ response=$(curl -s https://test.pypi.org/pypi/${{ env.PACKAGE_NAME }}/json || echo "{}")
50
+ latest_previous_version=$(echo $response | jq --raw-output "select(.releases != null) | .releases | keys_unsorted | last")
51
+ if [ -z "$latest_previous_version" ]; then
52
+ echo "Package not found on TestPyPI."
53
+ latest_previous_version="0.0.0"
54
+ fi
55
+ echo "Latest version on TestPyPI: $latest_previous_version"
56
+ echo "latest_previous_version=$latest_previous_version" >> $GITHUB_ENV
57
+
58
+ - name: Compare versions and exit if not newer
59
+ run: |
60
+ NEW_VERSION=${{ needs.details.outputs.new_version }}
61
+ LATEST_VERSION=$latest_previous_version
62
+ if [ "$(printf '%s\n' "$LATEST_VERSION" "$NEW_VERSION" | sort -rV | head -n 1)" != "$NEW_VERSION" ] || [ "$NEW_VERSION" == "$LATEST_VERSION" ]; then
63
+ echo "The new version $NEW_VERSION is not greater than the latest version $LATEST_VERSION on TestPyPI."
64
+ exit 1
65
+ else
66
+ echo "The new version $NEW_VERSION is greater than the latest version $LATEST_VERSION on TestPyPI."
67
+ fi
68
+
69
+ setup_and_build:
70
+ runs-on: ubuntu-latest
71
+ needs: [details, check_pypi]
72
+ steps:
73
+ - uses: actions/checkout@v2
74
+
75
+ - name: Set up Python
76
+ uses: actions/setup-python@v4
77
+ with:
78
+ python-version: "3.13"
79
+
80
+ - name: Install uv
81
+ run: |
82
+ curl -LsSf https://astral.sh/uv/install.sh | sh
83
+ echo "$HOME/.local/bin" >> $GITHUB_PATH
84
+
85
+ - name: Build source and wheel distribution
86
+ run: |
87
+ uv build
88
+
89
+ - name: Upload artifacts
90
+ uses: actions/upload-artifact@v4
91
+ with:
92
+ name: python-package-distributions
93
+ path: dist/
94
+
95
+ testpypi_publish:
96
+ name: Publish to TestPyPI
97
+ needs: [details, setup_and_build]
98
+ runs-on: ubuntu-latest
99
+ environment:
100
+ name: testpypi
101
+ url: https://test.pypi.org/p/<package-name>
102
+ permissions:
103
+ id-token: write # IMPORTANT: mandatory for trusted publishing
104
+ steps:
105
+ - name: Download all the dists
106
+ uses: actions/download-artifact@v4
107
+ with:
108
+ name: python-package-distributions
109
+ path: dist/
110
+ - name: Publish distribution to TestPyPI
111
+ uses: pypa/gh-action-pypi-publish@release/v1
112
+ with:
113
+ repository-url: https://test.pypi.org/legacy/
114
+
115
+ github_release:
116
+ name: Create GitHub Release
117
+ needs: [details, setup_and_build, testpypi_publish]
118
+ runs-on: ubuntu-latest
119
+ permissions:
120
+ contents: write
121
+ steps:
122
+ - name: Checkout Code
123
+ uses: actions/checkout@v3
124
+ with:
125
+ fetch-depth: 0
126
+
127
+ - name: Download artifacts
128
+ uses: actions/download-artifact@v4
129
+ with:
130
+ name: python-package-distributions
131
+ path: dist/
132
+
133
+ - name: Get latest release info
134
+ id: query-release-info
135
+ uses: release-flow/keep-a-changelog-action@v2
136
+ with:
137
+ command: query
138
+ version: latest
139
+ changelog: 'docs/Changelog.markdown'
140
+
141
+ - name: Create GitHub Release
142
+ id: create_release
143
+ env:
144
+ GH_TOKEN: ${{ github.token }}
145
+ run: |
146
+ echo ${{env.title_string}}
147
+ gh release create ${{ needs.details.outputs.tag_name }} dist/* --title "${{steps.query-release-info.outputs.version}} - ${{steps.query-release-info.outputs.release-date }}" --notes "${{steps.query-release-info.outputs.release-notes}}" --prerelease
@@ -0,0 +1,207 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
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
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
@@ -0,0 +1 @@
1
+ 3.13