Skip to content

Commit

Permalink
chore(deps): bump poetry from 1.8.5 to 2.0.1
Browse files Browse the repository at this point in the history
Remove support for Python 3.8 to use Poetry 2.
Fix `pyproject.toml` properties.

Related to #134

Change-Id: Iecd1e2b4f10f827a873015b20bcb08f12d10f127
  • Loading branch information
DouglasBlackwood committed Jan 29, 2025
1 parent 8f63c83 commit d9afa7f
Showing 7 changed files with 79 additions and 54 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -14,15 +14,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5.4.0
with:
python-version: "${{ matrix.python-version }}"
- run: |
pip install -r requirements-poetry.txt
poetry install --sync
poetry sync
poetry run poe linters
poetry run poe test
poetry build
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ jobs:
git tag $(poetry version --short)
git push origin $(poetry version --short)
poetry self add poetry-version-plugin
poetry install --sync
poetry sync
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 0 additions & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@ queue_rules:
allow_inplace_checks: true
queue_conditions:
- and: &CheckRuns
- check-success=Test with Python 3.8
- check-success=Test with Python 3.9
- check-success=Test with Python 3.10
- check-success=Test with Python 3.11
100 changes: 63 additions & 37 deletions poetry.lock

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[tool.poetry]
[project]
name = "sql-compare"
version = "0.1.3"
description = "Compare SQL schemas"
authors = ["Charly Laurent <charly.laurent@mergify.com>"]
maintainers = ["Mergify <engineering@mergify.com>"]
authors = [{ name = "Charly Laurent", email = "charly.laurent@mergify.com" }]
maintainers = [{ name = "Mergify", email = "engineering@mergify.com" }]
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/Mergifyio/sql-compare"
license = { text = "Apache-2.0" }
keywords = ["sql", "database", "schema", "compare", "diff", "migration"]
classifiers = [
"Development Status :: 5 - Production/Stable",
@@ -17,7 +16,6 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
@@ -29,9 +27,14 @@ classifiers = [
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Unit",
]
requires-python = ">=3.9"

[project.urls]
repository = "https://github.com/Mergifyio/sql-compare"
"Bug Tracker" = "https://github.com/Mergifyio/sql-compare/issues"

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.9"
sqlparse = ">=0.5.0"

[tool.poetry.group.dev.dependencies]
@@ -42,9 +45,6 @@ poethepoet = ">=0.26.1,<0.31.0"
deptry = ">=0.16.1,<0.21.0"
semgrep = "^1.75.0"

[tool.poetry.urls]
"Bug Tracker" = "https://github.com/Mergifyio/sql-compare/issues"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
2 changes: 1 addition & 1 deletion requirements-poetry.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
poetry==1.8.5
poetry==2.0.1
4 changes: 2 additions & 2 deletions tools/poetry-install.sh
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
if [ "$CI" ]; then
export POETRY_VIRTUALENVS_OPTIONS_NO_PIP=true
export POETRY_VIRTUALENVS_OPTIONS_NO_SETUPTOOLS=true
poetry install --sync --no-cache
poetry sync --no-cache
else
poetry install --sync
poetry sync
fi

0 comments on commit d9afa7f

Please sign in to comment.