Skip to content

Commit 46d10cd

Browse files
committed
Migrated all packaging/testing configuration to pyproject.toml
1 parent 82fda13 commit 46d10cd

File tree

3 files changed

+56
-56
lines changed

3 files changed

+56
-56
lines changed

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Version history
22
===============
33

4+
**UNRELEASED**
5+
6+
- Migrated all packaging/testing configuration to ``pyproject.toml``
7+
48
**3.0.0b3**
59

610
- Dropped support for Python < 3.7

pyproject.toml

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,60 @@
11
[build-system]
22
requires = [
3-
"setuptools >= 42",
4-
"wheel >= 0.29.0",
5-
"setuptools_scm[toml] >= 3.4"
3+
"setuptools >= 61",
4+
"setuptools_scm[toml] >= 6.4"
65
]
76
build-backend = "setuptools.build_meta"
87

8+
[project]
9+
name = "sqlacodegen"
10+
description = "Automatic model code generator for SQLAlchemy"
11+
readme = "README.rst"
12+
authors = [{name = "Alex Grönholm", email = "[email protected]"}]
13+
keywords = ["sqlalchemy"]
14+
license = {text = "MIT"}
15+
classifiers = [
16+
"Development Status :: 5 - Production/Stable",
17+
"Intended Audience :: Developers",
18+
"License :: OSI Approved :: MIT License",
19+
"Environment :: Console",
20+
"Topic :: Database",
21+
"Topic :: Software Development :: Code Generators",
22+
"Programming Language :: Python",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3.7",
25+
"Programming Language :: Python :: 3.8",
26+
"Programming Language :: Python :: 3.9",
27+
"Programming Language :: Python :: 3.10",
28+
]
29+
requires-python = ">=3.7"
30+
dependencies = [
31+
"SQLAlchemy >= 1.4.0",
32+
"inflect >= 4.0.0",
33+
"importlib_metadata; python_version < '3.10'",
34+
]
35+
dynamic = ["version"]
36+
37+
[project.urls]
38+
"Bug Tracker" = "https://github.com/agronholm/sqlacodegen/issues"
39+
"Source Code" = "https://github.com/agronholm/sqlacodegen"
40+
41+
[project.optional-dependencies]
42+
test = [
43+
"pytest",
44+
"pytest-cov",
45+
"psycopg2-binary",
46+
"mysql-connector-python",
47+
]
48+
citext = ["sqlalchemy-citext >= 1.7.0"]
49+
50+
[project.entry-points."sqlacodegen.generators"]
51+
tables = "sqlacodegen.generators:TablesGenerator"
52+
declarative = "sqlacodegen.generators:DeclarativeGenerator"
53+
dataclasses = "sqlacodegen.generators:DataclassGenerator"
54+
55+
[project.scripts]
56+
sqlacodegen = "sqlacodegen.cli:main"
57+
958
[tool.setuptools_scm]
1059
version_scheme = "post-release"
1160
local_scheme = "dirty-tag"

setup.cfg

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +0,0 @@
1-
[metadata]
2-
name = sqlacodegen
3-
description = Automatic model code generator for SQLAlchemy
4-
long_description = file: README.rst
5-
author = Alex Grönholm
6-
author_email = [email protected]
7-
keywords = sqlalchemy
8-
license = MIT
9-
project_urls =
10-
Bug Tracker = https://github.com/agronholm/sqlacodegen/issues
11-
Source Code = https://github.com/agronholm/sqlacodegen
12-
classifiers =
13-
Development Status :: 5 - Production/Stable
14-
Intended Audience :: Developers
15-
License :: OSI Approved :: MIT License
16-
Environment :: Console
17-
Topic :: Database
18-
Topic :: Software Development :: Code Generators
19-
Programming Language :: Python
20-
Programming Language :: Python :: 3
21-
Programming Language :: Python :: 3.7
22-
Programming Language :: Python :: 3.8
23-
Programming Language :: Python :: 3.9
24-
Programming Language :: Python :: 3.10
25-
26-
[options]
27-
package_dir=
28-
= src
29-
packages = find:
30-
python_requires = >=3.7
31-
install_requires =
32-
SQLAlchemy >= 1.4.0
33-
inflect >= 4.0.0
34-
importlib_metadata; python_version < '3.10'
35-
36-
[options.packages.find]
37-
where = src
38-
39-
[options.extras_require]
40-
test =
41-
pytest
42-
pytest-cov
43-
psycopg2-binary
44-
mysql-connector-python
45-
citext = sqlalchemy-citext >= 1.7.0
46-
47-
[options.entry_points]
48-
console_scripts =
49-
sqlacodegen = sqlacodegen.cli:main
50-
sqlacodegen.generators =
51-
tables = sqlacodegen.generators:TablesGenerator
52-
declarative = sqlacodegen.generators:DeclarativeGenerator
53-
dataclasses = sqlacodegen.generators:DataclassGenerator

0 commit comments

Comments
 (0)