Migrate Python package metadata to pyproject.toml

This commit is contained in:
Miguel Grinberg 2023-10-15 13:00:44 +01:00
parent 84562cf876
commit 2c1c71209e
No known key found for this signature in database
4 changed files with 52 additions and 41 deletions

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -1,3 +0,0 @@
import setuptools
setuptools.setup()