Skip to content

Commit

Permalink
Update package metadata (#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored and Kludex committed Oct 29, 2022
1 parent 6695086 commit 59c5648
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 108 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,3 +6,4 @@ uvicorn.egg-info/
venv/
htmlcov/
site/
dist/
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

62 changes: 62 additions & 0 deletions pyproject.toml
@@ -0,0 +1,62 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "uvicorn"
dynamic = ["version"]
description = "The lightning-fast ASGI server."
readme = "README.md"
license = "BSD-3-Clause"
requires-python = ">=3.7"
authors = [
{ name = "Tom Christie", email = "tom@tomchristie.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
"click>=7.0",
"h11>=0.8",
"typing-extensions;python_version < '3.8'",
]

[project.optional-dependencies]
standard = [
"colorama>=0.4;sys_platform == 'win32'",
"httptools>=0.4.0",
"python-dotenv>=0.13",
"PyYAML>=5.1",
"uvloop>=0.14.0,!=0.15.0,!=0.15.1; sys_platform != 'win32' and (sys_platform != 'cygwin' and platform_python_implementation != 'PyPy')",
"watchfiles>=0.13",
"websockets>=10.0",
]

[project.scripts]
uvicorn = "uvicorn.main:main"

[project.urls]
Changelog = "https://github.com/encode/uvicorn/blob/master/CHANGELOG.md"
Funding = "https://github.com/sponsors/encode"
Homepage = "https://www.uvicorn.org/"
Source = "https://github.com/encode/uvicorn"

[tool.hatch.version]
path = "uvicorn/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/uvicorn",
]
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -7,8 +7,8 @@ asgiref==3.5.2
wsproto==1.1.0

# Packaging
build==0.8.0
twine==4.0.1
wheel==0.37.1

# Testing
autoflake==1.4
Expand Down
2 changes: 1 addition & 1 deletion scripts/build
Expand Up @@ -8,6 +8,6 @@ fi

set -x

${PREFIX}python setup.py sdist bdist_wheel
${PREFIX}python -m build
${PREFIX}twine check dist/*
${PREFIX}mkdocs build
103 changes: 0 additions & 103 deletions setup.py

This file was deleted.

0 comments on commit 59c5648

Please sign in to comment.