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

View file

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

View file

@ -1,6 +1,5 @@
include CHANGES.rst include CHANGES.rst
include CONTRIBUTING.rst include CONTRIBUTING.rst
include LICENSE.rst
include tox.ini include tox.ini
include requirements/*.txt include requirements/*.txt
graft artwork 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 libraries they want to use. There are many extensions provided by the
community that make adding new functionality easy. community that make adding new functionality easy.
.. _WSGI: https://wsgi.readthedocs.io/
.. _Werkzeug: https://werkzeug.palletsprojects.com/
.. _Jinja: https://jinja.palletsprojects.com/
Installing Installing
---------- ----------
@ -22,6 +26,8 @@ Install and update using `pip`_:
$ pip install -U Flask $ pip install -U Flask
.. _pip: https://pip.pypa.io/en/stable/quickstart/
A Simple Example 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 allow the maintainers to devote more time to the projects, `please
donate today`_. donate today`_.
.. _please donate today: https://psfmember.org/civicrm/contribute/transact?reset=1&id=20 .. _please donate today: https://palletsprojects.com/donate
Links Links
----- -----
* Website: https://palletsprojects.com/p/flask/ - Documentation: https://flask.palletsprojects.com/
* Documentation: https://flask.palletsprojects.com/ - Changes: https://flask.palletsprojects.com/changes/
* Releases: https://pypi.org/project/Flask/ - PyPI Releases: https://pypi.org/project/Flask/
* Code: https://github.com/pallets/flask - Source Code: https://github.com/pallets/flask/
* Issue tracker: https://github.com/pallets/flask/issues - Issue Tracker: https://github.com/pallets/flask/issues/
* Test status: https://dev.azure.com/pallets/flask/_build - Website: https://palletsprojects.com/p/flask/
* Official chat: https://discord.gg/pallets - Twitter: https://twitter.com/PalletsTeam
- 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/

View file

@ -38,11 +38,13 @@ html_theme = "flask"
html_theme_options = {"index_sidebar_logo": False} html_theme_options = {"index_sidebar_logo": False}
html_context = { html_context = {
"project_links": [ "project_links": [
ProjectLink("Donate to Pallets", "https://palletsprojects.com/donate"), ProjectLink("Donate", "https://palletsprojects.com/donate"),
ProjectLink("Flask Website", "https://palletsprojects.com/p/flask/"), ProjectLink("PyPI Releases", "https://pypi.org/project/Flask/"),
ProjectLink("PyPI releases", "https://pypi.org/project/Flask/"),
ProjectLink("Source Code", "https://github.com/pallets/flask/"), ProjectLink("Source Code", "https://github.com/pallets/flask/"),
ProjectLink("Issue Tracker", "https://github.com/pallets/flask/issues/"), 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 = { html_sidebars = {

View file

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

View file

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

View file

@ -1,11 +1,15 @@
[metadata] [metadata]
name = Flask name = Flask
# Version needs regex in setup.py. version = attr: flask.__version__
url = https://palletsprojects.com/p/flask url = https://palletsprojects.com/p/flask
project_urls = project_urls =
Donate = https://palletsprojects.com/donate
Documentation = https://flask.palletsprojects.com/ Documentation = https://flask.palletsprojects.com/
Code = https://github.com/pallets/flask Changes = https://flask.palletsprojects.com/changes/
Issue tracker = https://github.com/pallets/flask/issues 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 license = BSD-3-Clause
author = Armin Ronacher author = Armin Ronacher
author_email = armin.ronacher@active-4.com author_email = armin.ronacher@active-4.com

View file

@ -1,14 +1,8 @@
import re
from setuptools import setup 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. # Metadata goes in setup.cfg. These are here for GitHub's dependency graph.
setup( setup(
name="Flask", name="Flask",
version=version,
install_requires=[ install_requires=[
"Werkzeug>=0.15", "Werkzeug>=0.15",
"Jinja2>=2.10.1", "Jinja2>=2.10.1",