From 2c1c71209e360bcc2503857e6296a50af8590b06 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Sun, 15 Oct 2023 13:00:44 +0100 Subject: [PATCH] Migrate Python package metadata to pyproject.toml --- MANIFEST.in | 6 +++++- pyproject.toml | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- setup.cfg | 35 ----------------------------------- setup.py | 3 --- 4 files changed, 52 insertions(+), 41 deletions(-) delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/MANIFEST.in b/MANIFEST.in index 64ad321..e90c5e9 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,5 @@ -include README.md LICENSE +include README.md LICENSE tox.ini test_socketio.py +recursive-include docs * +recursive-exclude docs/_build * +recursive-include tests * +exclude **/*.pyc diff --git a/pyproject.toml b/pyproject.toml index 374b58c..f289cb6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,51 @@ +[project] +name = "Flask-SocketIO" +version = "5.3.7.dev0" +authors = [ + { name = "Miguel Grinberg", email = "miguel.grinberg@gmail.com" }, +] +description = "Socket.IO integration for Flask applications" +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", + "python-socketio >= 5.0.2", +] + +[project.readme] +file = "README.md" +content-type = "text/markdown" + +[project.urls] +Homepage = "https://github.com/miguelgrinberg/flask-socketio" +"Bug Tracker" = "https://github.com/miguelgrinberg/flask-socketio/issues" + +[project.optional-dependencies] +docs = [ + "sphinx", +] + +[tool.setuptools] +zip-safe = false +include-package-data = true + +[tool.setuptools.package-dir] +"" = "src" + +[tool.setuptools.packages.find] +where = [ + "src", +] +namespaces = false + [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 a28e562..0000000 --- a/setup.cfg +++ /dev/null @@ -1,35 +0,0 @@ -[metadata] -name = Flask-SocketIO -version = 5.3.7.dev0 -author = Miguel Grinberg -author_email = miguel.grinberg@gmail.com -description = Socket.IO integration for Flask applications -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/miguelgrinberg/flask-socketio -project_urls = - Bug Tracker = https://github.com/miguelgrinberg/flask-socketio/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: -python_requires = >=3.6 -install_requires = - Flask >= 0.9 - python-socketio >= 5.0.2 - -[options.packages.find] -where = src - -[options.extras_require] -docs = - sphinx 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()