From d70e25ceb766dfeb2e5954349e0d899557774b35 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Sun, 15 Oct 2023 12:54:41 +0100 Subject: [PATCH] Migrate Python package metadata to pyproject.toml --- MANIFEST.in | 7 +++++-- pyproject.toml | 48 ++++++++++++++++++++++++++++++++++++++++++++++-- setup.cfg | 33 --------------------------------- setup.py | 3 --- 4 files changed, 51 insertions(+), 40 deletions(-) delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/MANIFEST.in b/MANIFEST.in index 0f0952a..69080a2 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,8 @@ -include README.md -include LICENSE +include README.md LICENSE tox.ini +recursive-include docs * +recursive-exclude docs/_build * +recursive-include tests * +exclude **/*.pyc include src/flask_migrate/templates/flask/* include src/flask_migrate/templates/flask-multidb/* include src/flask_migrate/templates/aioflask/* diff --git a/pyproject.toml b/pyproject.toml index 374b58c..388b081 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,50 @@ +[project] +name = "Flask-Migrate" +version = "4.0.6.dev0" +authors = [ + { name = "Miguel Grinberg", email = "miguel.grinberg@gmail.com" }, +] +description = "SQLAlchemy database migrations for Flask applications using Alembic." +classifiers = [ + "Environment :: Web Environment", + "Intended Audience :: Developers", + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] +requires-python = ">=3.6" +dependencies = [ + "Flask >= 0.9", + "Flask-SQLAlchemy >= 1.0", + "alembic >= 1.9.0", +] + +[project.license] +text = "MIT" + +[project.readme] +file = "README.md" +content-type = "text/markdown" + +[project.urls] +Homepage = "https://github.com/miguelgrinberg/flask-migrate" +"Bug Tracker" = "https://github.com/miguelgrinberg/flask-migrate/issues" + +[tool.setuptools] +zip-safe = false +include-package-data = true + +[tool.setuptools.package-dir] +"" = "src" + +[tool.setuptools.packages.find] +where = [ + "src", +] +namespaces = true + [build-system] requires = [ - "setuptools>=42", - "wheel" + "setuptools>=61.2", ] build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 5c9ff43..0000000 --- a/setup.cfg +++ /dev/null @@ -1,33 +0,0 @@ -[metadata] -name = Flask-Migrate -version = 4.0.6.dev0 -author = Miguel Grinberg -author_email = miguel.grinberg@gmail.com -license = MIT -description = SQLAlchemy database migrations for Flask applications using Alembic. -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/miguelgrinberg/flask-migrate -project_urls = - Bug Tracker = https://github.com/miguelgrinberg/flask-migrate/issues -classifiers = - Environment :: Web Environment - Intended Audience :: Developers - Programming Language :: Python :: 3 - License :: OSI Approved :: MIT License - Operating System :: OS Independent - -[options] -zip_safe = False -include_package_data = True -package_dir = - = src -packages = find_namespace: -python_requires = >=3.6 -install_requires = - Flask >= 0.9 - Flask-SQLAlchemy >= 1.0 - alembic >= 1.9.0 - -[options.packages.find] -where = src diff --git a/setup.py b/setup.py deleted file mode 100644 index b908cbe..0000000 --- a/setup.py +++ /dev/null @@ -1,3 +0,0 @@ -import setuptools - -setuptools.setup()