Skip to content

Commit 5d0fb46

Browse files
committed
🔧 Move to flit for packaging
1 parent d1e1238 commit 5d0fb46

File tree

5 files changed

+63
-96
lines changed

5 files changed

+63
-96
lines changed

‎.pre-commit-config.yaml‎

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,54 +10,47 @@ exclude: &exclude_files >
1010
repos:
1111

1212
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: v4.0.1
13+
rev: v4.5.0
1414
hooks:
1515
- id: check-json
1616
- id: check-yaml
1717
- id: end-of-file-fixer
1818
- id: trailing-whitespace
1919

20-
- repo: https://github.com/asottile/setup-cfg-fmt
21-
rev: v1.17.0
22-
hooks:
23-
- id: setup-cfg-fmt
24-
25-
- repo: https://github.com/mgedmin/check-manifest
26-
rev: "0.46"
27-
hooks:
28-
- id: check-manifest
29-
args: [--no-build-isolation]
30-
additional_dependencies: [setuptools>=46.4.0]
31-
3220
- repo: https://github.com/pycqa/isort
3321
rev: 5.12.0
3422
hooks:
3523
- id: isort
3624

3725
- repo: https://github.com/asottile/pyupgrade
38-
rev: v2.25.0
26+
rev: v3.15.0
3927
hooks:
4028
- id: pyupgrade
4129
args: [--py37-plus]
4230

4331
- repo: https://github.com/psf/black
44-
rev: 23.7.0
32+
rev: 23.11.0
4533
hooks:
4634
- id: black
4735

48-
- repo: https://github.com/PyCQA/flake8
49-
rev: '3.9.2'
36+
- repo: https://github.com/charliermarsh/ruff-pre-commit
37+
rev: v0.1.5
5038
hooks:
51-
- id: flake8
52-
additional_dependencies:
53-
- flake8-bugbear==20.1.4
54-
- flake8-builtins==1.5.3
55-
- flake8-comprehensions==3.2.3
56-
- flake8-rst-docstrings==0.0.14
57-
- flake8-markdown==0.2.0
39+
- id: ruff
40+
41+
# - repo: https://github.com/PyCQA/flake8
42+
# rev: '6.1.0'
43+
# hooks:
44+
# - id: flake8
45+
# additional_dependencies:
46+
# - flake8-bugbear==20.1.4
47+
# - flake8-builtins==1.5.3
48+
# - flake8-comprehensions==3.2.3
49+
# - flake8-rst-docstrings==0.0.14
50+
# - flake8-markdown==0.2.0
5851

5952
- repo: https://github.com/pre-commit/mirrors-mypy
60-
rev: v1.4.1
53+
rev: v1.6.1
6154
hooks:
6255
- id: mypy
6356
additional_dependencies:

‎MANIFEST.in‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎pyproject.toml‎

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,49 @@
11
[build-system]
2-
requires = ["setuptools>=46.4.0", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["flit_core >=3.2,<4"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[project]
6+
name = "sphinx_sqlalchemy"
7+
dynamic = ["version"]
8+
description = "Sphinx extension for documenting SQLAlchemy ORMs"
9+
authors = [{name = "Chris Sewell", email = "chrisj_sewell@hotmail.com"}]
10+
license = {text = "MIT License"}
11+
readme = "README.md"
12+
classifiers = [
13+
"Development Status :: 4 - Beta",
14+
"Framework :: Sphinx :: Extension",
15+
"License :: OSI Approved :: MIT License",
16+
"Operating System :: MacOS :: MacOS X",
17+
"Operating System :: Microsoft :: Windows",
18+
"Operating System :: POSIX :: Linux",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.7",
21+
"Programming Language :: Python :: 3.8",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: Implementation :: CPython",
24+
"Topic :: Software Development :: Libraries :: Python Modules",
25+
]
26+
keywords = ["sphinx", "extension"]
27+
requires-python = "~=3.7"
28+
dependencies = [
29+
"sphinx>=3,<5",
30+
"sqlalchemy~=1.4.22",
31+
]
32+
33+
[project.urls]
34+
Homepage = "http://github.com/chrisjsewell/sphinx-sqlalchemy"
35+
Documentation = "https://sphinx-sqlalchemy.readthedocs.io"
36+
37+
[project.optional-dependencies]
38+
dev = [
39+
"pytest",
40+
"pytest-cov",
41+
]
42+
docs = ["furo==2021.11.23"]
43+
44+
[tool.ruff]
45+
line-length = 100
46+
extend-select = ["B0", "C4", "ICN", "ISC", "N", "RUF", "SIM"]
447

548
[tool.isort]
649
profile = "black"

‎setup.cfg‎

Lines changed: 0 additions & 49 deletions
This file was deleted.

‎setup.py‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)