asciistuff
Advanced tools
@@ -22,3 +22,3 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
| os: [ubuntu-latest] | ||
| python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | ||
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
| steps: | ||
@@ -33,11 +33,5 @@ - uses: actions/checkout@v3 | ||
| python -m pip install --upgrade pip | ||
| python -m pip install flake8 pytest pytest-cov pytest-pythonpath coverage | ||
| python -m pip install pytest pytest-cov pytest-pythonpath coverage | ||
| pip install -r requirements.txt | ||
| pip install . | ||
| - name: Lint with flake8 | ||
| run: | | ||
| # stop the build if there are Python syntax errors or undefined names | ||
| flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
| # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
| flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
| - name: Test ${{ env.package }} with pytest | ||
@@ -53,2 +47,6 @@ run: | | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.12" | ||
| - name: Install ${{ env.package }} | ||
@@ -83,1 +81,31 @@ run: | | ||
| branch: ${{ github.ref }} | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| needs: coverage | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Check for version change | ||
| uses: dorny/paths-filter@v2 | ||
| id: filter | ||
| with: | ||
| filters: | | ||
| version: | ||
| - '**/VERSION.txt' | ||
| - if: steps.filter.outputs.version == 'true' | ||
| name: Cleanup README | ||
| run: | | ||
| sed -ri 's/^(##*)\s*:.*:\s*/\1 /g' README.md | ||
| awk '{if (match($0,"## Supporters")) exit; print}' README.md > README | ||
| mv -f README README.md | ||
| - if: steps.filter.outputs.version == 'true' | ||
| name: Build ${{ env.package }} package | ||
| run: python3 -m pip install --upgrade build && python3 -m build | ||
| - if: steps.filter.outputs.version == 'true' | ||
| name: Upload ${{ env.package }} to PyPi | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| password: ${{ secrets.PYPI_API_TOKEN }} | ||
| verbose: true | ||
| verify_metadata: false |
@@ -1,1 +0,1 @@ | ||
| <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="122" height="20" role="img" aria-label="coverage: 100.00%"><title>coverage: 100.00%</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="122" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="61" height="20" fill="#555"/><rect x="61" width="61" height="20" fill="#4c1"/><rect width="122" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="315" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="510">coverage</text><text x="315" y="140" transform="scale(.1)" fill="#fff" textLength="510">coverage</text><text aria-hidden="true" x="905" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="510">100.00%</text><text x="905" y="140" transform="scale(.1)" fill="#fff" textLength="510">100.00%</text></g></svg> | ||
| <svg xmlns="http://www.w3.org/2000/svg" width="122" height="20" role="img" aria-label="coverage: 100.00%"><title>coverage: 100.00%</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="122" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="61" height="20" fill="#555"/><rect x="61" width="61" height="20" fill="#4c1"/><rect width="122" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="315" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="510">coverage</text><text x="315" y="140" transform="scale(.1)" fill="#fff" textLength="510">coverage</text><text aria-hidden="true" x="905" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="510">100.00%</text><text x="905" y="140" transform="scale(.1)" fill="#fff" textLength="510">100.00%</text></g></svg> |
+6
-5
@@ -1,4 +0,4 @@ | ||
| Metadata-Version: 2.1 | ||
| Metadata-Version: 2.4 | ||
| Name: asciistuff | ||
| Version: 1.3.2 | ||
| Version: 1.3.3 | ||
| Summary: Library for producing ASCII arts from a text or an image | ||
@@ -696,5 +696,6 @@ Author-email: Alexandre D'Hondt <alexandre.dhondt@gmail.com> | ||
| Requires-Dist: colorama | ||
| Requires-Dist: cowpy>=1.1.2 | ||
| Requires-Dist: pillow>=10.2.0 | ||
| Requires-Dist: PyFiglet | ||
| Requires-Dist: cowpy>=1.1.5 | ||
| Requires-Dist: pillow>=11.2.0 | ||
| Requires-Dist: PyFiglet>=1.0.3 | ||
| Dynamic: license-file | ||
@@ -701,0 +702,0 @@ <p align="center"><img src="https://github.com/dhondta/python-asciistuff/raw/main/docs/pages/img/logo.png"></p> |
+3
-3
@@ -33,5 +33,5 @@ [build-system] | ||
| "colorama", | ||
| "cowpy>=1.1.2", | ||
| "pillow>=10.2.0", | ||
| "PyFiglet", | ||
| "cowpy>=1.1.5", | ||
| "pillow>=11.2.0", | ||
| "PyFiglet>=1.0.3", | ||
| ] | ||
@@ -38,0 +38,0 @@ dynamic = ["version"] |
@@ -1,4 +0,4 @@ | ||
| Metadata-Version: 2.1 | ||
| Metadata-Version: 2.4 | ||
| Name: asciistuff | ||
| Version: 1.3.2 | ||
| Version: 1.3.3 | ||
| Summary: Library for producing ASCII arts from a text or an image | ||
@@ -696,5 +696,6 @@ Author-email: Alexandre D'Hondt <alexandre.dhondt@gmail.com> | ||
| Requires-Dist: colorama | ||
| Requires-Dist: cowpy>=1.1.2 | ||
| Requires-Dist: pillow>=10.2.0 | ||
| Requires-Dist: PyFiglet | ||
| Requires-Dist: cowpy>=1.1.5 | ||
| Requires-Dist: pillow>=11.2.0 | ||
| Requires-Dist: PyFiglet>=1.0.3 | ||
| Dynamic: license-file | ||
@@ -701,0 +702,0 @@ <p align="center"><img src="https://github.com/dhondta/python-asciistuff/raw/main/docs/pages/img/logo.png"></p> |
| colorama | ||
| cowpy>=1.1.2 | ||
| pillow>=10.2.0 | ||
| PyFiglet | ||
| cowpy>=1.1.5 | ||
| pillow>=11.2.0 | ||
| PyFiglet>=1.0.3 |
@@ -10,3 +10,2 @@ .coveragerc | ||
| requirements.txt | ||
| .github/workflows/pypi-publish.yml | ||
| .github/workflows/python-package.yml | ||
@@ -13,0 +12,0 @@ docs/coverage.svg |
@@ -1,1 +0,1 @@ | ||
| 1.3.2 | ||
| 1.3.3 |
| # This workflow will deploy the Python package to PyPi.org | ||
| name: deploy | ||
| env: | ||
| package: ascistuff | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - '**/VERSION.txt' | ||
| workflow_run: | ||
| workflows: ["build"] | ||
| types: [completed] | ||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Cleanup README | ||
| run: | | ||
| sed -ri 's/^(##*)\s*:.*:\s*/\1 /g' README.md | ||
| awk '{if (match($0,"## Supporters")) exit; print}' README.md > README | ||
| mv -f README README.md | ||
| - run: python3 -m pip install --upgrade build && python3 -m build | ||
| - name: Upload ${{ env.package }} to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| password: ${{ secrets.PYPI_API_TOKEN }} | ||
| verbose: true | ||
| verify_metadata: false |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
613114
-0.03%49
-2%