-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to pyproject.toml; use ruff; add RELEASING.md; remove copyright year * tox -e lint * Update build and release pipeline
- Loading branch information
Showing
15 changed files
with
146 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.0 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.1.14 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus] | ||
- repo: https://github.com/psf/black | ||
rev: 23.12.1 | ||
- id: ruff | ||
- id: ruff-format | ||
- repo: https://github.com/python-jsonschema/check-jsonschema | ||
rev: 0.27.3 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 7.0.0 | ||
- id: check-github-workflows | ||
- id: check-readthedocs | ||
- repo: https://github.com/asottile/blacken-docs | ||
rev: 1.16.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [flake8-bugbear==23.9.16] | ||
- id: blacken-docs | ||
additional_dependencies: [black==23.12.1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Releasing | ||
|
||
1. Bump version in `pyproject.toml` and update the changelog | ||
with today's date. | ||
2. Commit: `git commit -m "Bump version and update changelog"` | ||
3. Tag the commit: `git tag x.y.z` | ||
4. Push: `git push --tags origin dev`. CI will take care of the | ||
PyPI release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,60 @@ | ||
[tool.black] | ||
line-length = 88 | ||
target-version = ['py38', 'py39', 'py310', 'py311', 'py312'] | ||
[project] | ||
name = "marshmallow-sqlalchemy" | ||
version = "0.30.0" | ||
description = "SQLAlchemy integration with the marshmallow (de)serialization library" | ||
readme = "README.rst" | ||
license = { file = "LICENSE" } | ||
maintainers = [{ name = "Steven Loria", email = "sloria1@gmail.com" }] | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"marshmallow>=3.0.0", | ||
"SQLAlchemy>=1.4.40,<3.0", | ||
"packaging>=21.3", | ||
] | ||
|
||
[project.urls] | ||
Changelog = "https://marshmallow-sqlalchemy.readthedocs.io/en/latest/changelog.html" | ||
Funding = "https://opencollective.com/marshmallow" | ||
Issues = "https://github.com/marshmallow-code/marshmallow-sqlalchemy/issues" | ||
Source = "https://github.com/marshmallow-code/marshmallow-sqlalchemy" | ||
|
||
[project.optional-dependencies] | ||
docs = ["sphinx==7.2.6", "alabaster==0.7.16", "sphinx-issues==3.0.1"] | ||
# TODO: Remove pytest pin when https://github.com/TvoroG/pytest-lazy-fixture/issues/65 is resolved | ||
tests = ["pytest<8", "pytest-lazy-fixture>=0.6.2"] | ||
dev = ["marshmallow-sqlalchemy[tests]", "tox", "pre-commit~=3.5"] | ||
|
||
[build-system] | ||
requires = ["flit_core<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[tool.flit.sdist] | ||
include = ["docs/", "tests/", "CHANGELOG.rst", "CONTRIBUTING.rst", "tox.ini"] | ||
exclude = ["docs/_build/"] | ||
|
||
[tool.ruff] | ||
src = ["src"] | ||
fix = true | ||
show-fixes = true | ||
show-source = true | ||
|
||
[tool.ruff.lint] | ||
ignore = ["E203", "E266", "E501", "E731"] | ||
select = [ | ||
"B", # flake8-bugbear | ||
"E", # pycodestyle error | ||
"F", # pyflakes | ||
"I", # isort | ||
"UP", # pyupgrade | ||
"W", # pycodestyle warning | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.