Drop support for Python 3.6, closes #1577

Refs #1606
pull/1610/head
Simon Willison 2022-01-19 20:31:22 -08:00
rodzic 58652dd925
commit fae3983c51
7 zmienionych plików z 12 dodań i 13 usunięć

Wyświetl plik

@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] python-version: ["3.7", "3.8", "3.9", "3.10"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
@ -38,7 +38,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.9' python-version: '3.10'
- uses: actions/cache@v2 - uses: actions/cache@v2
name: Configure pip caching name: Configure pip caching
with: with:
@ -66,7 +66,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.9' python-version: '3.10'
- uses: actions/cache@v2 - uses: actions/cache@v2
name: Configure pip caching name: Configure pip caching
with: with:

Wyświetl plik

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] python-version: ["3.7", "3.8", "3.9", "3.10"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}

Wyświetl plik

@ -35,7 +35,7 @@ You can also install it using `pip` or `pipx`:
pip install datasette pip install datasette
Datasette requires Python 3.6 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.7 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

Wyświetl plik

@ -19,7 +19,7 @@ General guidelines
Setting up a development environment Setting up a development environment
------------------------------------ ------------------------------------
If you have Python 3.6 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.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 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.

Wyświetl plik

@ -56,7 +56,7 @@ If the latest packaged release of Datasette has not yet been made available thro
Using pip Using pip
--------- ---------
Datasette requires Python 3.6 or higher. Visit `InstallPython3.com <https://installpython3.com/>`__ for step-by-step installation guides for your operating system. Datasette requires Python 3.7 or higher. Visit `InstallPython3.com <https://installpython3.com/>`__ for step-by-step installation guides for your operating system.
You can install Datasette and its dependencies using ``pip``:: You can install Datasette and its dependencies using ``pip``::

Wyświetl plik

@ -38,11 +38,11 @@ Shows the version of Datasette, Python and SQLite. `Versions example <https://la
{ {
"datasette": { "datasette": {
"version": "0.21" "version": "0.60"
}, },
"python": { "python": {
"full": "3.6.5 (default, May 5 2018, 03:07:21) \n[GCC 6.3.0 20170516]", "full": "3.8.12 (default, Dec 21 2021, 10:45:09) \n[GCC 10.2.1 20210110]",
"version": "3.6.5" "version": "3.8.12"
}, },
"sqlite": { "sqlite": {
"extensions": { "extensions": {
@ -62,7 +62,7 @@ Shows the version of Datasette, Python and SQLite. `Versions example <https://la
"ENABLE_RTREE", "ENABLE_RTREE",
"THREADSAFE=1" "THREADSAFE=1"
], ],
"version": "3.16.2" "version": "3.37.0"
} }
} }

Wyświetl plik

@ -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.6", python_requires=">=3.7",
install_requires=[ install_requires=[
"asgiref>=3.2.10,<3.5.0", "asgiref>=3.2.10,<3.5.0",
"click>=7.1.1,<8.1.0", "click>=7.1.1,<8.1.0",
@ -91,6 +91,5 @@ setup(
"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", "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.6",
], ],
) )