Merge pull request #3922 from pallets/consistency

various cleanup for consistency between projects
This commit is contained in:
David Lord 2021-02-24 10:35:16 -08:00 committed by GitHub
commit dcd3b5c8f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 40 additions and 31 deletions

View file

@ -4,10 +4,18 @@ on:
branches:
- master
- '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
pull_request:
branches:
- master
- '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
jobs:
tests:
name: ${{ matrix.name }}
@ -23,7 +31,6 @@ jobs:
- {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37}
- {name: '3.6', python: '3.6', os: ubuntu-latest, tox: py36}
- {name: 'PyPy', python: pypy3, os: ubuntu-latest, tox: pypy3}
- {name: Docs, python: '3.9', os: ubuntu-latest, tox: docs}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2

View file

@ -6,3 +6,4 @@ python:
path: .
sphinx:
builder: dirhtml
fail_on_warning: true

View file

@ -1,6 +1,5 @@
include CHANGES.rst
include CONTRIBUTING.rst
include LICENSE.rst
include tox.ini
include requirements/*.txt
graft artwork

View file

@ -12,6 +12,10 @@ project layout. It is up to the developer to choose the tools and
libraries they want to use. There are many extensions provided by the
community that make adding new functionality easy.
.. _WSGI: https://wsgi.readthedocs.io/
.. _Werkzeug: https://werkzeug.palletsprojects.com/
.. _Jinja: https://jinja.palletsprojects.com/
Installing
----------
@ -22,6 +26,8 @@ Install and update using `pip`_:
$ pip install -U Flask
.. _pip: https://pip.pypa.io/en/stable/quickstart/
A Simple Example
----------------
@ -60,21 +66,17 @@ it uses. In order to grow the community of contributors and users, and
allow the maintainers to devote more time to the projects, `please
donate today`_.
.. _please donate today: https://psfmember.org/civicrm/contribute/transact?reset=1&id=20
.. _please donate today: https://palletsprojects.com/donate
Links
-----
* Website: https://palletsprojects.com/p/flask/
* Documentation: https://flask.palletsprojects.com/
* Releases: https://pypi.org/project/Flask/
* Code: https://github.com/pallets/flask
* Issue tracker: https://github.com/pallets/flask/issues
* Test status: https://dev.azure.com/pallets/flask/_build
* Official chat: https://discord.gg/pallets
.. _WSGI: https://wsgi.readthedocs.io
.. _Werkzeug: https://www.palletsprojects.com/p/werkzeug/
.. _Jinja: https://www.palletsprojects.com/p/jinja/
.. _pip: https://pip.pypa.io/en/stable/quickstart/
- Documentation: https://flask.palletsprojects.com/
- Changes: https://flask.palletsprojects.com/changes/
- PyPI Releases: https://pypi.org/project/Flask/
- Source Code: https://github.com/pallets/flask/
- Issue Tracker: https://github.com/pallets/flask/issues/
- Website: https://palletsprojects.com/p/flask/
- Twitter: https://twitter.com/PalletsTeam
- Chat: https://discord.gg/pallets

View file

@ -38,11 +38,13 @@ html_theme = "flask"
html_theme_options = {"index_sidebar_logo": False}
html_context = {
"project_links": [
ProjectLink("Donate to Pallets", "https://palletsprojects.com/donate"),
ProjectLink("Flask Website", "https://palletsprojects.com/p/flask/"),
ProjectLink("PyPI releases", "https://pypi.org/project/Flask/"),
ProjectLink("Donate", "https://palletsprojects.com/donate"),
ProjectLink("PyPI Releases", "https://pypi.org/project/Flask/"),
ProjectLink("Source Code", "https://github.com/pallets/flask/"),
ProjectLink("Issue Tracker", "https://github.com/pallets/flask/issues/"),
ProjectLink("Website", "https://palletsprojects.com/p/flask/"),
ProjectLink("Twitter", "https://twitter.com/PalletsTeam"),
ProjectLink("Chat", "https://discord.gg/pallets"),
]
}
html_sidebars = {

View file

@ -85,6 +85,6 @@ Design notes, legal information and changelog are here for the interested.
htmlfaq
security
extensiondev
changelog
license
contributing
license
changes

View file

@ -1,8 +1,8 @@
License
=======
Source License
--------------
BSD-3-Clause Source License
---------------------------
The BSD-3-Clause license applies to all files in the Flask repository
and source distribution. This includes Flask's source code, the

View file

@ -1,11 +1,15 @@
[metadata]
name = Flask
# Version needs regex in setup.py.
version = attr: flask.__version__
url = https://palletsprojects.com/p/flask
project_urls =
Donate = https://palletsprojects.com/donate
Documentation = https://flask.palletsprojects.com/
Code = https://github.com/pallets/flask
Issue tracker = https://github.com/pallets/flask/issues
Changes = https://flask.palletsprojects.com/changes/
Source Code = https://github.com/pallets/flask/
Issue Tracker = https://github.com/pallets/flask/issues/
Twitter = https://twitter.com/PalletsTeam
Chat = https://discord.gg/pallets
license = BSD-3-Clause
author = Armin Ronacher
author_email = armin.ronacher@active-4.com

View file

@ -1,14 +1,8 @@
import re
from setuptools import setup
with open("src/flask/__init__.py", encoding="utf8") as f:
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.
setup(
name="Flask",
version=version,
install_requires=[
"Werkzeug>=0.15",
"Jinja2>=2.10.1",