Skip to content

Commit

Permalink
refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Jun 16, 2024
1 parent af3a1ea commit ba08b15
Show file tree
Hide file tree
Showing 12 changed files with 161 additions and 92 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ end_of_line = lf
charset = utf-8
max_line_length = 88

[*.{yml,yaml,json,js,css,html}]
[*.{css,html,js,json,jsx,scss,ts,tsx,yaml,yml}]
indent_size = 2
10 changes: 6 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: dist
path: ./dist
provenance:
needs: [build]
Expand All @@ -48,8 +47,9 @@ jobs:
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
- name: create release
run: >
gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name }} *.intoto.jsonl/* dist/*
gh release create --draft --repo ${{ github.repository }}
${{ github.ref_name }}
*.intoto.jsonl/* artifact/*
env:
GH_TOKEN: ${{ github.token }}
publish-pypi:
Expand All @@ -58,10 +58,12 @@ jobs:
# files in the draft release.
environment:
name: publish
url: https://pypi.org/project/Flask-Alembic/
url: https://pypi.org/project/Flask-Alembic/${{ github.ref_name }}
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
- uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14
with:
packages-dir: artifact/
18 changes: 13 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@ on:
branches:
- main
- '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
jobs:
tests:
name: ${{ matrix.python }}
runs-on: ubuntu-latest
name: ${{ matrix.name || matrix.python }}
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
Expand All @@ -20,9 +28,9 @@ jobs:
python-version: ${{ matrix.python }}
allow-prereleases: true
cache: pip
cache-dependency-path: requirements/*.txt
cache-dependency-path: requirements*/*.txt
- run: pip install tox
- run: tox run -e py${{ matrix.python }}
- run: tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
typing:
runs-on: ubuntu-latest
steps:
Expand All @@ -31,7 +39,7 @@ jobs:
with:
python-version: '3.x'
cache: pip
cache-dependency-path: requirements/*.txt
cache-dependency-path: requirements*/*.txt
- name: cache mypy
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
Expand Down
18 changes: 9 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/.idea/
/.vscode/
/.venv*/
/venv*/
.idea/
.vscode/
.venv*/
venv*/
__pycache__/
/dist/
/.coverage*
/htmlcov/
/.tox/
/docs/_build/
dist/
.coverage*
htmlcov/
.tox/
docs/_build/
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
autoupdate_schedule: monthly
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
rev: v0.4.9
hooks:
- id: ruff
- id: ruff-format
Expand Down
19 changes: 9 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
[project]
name = "Flask-Alembic"
version = "3.1.0"
description = "Flask extension to integrate Alembic with Flask-SQLAlchemy."
version = "3.1.0.dev"
description = "Integrate Alembic with Flask."
readme = "README.md"
license = { file = "LICENSE.txt" }
authors = [{name = "David Lord", email = "[email protected]"},]
authors = [{ name = "David Lord" }]
maintainers = [{ name = "Pallets", email = "[email protected]" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Database",
"Typing :: Typed",
]
requires-python = ">=3.9"
Expand All @@ -24,9 +21,11 @@ dependencies = [
]

[project.urls]
Donate = "https://palletsprojects.com/donate"
Documentation = "https://flask-alembic.readthedocs.io"
Changes = "https://flask-alembic.readthedocs.io/changes/"
Source = "https://github.com/davidism/flask-alembic/"
Changes = "https://flask-alembic.readthedocs.io/page/changes/"
Source = "https://github.com/pallets-eco/flask-alembic/"
Chat = "https://discord.gg/pallets"

[build-system]
requires = ["flit_core<4"]
Expand Down Expand Up @@ -56,11 +55,11 @@ strict = true
[tool.pyright]
pythonVersion = "3.9"
include = ["src/flask_alembic", "tests"]
typeCheckingMode = "basic"

[tool.ruff]
src = ["src"]
fix = true
unsafe-fixes = true
show-fixes = true
output-format = "full"

Expand Down
12 changes: 9 additions & 3 deletions requirements/build.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile build.in
#
build==1.2.1
# via -r build.in
packaging==23.2
importlib-metadata==7.1.0
# via build
pyproject-hooks==1.0.0
packaging==24.1
# via build
pyproject-hooks==1.1.0
# via build
tomli==2.0.1
# via build
zipp==3.19.2
# via importlib-metadata
72 changes: 49 additions & 23 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile dev.in
Expand All @@ -13,7 +13,7 @@ asgiref==3.8.1
# -r tests.txt
# -r typing.txt
# flask
babel==2.14.0
babel==2.15.0
# via
# -r docs.txt
# sphinx
Expand All @@ -26,9 +26,9 @@ blinker==1.8.2
# -r tests.txt
# -r typing.txt
# flask
cachetools==5.3.2
cachetools==5.3.3
# via tox
certifi==2024.2.2
certifi==2024.6.2
# via
# -r docs.txt
# requests
Expand All @@ -49,12 +49,17 @@ colorama==0.4.6
# via tox
distlib==0.3.8
# via virtualenv
docutils==0.20.1
docutils==0.21.2
# via
# -r docs.txt
# myst-parser
# sphinx
filelock==3.13.1
exceptiongroup==1.2.1
# via
# -r tests.txt
# -r typing.txt
# pytest
filelock==3.15.1
# via
# tox
# virtualenv
Expand All @@ -79,7 +84,7 @@ greenlet==3.0.3
# -r tests.txt
# -r typing.txt
# sqlalchemy
identify==2.5.33
identify==2.5.36
# via pre-commit
idna==3.7
# via
Expand All @@ -89,6 +94,13 @@ imagesize==1.4.1
# via
# -r docs.txt
# sphinx
importlib-metadata==7.1.0
# via
# -r docs.txt
# -r tests.txt
# -r typing.txt
# flask
# sphinx
iniconfig==2.0.0
# via
# -r tests.txt
Expand All @@ -99,7 +111,7 @@ itsdangerous==2.2.0
# -r tests.txt
# -r typing.txt
# flask
jinja2==3.1.3
jinja2==3.1.4
# via
# -r docs.txt
# -r tests.txt
Expand All @@ -119,7 +131,7 @@ markupsafe==2.1.5
# -r typing.txt
# jinja2
# werkzeug
mdit-py-plugins==0.4.0
mdit-py-plugins==0.4.1
# via
# -r docs.txt
# myst-parser
Expand All @@ -135,12 +147,12 @@ mypy-extensions==1.0.0
# mypy
myst-parser==3.0.1
# via -r docs.txt
nodeenv==1.8.0
nodeenv==1.9.1
# via
# -r typing.txt
# pre-commit
# pyright
packaging==23.2
packaging==24.1
# via
# -r docs.txt
# -r tests.txt
Expand All @@ -149,7 +161,7 @@ packaging==23.2
# pytest
# sphinx
# tox
platformdirs==4.2.0
platformdirs==4.2.2
# via
# tox
# virtualenv
Expand All @@ -161,16 +173,16 @@ pluggy==1.5.0
# tox
pre-commit==3.7.1
# via -r dev.in
pygments==2.17.2
pygments==2.18.0
# via
# -r docs.txt
# furo
# sphinx
pyproject-api==1.6.1
# via tox
pyright==1.1.365
pyright==1.1.367
# via -r typing.txt
pytest==8.2.1
pytest==8.2.2
# via
# -r tests.txt
# -r typing.txt
Expand All @@ -179,7 +191,7 @@ pyyaml==6.0.1
# -r docs.txt
# myst-parser
# pre-commit
requests==2.32.0
requests==2.32.3
# via
# -r docs.txt
# sphinx
Expand Down Expand Up @@ -234,19 +246,30 @@ sqlalchemy[asyncio]==2.0.30
# -r typing.txt
# flask-sqlalchemy
# flask-sqlalchemy-lite
tox==4.15.0
tomli==2.0.1
# via
# -r docs.txt
# -r tests.txt
# -r typing.txt
# mypy
# pyproject-api
# pytest
# sphinx
# tox
tox==4.15.1
# via -r dev.in
typing-extensions==4.9.0
typing-extensions==4.12.2
# via
# -r tests.txt
# -r typing.txt
# asgiref
# mypy
# sqlalchemy
urllib3==2.2.0
urllib3==2.2.1
# via
# -r docs.txt
# requests
virtualenv==20.25.0
virtualenv==20.26.2
# via
# pre-commit
# tox
Expand All @@ -255,6 +278,9 @@ werkzeug==3.0.3
# -r tests.txt
# -r typing.txt
# flask

# The following packages are considered to be unsafe in a requirements file:
# setuptools
zipp==3.19.2
# via
# -r docs.txt
# -r tests.txt
# -r typing.txt
# importlib-metadata
Loading

0 comments on commit ba08b15

Please sign in to comment.