Browse Source

Migrate Python package metadata to pyproject.toml

pull/1264/head
Miguel Grinberg 1 year ago
parent
commit
6bdc498d42
Failed to extract signature
  1. 6
      MANIFEST.in
  2. 58
      pyproject.toml
  3. 40
      setup.cfg
  4. 3
      setup.py

6
MANIFEST.in

@ -1 +1,5 @@
include README.md LICENSE
include README.md LICENSE tox.ini
recursive-include docs *
recursive-exclude docs/_build *
recursive-include tests *
exclude **/*.pyc

58
pyproject.toml

@ -1,6 +1,56 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
[project]
name = "python-socketio"
version = "5.9.1.dev0"
authors = [
{ name = "Miguel Grinberg", email = "[email protected]" },
]
description = "Socket.IO server and client for Python"
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 = [
"bidict >= 0.21.0",
"python-engineio >= 4.8.0",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/miguelgrinberg/python-socketio"
"Bug Tracker" = "https://github.com/miguelgrinberg/python-socketio/issues"
[project.optional-dependencies]
client = [
"requests >= 2.21.0",
"websocket-client >= 0.54.0",
]
asyncio_client = [
"aiohttp >= 3.4",
]
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>=61.2"]
build-backend = "setuptools.build_meta"

40
setup.cfg

@ -1,40 +0,0 @@
[metadata]
name = python-socketio
version = 5.9.1.dev0
author = Miguel Grinberg
author_email = [email protected]
description = Socket.IO server and client for Python
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/miguelgrinberg/python-socketio
project_urls =
Bug Tracker = https://github.com/miguelgrinberg/python-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 =
bidict >= 0.21.0
python-engineio >= 4.7.0
[options.packages.find]
where = src
[options.extras_require]
client =
requests >= 2.21.0
websocket-client >= 0.54.0
asyncio_client =
aiohttp >= 3.4
docs =
sphinx

3
setup.py

@ -1,3 +0,0 @@
import setuptools
setuptools.setup()
Loading…
Cancel
Save