kopia lustrzana https://github.com/simonw/datasette
Drop support for Python 3.7, refs #2091
rodzic
c39d600aef
commit
71fcdd953e
|
@ -12,7 +12,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
|
|
@ -10,7 +10,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
|
|
@ -36,7 +36,7 @@ You can also install it using `pip` or `pipx`:
|
||||||
|
|
||||||
pip install datasette
|
pip install datasette
|
||||||
|
|
||||||
Datasette requires Python 3.7 or higher. We also have [detailed installation instructions](https://docs.datasette.io/en/stable/installation.html) covering other options such as Docker.
|
Datasette requires Python 3.8 or higher. We also have [detailed installation instructions](https://docs.datasette.io/en/stable/installation.html) covering other options such as Docker.
|
||||||
|
|
||||||
## Basic usage
|
## Basic usage
|
||||||
|
|
||||||
|
|
|
@ -1072,15 +1072,13 @@ class Datasette:
|
||||||
{"name": t.name, "ident": t.ident, "daemon": t.daemon} for t in threads
|
{"name": t.name, "ident": t.ident, "daemon": t.daemon} for t in threads
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
# Only available in Python 3.7+
|
tasks = asyncio.all_tasks()
|
||||||
if hasattr(asyncio, "all_tasks"):
|
d.update(
|
||||||
tasks = asyncio.all_tasks()
|
{
|
||||||
d.update(
|
"num_tasks": len(tasks),
|
||||||
{
|
"tasks": [_cleaner_task_str(t) for t in tasks],
|
||||||
"num_tasks": len(tasks),
|
}
|
||||||
"tasks": [_cleaner_task_str(t) for t in tasks],
|
)
|
||||||
}
|
|
||||||
)
|
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def _actor(self, request):
|
def _actor(self, request):
|
||||||
|
|
|
@ -19,7 +19,7 @@ General guidelines
|
||||||
Setting up a development environment
|
Setting up a development environment
|
||||||
------------------------------------
|
------------------------------------
|
||||||
|
|
||||||
If you have Python 3.7 or higher installed on your computer (on OS X the quickest way to do this `is using homebrew <https://docs.python-guide.org/starting/install3/osx/>`__) you can install an editable copy of Datasette using the following steps.
|
If you have Python 3.8 or higher installed on your computer (on OS X the quickest way to do this `is using homebrew <https://docs.python-guide.org/starting/install3/osx/>`__) you can install an editable copy of Datasette using the following steps.
|
||||||
|
|
||||||
If you want to use GitHub to publish your changes, first `create a fork of datasette <https://github.com/simonw/datasette/fork>`__ under your own GitHub account.
|
If you want to use GitHub to publish your changes, first `create a fork of datasette <https://github.com/simonw/datasette/fork>`__ under your own GitHub account.
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ If the latest packaged release of Datasette has not yet been made available thro
|
||||||
Using pip
|
Using pip
|
||||||
---------
|
---------
|
||||||
|
|
||||||
Datasette requires Python 3.7 or higher. The `Python.org Python For Beginners <https://www.python.org/about/gettingstarted/>`__ page has instructions for getting started.
|
Datasette requires Python 3.8 or higher. The `Python.org Python For Beginners <https://www.python.org/about/gettingstarted/>`__ page has instructions for getting started.
|
||||||
|
|
||||||
You can install Datasette and its dependencies using ``pip``::
|
You can install Datasette and its dependencies using ``pip``::
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,6 @@ filterwarnings=
|
||||||
ignore:Using or importing the ABCs::jinja2
|
ignore:Using or importing the ABCs::jinja2
|
||||||
# https://bugs.launchpad.net/beautifulsoup/+bug/1778909
|
# https://bugs.launchpad.net/beautifulsoup/+bug/1778909
|
||||||
ignore:Using or importing the ABCs::bs4.element
|
ignore:Using or importing the ABCs::bs4.element
|
||||||
# Python 3.7 PendingDeprecationWarning: Task.current_task()
|
|
||||||
ignore:.*current_task.*:PendingDeprecationWarning
|
|
||||||
markers =
|
markers =
|
||||||
serial: tests to avoid using with pytest-xdist
|
serial: tests to avoid using with pytest-xdist
|
||||||
asyncio_mode = strict
|
asyncio_mode = strict
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -40,7 +40,7 @@ setup(
|
||||||
packages=find_packages(exclude=("tests",)),
|
packages=find_packages(exclude=("tests",)),
|
||||||
package_data={"datasette": ["templates/*.html"]},
|
package_data={"datasette": ["templates/*.html"]},
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
python_requires=">=3.7",
|
python_requires=">=3.8",
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"asgiref>=3.2.10",
|
"asgiref>=3.2.10",
|
||||||
"click>=7.1.1",
|
"click>=7.1.1",
|
||||||
|
@ -102,6 +102,5 @@ setup(
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.7",
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
Ładowanie…
Reference in New Issue