-
-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dist): remove
setup.cfg
(#2277)
* chore: prototype removal of `setup.cfg` (WiP) * chore(pyproject.toml): patch up license-files * docs(README): use PyPI compatible embedding of README * docs(README): make readme static * chore(docs/conf.py): fix docs not to depend on `setup.cfg` * chore(pyproject.toml):explicitly specify `text/x-rst` media type * docs(README): add Sentry * docs: polish newsfragments * docs: fix one newsfragment, update `RELEASE.md` * chore: specify test dependencies * chore: remove extraneous wheel build requirement
- Loading branch information
Showing
9 changed files
with
123 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
The function :func:`falcon.http_date_to_dt` now validates http-dates to have the correct | ||
timezone set. It now also returns timezone aware datetime objects. | ||
The function :func:`falcon.http_date_to_dt` now validates HTTP dates to have | ||
the correct timezone set. It now also returns timezone-aware | ||
:class:`~datetime.datetime` objects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
The functions ``create_task()`` and ``get_running_loop()`` of `falcon.util.sync` are deprecated. | ||
The counterpart functions in the builtin package `asyncio` are encouraged to be used. | ||
The :ref:`utility functions <util>` ``create_task()`` and | ||
``get_running_loop()`` are now deprecated in favor of their standard library | ||
counterparts, :func:`asyncio.create_task` and `:func:`asyncio.get_running_loop`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
Deprecated the ``TimezoneGMT`` class. Use :attr:`datetime.timezone.utc` instead. | ||
The ``falcon.TimezoneGMT`` class was deprecated. Use the UTC timezone | ||
(:attr:`datetime.timezone.utc`) from the standard library instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
``setup.cfg`` was dropped in favor of consolidating all static project | ||
configuration in ``pyproject.toml`` (``setup.py`` is still needed for | ||
programmatic control of the build process). While this change should not impact | ||
the framework's end-users directly, some ``setuptools``\-based legacy workflows | ||
(such as the obsolete ``setup.py test``) will no longer work. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,5 @@ | |
|
||
"""Falcon version.""" | ||
|
||
__version__ = '4.0.0' | ||
__version__ = '4.0.0.dev2' | ||
"""Current version of Falcon.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,84 @@ | ||
[build-system] | ||
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools>=47", | ||
"wheel>=0.34", | ||
"cython>=3.0.8; python_implementation == 'CPython'", # Skip cython when using pypy | ||
] | ||
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools>=61", | ||
"cython>=3.0.8; python_implementation == 'CPython'", # Skip cython when using pypy | ||
] | ||
|
||
[project] | ||
name = "falcon" | ||
readme = {file = "README.rst", content-type = "text/x-rst"} | ||
dynamic = ["version"] | ||
dependencies = [] | ||
requires-python = ">=3.8" | ||
description = "The ultra-reliable, fast ASGI+WSGI framework for building data plane APIs at scale." | ||
authors = [ | ||
{name = "Kurt Griffiths", email = "[email protected]"}, | ||
] | ||
license = {text = "Apache 2.0"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Web Environment", | ||
"Natural Language :: English", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: System Administrators", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX", | ||
"Topic :: Internet :: WWW/HTTP :: WSGI", | ||
"Topic :: Software Development :: Libraries :: Application Frameworks", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Programming Language :: Cython", | ||
"Typing :: Typed", | ||
] | ||
keywords = [ | ||
"asgi", | ||
"wsgi", | ||
"web", | ||
"api", | ||
"framework", | ||
"rest", | ||
"http", | ||
"cloud", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest"] | ||
|
||
[project.scripts] | ||
falcon-bench = "falcon.cmd.bench:main" | ||
falcon-inspect-app = "falcon.cmd.inspect_app:main" | ||
falcon-print-routes = "falcon.cmd.inspect_app:route_main" | ||
|
||
[project.urls] | ||
Homepage = "https://falconframework.org" | ||
Documentation = "https://falcon.readthedocs.io/en/stable/" | ||
"Release Notes" = "https://falcon.readthedocs.io/en/stable/changes/" | ||
"Source" = "https://github.com/falconry/falcon" | ||
"Issue Tracker" = "https://github.com/falconry/falcon/issues" | ||
Funding = "https://opencollective.com/falcon" | ||
Chat = "https://gitter.im/falconry/user" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
license-files = ["LICENSE"] | ||
zip-safe = false | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "falcon.version.__version__"} | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["examples", "tests"] | ||
|
||
[tool.mypy] | ||
exclude = [ | ||
|