switch examples to flit

This commit is contained in:
David Lord 2023-06-27 14:03:41 -07:00
parent f38f3a745a
commit 46b328854a
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
5 changed files with 21 additions and 17 deletions

View file

@ -1,4 +0,0 @@
include LICENSE.rst
graft js_example/templates
graft tests
global-exclude *.pyc

View file

@ -3,7 +3,7 @@ name = "js_example"
version = "1.1.0"
description = "Demonstrates making AJAX requests to Flask."
readme = "README.rst"
license = {text = "BSD-3-Clause"}
license = {file = "LICENSE.rst"}
maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
dependencies = ["flask"]
@ -14,8 +14,11 @@ Documentation = "https://flask.palletsprojects.com/patterns/jquery/"
test = ["pytest"]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
requires = ["flit_core<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "js_example"
[tool.pytest.ini_options]
testpaths = ["tests"]