update docs and examples for pyproject
setup.py -> pyproject.toml venv -> .venv
This commit is contained in:
parent
6d6d986fc5
commit
8f13f5b6d6
24 changed files with 153 additions and 195 deletions
2
examples/javascript/.gitignore
vendored
2
examples/javascript/.gitignore
vendored
|
|
@ -1,4 +1,4 @@
|
|||
venv/
|
||||
.venv/
|
||||
*.pyc
|
||||
__pycache__/
|
||||
instance/
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ Install
|
|||
|
||||
.. code-block:: text
|
||||
|
||||
$ python3 -m venv venv
|
||||
$ . venv/bin/activate
|
||||
$ python3 -m venv .venv
|
||||
$ . .venv/bin/activate
|
||||
$ pip install -e .
|
||||
|
||||
|
||||
|
|
|
|||
26
examples/javascript/pyproject.toml
Normal file
26
examples/javascript/pyproject.toml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
[project]
|
||||
name = "js_example"
|
||||
version = "1.1.0"
|
||||
description = "Demonstrates making AJAX requests to Flask."
|
||||
readme = "README.rst"
|
||||
license = {text = "BSD-3-Clause"}
|
||||
maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
|
||||
dependencies = ["flask"]
|
||||
|
||||
[project.urls]
|
||||
Documentation = "https://flask.palletsprojects.com/patterns/jquery/"
|
||||
|
||||
[project.optional-dependencies]
|
||||
test = ["pytest", "blinker"]
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
filterwarnings = ["error"]
|
||||
|
||||
[tool.coverage.run]
|
||||
branch = true
|
||||
source = ["js_example", "tests"]
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
[metadata]
|
||||
name = js_example
|
||||
version = 1.1.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
|
||||
|
||||
[options]
|
||||
packages = find:
|
||||
include_package_data = true
|
||||
install_requires =
|
||||
Flask
|
||||
|
||||
[options.extras_require]
|
||||
test =
|
||||
pytest
|
||||
blinker
|
||||
|
||||
[tool:pytest]
|
||||
testpaths = tests
|
||||
|
||||
[coverage:run]
|
||||
branch = True
|
||||
source =
|
||||
js_example
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
from setuptools import setup
|
||||
|
||||
setup()
|
||||
Loading…
Add table
Add a link
Reference in a new issue