move package metadata to setup.cfg
This commit is contained in:
parent
171aabc87d
commit
024f0d384c
14 changed files with 142 additions and 151 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
include CHANGES.rst
|
include CHANGES.rst
|
||||||
include CONTRIBUTING.rst
|
include CONTRIBUTING.rst
|
||||||
|
include LICENSE.rst
|
||||||
include tox.ini
|
include tox.ini
|
||||||
graft artwork
|
graft artwork
|
||||||
graft docs
|
graft docs
|
||||||
|
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
Copyright © 2010 by the Pallets team.
|
|
||||||
|
|
||||||
Some rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms of the software as
|
|
||||||
well as documentation, with or without modification, are permitted
|
|
||||||
provided that the following conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright notice,
|
|
||||||
this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
* Neither the name of the copyright holder nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived from
|
|
||||||
this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
||||||
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
||||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
||||||
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
||||||
THIS SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
||||||
SUCH DAMAGE.
|
|
||||||
28
examples/javascript/LICENSE.rst
Normal file
28
examples/javascript/LICENSE.rst
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
Copyright 2010 Pallets
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
||||||
|
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||||
|
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||||
|
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||||
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
include LICENSE
|
include LICENSE.rst
|
||||||
graft js_example/templates
|
graft js_example/templates
|
||||||
graft tests
|
graft tests
|
||||||
global-exclude *.pyc
|
global-exclude *.pyc
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,24 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
license_file = LICENSE
|
name = js_example
|
||||||
|
version = 1.0.0
|
||||||
|
url = https://flask.palletsprojects.com/patterns/jquery/
|
||||||
|
license = BSD-3-Clause
|
||||||
|
maintainer = Pallets
|
||||||
|
maintainer_email = contact@palletsprojects.com
|
||||||
|
description = Demonstrates making AJAX requests to Flask.
|
||||||
|
long_description = file: README.rst
|
||||||
|
long_description_content_type = text/x-rst
|
||||||
|
|
||||||
[bdist_wheel]
|
[options]
|
||||||
universal = True
|
packages = find:
|
||||||
|
include_package_data = true
|
||||||
|
install_requires =
|
||||||
|
Flask
|
||||||
|
|
||||||
|
[options.extras_require]
|
||||||
|
test =
|
||||||
|
pytest
|
||||||
|
blinker
|
||||||
|
|
||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
testpaths = tests
|
testpaths = tests
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,3 @@
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
with open("README.rst", encoding="utf8") as f:
|
setup()
|
||||||
readme = f.read()
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name="js_example",
|
|
||||||
version="1.0.0",
|
|
||||||
url="https://flask.palletsprojects.com/patterns/jquery/",
|
|
||||||
license="BSD",
|
|
||||||
maintainer="Pallets team",
|
|
||||||
maintainer_email="contact@palletsprojects.com",
|
|
||||||
description="Demonstrates making Ajax requests to Flask.",
|
|
||||||
long_description=readme,
|
|
||||||
packages=find_packages(),
|
|
||||||
include_package_data=True,
|
|
||||||
zip_safe=False,
|
|
||||||
install_requires=["flask"],
|
|
||||||
extras_require={"test": ["pytest", "coverage", "blinker"]},
|
|
||||||
)
|
|
||||||
|
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
Copyright © 2010 by the Pallets team.
|
|
||||||
|
|
||||||
Some rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms of the software as
|
|
||||||
well as documentation, with or without modification, are permitted
|
|
||||||
provided that the following conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright notice,
|
|
||||||
this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
* Neither the name of the copyright holder nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived from
|
|
||||||
this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
||||||
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
||||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
||||||
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
||||||
THIS SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
||||||
SUCH DAMAGE.
|
|
||||||
28
examples/tutorial/LICENSE.rst
Normal file
28
examples/tutorial/LICENSE.rst
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
Copyright 2010 Pallets
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
||||||
|
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||||
|
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||||
|
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||||
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
include LICENSE
|
include LICENSE.rst
|
||||||
include flaskr/schema.sql
|
include flaskr/schema.sql
|
||||||
graft flaskr/static
|
graft flaskr/static
|
||||||
graft flaskr/templates
|
graft flaskr/templates
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,23 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
license_file = LICENSE
|
name = flaskr
|
||||||
|
version = 1.0.0
|
||||||
|
url = https://flask.palletsprojects.com/tutorial/
|
||||||
|
license = BSD-3-Clause
|
||||||
|
maintainer = Pallets
|
||||||
|
maintainer_email = contact@palletsprojects.com
|
||||||
|
description = The basic blog app built in the Flask tutorial.
|
||||||
|
long_description = file: README.rst
|
||||||
|
long_description_content_type = text/x-rst
|
||||||
|
|
||||||
[bdist_wheel]
|
[options]
|
||||||
universal = True
|
packages = find:
|
||||||
|
include_package_data = true
|
||||||
|
install_requires =
|
||||||
|
Flask
|
||||||
|
|
||||||
|
[options.extras_require]
|
||||||
|
test =
|
||||||
|
pytest
|
||||||
|
|
||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
testpaths = tests
|
testpaths = tests
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,3 @@
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
with open("README.rst", encoding="utf8") as f:
|
setup()
|
||||||
readme = f.read()
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name="flaskr",
|
|
||||||
version="1.0.0",
|
|
||||||
url="https://flask.palletsprojects.com/tutorial/",
|
|
||||||
license="BSD",
|
|
||||||
maintainer="Pallets team",
|
|
||||||
maintainer_email="contact@palletsprojects.com",
|
|
||||||
description="The basic blog app built in the Flask tutorial.",
|
|
||||||
long_description=readme,
|
|
||||||
packages=find_packages(),
|
|
||||||
include_package_data=True,
|
|
||||||
zip_safe=False,
|
|
||||||
install_requires=["flask"],
|
|
||||||
extras_require={"test": ["pytest", "coverage"]},
|
|
||||||
)
|
|
||||||
|
|
|
||||||
41
setup.cfg
41
setup.cfg
|
|
@ -1,3 +1,44 @@
|
||||||
|
[metadata]
|
||||||
|
name = Flask
|
||||||
|
# Version needs regex in setup.py.
|
||||||
|
url = https://palletsprojects.com/p/flask
|
||||||
|
project_urls =
|
||||||
|
Documentation = https://flask.palletsprojects.com/
|
||||||
|
Code = https://github.com/pallets/flask
|
||||||
|
Issue tracker = https://github.com/pallets/flask/issues
|
||||||
|
license = BSD-3-Clause
|
||||||
|
maintainer = Pallets
|
||||||
|
maintainer_email = contact@palletsprojects.com
|
||||||
|
description = A simple framework for building complex web applications.
|
||||||
|
long_description = file: README.rst
|
||||||
|
long_description_content_type = text/x-rst
|
||||||
|
classifiers =
|
||||||
|
Development Status :: 5 - Production/Stable
|
||||||
|
Environment :: Web Environment
|
||||||
|
Framework :: Flask
|
||||||
|
Intended Audience :: Developers
|
||||||
|
License :: OSI Approved :: BSD License
|
||||||
|
Operating System :: OS Independent
|
||||||
|
Programming Language :: Python
|
||||||
|
Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
||||||
|
Topic :: Internet :: WWW/HTTP :: WSGI
|
||||||
|
Topic :: Internet :: WWW/HTTP :: WSGI :: Application
|
||||||
|
Topic :: Software Development :: Libraries :: Application Frameworks
|
||||||
|
|
||||||
|
[options]
|
||||||
|
packages = find:
|
||||||
|
package_dir = = src
|
||||||
|
include_package_data = true
|
||||||
|
python_requires = >= 3.6
|
||||||
|
# Dependencies are in setup.py for GitHub's dependency graph.
|
||||||
|
|
||||||
|
[options.packages.find]
|
||||||
|
where = src
|
||||||
|
|
||||||
|
[options.entry_points]
|
||||||
|
console_scripts =
|
||||||
|
flask = flask.cli:main
|
||||||
|
|
||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
testpaths = tests
|
testpaths = tests
|
||||||
filterwarnings =
|
filterwarnings =
|
||||||
|
|
|
||||||
42
setup.py
42
setup.py
|
|
@ -1,47 +1,14 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
with open("README.rst", encoding="utf8") as f:
|
|
||||||
readme = f.read()
|
|
||||||
|
|
||||||
with open("src/flask/__init__.py", encoding="utf8") as f:
|
with open("src/flask/__init__.py", encoding="utf8") as f:
|
||||||
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
|
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
|
||||||
|
|
||||||
|
# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.
|
||||||
setup(
|
setup(
|
||||||
name="Flask",
|
name="Flask",
|
||||||
version=version,
|
version=version,
|
||||||
url="https://palletsprojects.com/p/flask/",
|
|
||||||
project_urls={
|
|
||||||
"Documentation": "https://flask.palletsprojects.com/",
|
|
||||||
"Code": "https://github.com/pallets/flask",
|
|
||||||
"Issue tracker": "https://github.com/pallets/flask/issues",
|
|
||||||
},
|
|
||||||
license="BSD-3-Clause",
|
|
||||||
author="Armin Ronacher",
|
|
||||||
author_email="armin.ronacher@active-4.com",
|
|
||||||
maintainer="Pallets",
|
|
||||||
maintainer_email="contact@palletsprojects.com",
|
|
||||||
description="A simple framework for building complex web applications.",
|
|
||||||
long_description=readme,
|
|
||||||
classifiers=[
|
|
||||||
"Development Status :: 5 - Production/Stable",
|
|
||||||
"Environment :: Web Environment",
|
|
||||||
"Framework :: Flask",
|
|
||||||
"Intended Audience :: Developers",
|
|
||||||
"License :: OSI Approved :: BSD License",
|
|
||||||
"Operating System :: OS Independent",
|
|
||||||
"Programming Language :: Python",
|
|
||||||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
|
||||||
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
|
|
||||||
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
|
||||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
||||||
],
|
|
||||||
packages=find_packages("src"),
|
|
||||||
package_dir={"": "src"},
|
|
||||||
include_package_data=True,
|
|
||||||
python_requires=">=3.6",
|
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"Werkzeug>=0.15",
|
"Werkzeug>=0.15",
|
||||||
"Jinja2>=2.10.1",
|
"Jinja2>=2.10.1",
|
||||||
|
|
@ -59,12 +26,5 @@ setup(
|
||||||
"sphinxcontrib-log-cabinet",
|
"sphinxcontrib-log-cabinet",
|
||||||
"sphinx-issues",
|
"sphinx-issues",
|
||||||
],
|
],
|
||||||
"docs": [
|
|
||||||
"sphinx",
|
|
||||||
"pallets-sphinx-themes",
|
|
||||||
"sphinxcontrib-log-cabinet",
|
|
||||||
"sphinx-issues",
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
entry_points={"console_scripts": ["flask = flask.cli:main"]},
|
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
from jinja2 import escape
|
from markupsafe import escape
|
||||||
from jinja2 import Markup
|
from markupsafe import Markup
|
||||||
from werkzeug.exceptions import abort
|
from werkzeug.exceptions import abort
|
||||||
from werkzeug.utils import redirect
|
from werkzeug.utils import redirect
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue