move package metadata to setup.cfg
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent 171aabc · Browse files · 14 files·+142 added−151 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
14 files+142 added−151 removed
- other:+142 added−151 removed
Provenance
- Commit
024f0d3- Tree
8347515- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
171aabc
14 files changed+142 added−151 removed
deleted:examples/javascript/LICENSE-31 removed
1-Copyright © 2010 by the Pallets team.2-3-Some rights reserved.4-5-Redistribution and use in source and binary forms of the software as6-well as documentation, with or without modification, are permitted7-provided that the following conditions are met:8-9-* Redistributions of source code must retain the above copyright notice,10- this list of conditions and the following disclaimer.11-12-* Redistributions in binary form must reproduce the above copyright13- notice, this list of conditions and the following disclaimer in the14- documentation and/or other materials provided with the distribution.15-16-* Neither the name of the copyright holder nor the names of its17- contributors may be used to endorse or promote products derived from18- this software without specific prior written permission.19-20-THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND21-CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,22-BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND23-FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE24-COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,25-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT26-NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF27-USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON28-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT29-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF30-THIS SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF31-SUCH DAMAGE.added:examples/javascript/LICENSE.rst+28 added
1+Copyright 2010 Pallets2+3+Redistribution and use in source and binary forms, with or without4+modification, are permitted provided that the following conditions are5+met:6+7+1. Redistributions of source code must retain the above copyright8+ notice, this list of conditions and the following disclaimer.9+10+2. Redistributions in binary form must reproduce the above copyright11+ notice, this list of conditions and the following disclaimer in the12+ documentation and/or other materials provided with the distribution.13+14+3. Neither the name of the copyright holder nor the names of its15+ contributors may be used to endorse or promote products derived from16+ this software without specific prior written permission.17+18+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS19+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT20+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A21+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT22+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,23+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED24+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR25+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF26+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING27+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS28+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.modified:examples/javascript/MANIFEST.in+1 added-1 removed
1-include LICENSE1+include LICENSE.rst2 graft js_example/templates3 graft tests4 global-exclude *.pycmodified:examples/javascript/setup.cfg+19 added-3 removed
1 [metadata]2-license_file = LICENSE2+name = js_example3+version = 1.0.04+url = https://flask.palletsprojects.com/patterns/jquery/5+license = BSD-3-Clause6+maintainer = Pallets7+maintainer_email = contact@palletsprojects.com8+description = Demonstrates making AJAX requests to Flask.9+long_description = file: README.rst10+long_description_content_type = text/x-rst11 4-[bdist_wheel]5-universal = True12+[options]13+packages = find:14+include_package_data = true15+install_requires =16+ Flask17 18+[options.extras_require]19+test =20+ pytest21+ blinker22+23 [tool:pytest]24 testpaths = tests25 26 [coverage:run]3 unmodified linesmodified:examples/javascript/setup.py+1 added-19 removed
1-from setuptools import find_packages1 from setuptools import setup2 4-with open("README.rst", encoding="utf8") as f:5- readme = f.read()6-7-setup(3+setup()8- name="js_example",9- version="1.0.0",10- url="https://flask.palletsprojects.com/patterns/jquery/",11- license="BSD",12- maintainer="Pallets team",13- maintainer_email="contact@palletsprojects.com",14- description="Demonstrates making Ajax requests to Flask.",15- long_description=readme,16- packages=find_packages(),17- include_package_data=True,18- zip_safe=False,19- install_requires=["flask"],20- extras_require={"test": ["pytest", "coverage", "blinker"]},21-)deleted:examples/tutorial/LICENSE-31 removed
1-Copyright © 2010 by the Pallets team.2-3-Some rights reserved.4-5-Redistribution and use in source and binary forms of the software as6-well as documentation, with or without modification, are permitted7-provided that the following conditions are met:8-9-* Redistributions of source code must retain the above copyright notice,10- this list of conditions and the following disclaimer.11-12-* Redistributions in binary form must reproduce the above copyright13- notice, this list of conditions and the following disclaimer in the14- documentation and/or other materials provided with the distribution.15-16-* Neither the name of the copyright holder nor the names of its17- contributors may be used to endorse or promote products derived from18- this software without specific prior written permission.19-20-THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND21-CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,22-BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND23-FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE24-COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,25-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT26-NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF27-USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON28-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT29-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF30-THIS SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF31-SUCH DAMAGE.added:examples/tutorial/LICENSE.rst+28 added
1+Copyright 2010 Pallets2+3+Redistribution and use in source and binary forms, with or without4+modification, are permitted provided that the following conditions are5+met:6+7+1. Redistributions of source code must retain the above copyright8+ notice, this list of conditions and the following disclaimer.9+10+2. Redistributions in binary form must reproduce the above copyright11+ notice, this list of conditions and the following disclaimer in the12+ documentation and/or other materials provided with the distribution.13+14+3. Neither the name of the copyright holder nor the names of its15+ contributors may be used to endorse or promote products derived from16+ this software without specific prior written permission.17+18+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS19+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT20+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A21+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT22+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,23+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED24+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR25+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF26+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING27+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS28+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.modified:examples/tutorial/MANIFEST.in+1 added-1 removed
1-include LICENSE1+include LICENSE.rst2 include flaskr/schema.sql3 graft flaskr/static4 graft flaskr/templates5 graft tests1 unmodified linemodified:examples/tutorial/setup.cfg+18 added-3 removed
1 [metadata]2-license_file = LICENSE2+name = flaskr3+version = 1.0.04+url = https://flask.palletsprojects.com/tutorial/5+license = BSD-3-Clause6+maintainer = Pallets7+maintainer_email = contact@palletsprojects.com8+description = The basic blog app built in the Flask tutorial.9+long_description = file: README.rst10+long_description_content_type = text/x-rst11 4-[bdist_wheel]5-universal = True12+[options]13+packages = find:14+include_package_data = true15+install_requires =16+ Flask17 18+[options.extras_require]19+test =20+ pytest21+22 [tool:pytest]23 testpaths = tests24 25 [coverage:run]3 unmodified linesmodified:examples/tutorial/setup.py+1 added-19 removed
1-from setuptools import find_packages1 from setuptools import setup2 4-with open("README.rst", encoding="utf8") as f:5- readme = f.read()6-7-setup(3+setup()8- name="flaskr",9- version="1.0.0",10- url="https://flask.palletsprojects.com/tutorial/",11- license="BSD",12- maintainer="Pallets team",13- maintainer_email="contact@palletsprojects.com",14- description="The basic blog app built in the Flask tutorial.",15- long_description=readme,16- packages=find_packages(),17- include_package_data=True,18- zip_safe=False,19- install_requires=["flask"],20- extras_require={"test": ["pytest", "coverage"]},21-)modified:src/flask/__init__.py+2 added-2 removed
1-from jinja2 import escape2-from jinja2 import Markup1+from markupsafe import escape2+from markupsafe import Markup3 from werkzeug.exceptions import abort4 from werkzeug.utils import redirect5 6 from . import json40 unmodified linesmodified:MANIFEST.in+1 added
1 include CHANGES.rst2 include CONTRIBUTING.rst3+include LICENSE.rst4 include tox.ini5 graft artwork6 graft docs7 prune docs/_build3 unmodified linesmodified:setup.cfg+41 added
1+[metadata]2+name = Flask3+# Version needs regex in setup.py.4+url = https://palletsprojects.com/p/flask5+project_urls =6+ Documentation = https://flask.palletsprojects.com/7+ Code = https://github.com/pallets/flask8+ Issue tracker = https://github.com/pallets/flask/issues9+license = BSD-3-Clause10+maintainer = Pallets11+maintainer_email = contact@palletsprojects.com12+description = A simple framework for building complex web applications.13+long_description = file: README.rst14+long_description_content_type = text/x-rst15+classifiers =16+ Development Status :: 5 - Production/Stable17+ Environment :: Web Environment18+ Framework :: Flask19+ Intended Audience :: Developers20+ License :: OSI Approved :: BSD License21+ Operating System :: OS Independent22+ Programming Language :: Python23+ Topic :: Internet :: WWW/HTTP :: Dynamic Content24+ Topic :: Internet :: WWW/HTTP :: WSGI25+ Topic :: Internet :: WWW/HTTP :: WSGI :: Application26+ Topic :: Software Development :: Libraries :: Application Frameworks27+28+[options]29+packages = find:30+package_dir = = src31+include_package_data = true32+python_requires = >= 3.633+# Dependencies are in setup.py for GitHub's dependency graph.34+35+[options.packages.find]36+where = src37+38+[options.entry_points]39+console_scripts =40+ flask = flask.cli:main41+42 [tool:pytest]43 testpaths = tests44 filterwarnings =45 error36 unmodified linesmodified:setup.py+1 added-41 removed
1 import re2 3-from setuptools import find_packages3 from setuptools import setup4 6-with open("README.rst", encoding="utf8") as f:7- readme = f.read()8-5 with open("src/flask/__init__.py", encoding="utf8") as f:6 version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)7 8+# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.9 setup(10 name="Flask",11 version=version,15- url="https://palletsprojects.com/p/flask/",16- project_urls={17- "Documentation": "https://flask.palletsprojects.com/",18- "Code": "https://github.com/pallets/flask",19- "Issue tracker": "https://github.com/pallets/flask/issues",20- },21- license="BSD-3-Clause",22- author="Armin Ronacher",23- author_email="armin.ronacher@active-4.com",24- maintainer="Pallets",25- maintainer_email="contact@palletsprojects.com",26- description="A simple framework for building complex web applications.",27- long_description=readme,28- classifiers=[29- "Development Status :: 5 - Production/Stable",30- "Environment :: Web Environment",31- "Framework :: Flask",32- "Intended Audience :: Developers",33- "License :: OSI Approved :: BSD License",34- "Operating System :: OS Independent",35- "Programming Language :: Python",36- "Topic :: Internet :: WWW/HTTP :: Dynamic Content",37- "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",38- "Topic :: Software Development :: Libraries :: Application Frameworks",39- "Topic :: Software Development :: Libraries :: Python Modules",40- ],41- packages=find_packages("src"),42- package_dir={"": "src"},43- include_package_data=True,44- python_requires=">=3.6",12 install_requires=[13 "Werkzeug>=0.15",14 "Jinja2>=2.10.1",15 "itsdangerous>=0.24",9 unmodified lines25 "pallets-sphinx-themes",26 "sphinxcontrib-log-cabinet",27 "sphinx-issues",28 ],62- "docs": [63- "sphinx",64- "pallets-sphinx-themes",65- "sphinxcontrib-log-cabinet",66- "sphinx-issues",67- ],29 },69- entry_points={"console_scripts": ["flask = flask.cli:main"]},30 )