mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Update docs to reflect we no longer support 3.5
Also removed code that skipped black test for 3.5.
This commit is contained in:
parent
03fdb49620
commit
18cc795b5c
4 changed files with 8 additions and 10 deletions
|
|
@ -69,7 +69,7 @@ sqlite-utils: a Python library and CLI tool for building SQLite databases](https
|
||||||
|
|
||||||
pip3 install datasette
|
pip3 install datasette
|
||||||
|
|
||||||
Datasette requires Python 3.5 or higher. We also have [detailed installation instructions](https://datasette.readthedocs.io/en/stable/installation.html) covering other options such as Docker.
|
Datasette requires Python 3.6 or higher. We also have [detailed installation instructions](https://datasette.readthedocs.io/en/stable/installation.html) covering other options such as Docker.
|
||||||
|
|
||||||
## Basic usage
|
## Basic usage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ General guidelines
|
||||||
Setting up a development environment
|
Setting up a development environment
|
||||||
------------------------------------
|
------------------------------------
|
||||||
|
|
||||||
If you have Python 3.5 or higher installed on your computer (on OS X the easiest 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.6 or higher installed on your computer (on OS X the easiest 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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,16 +69,19 @@ You can now run the new custom image like so::
|
||||||
You can confirm that the plugins are installed by visiting
|
You can confirm that the plugins are installed by visiting
|
||||||
http://127.0.0.1:8001/-/plugins
|
http://127.0.0.1:8001/-/plugins
|
||||||
|
|
||||||
|
|
||||||
Install using pip
|
Install using pip
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
To run Datasette without Docker you will need Python 3.5 or higher.
|
To run Datasette without Docker you will need Python 3.6 or higher.
|
||||||
|
|
||||||
You can install Datasette and its dependencies using ``pip``::
|
You can install Datasette and its dependencies using ``pip``::
|
||||||
|
|
||||||
pip install datasette
|
pip install datasette
|
||||||
|
|
||||||
|
The last version to support Python 3.5 was 0.30.2 - you can install that version like so::
|
||||||
|
|
||||||
|
pip install datasette==0.30.2
|
||||||
|
|
||||||
If you want to install Datasette in its own virtual environment, use this::
|
If you want to install Datasette in its own virtual environment, use this::
|
||||||
|
|
||||||
python -mvenv datasette-venv
|
python -mvenv datasette-venv
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import black
|
||||||
from click.testing import CliRunner
|
from click.testing import CliRunner
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import pytest
|
import pytest
|
||||||
|
|
@ -6,13 +7,7 @@ import sys
|
||||||
code_root = Path(__file__).parent.parent
|
code_root = Path(__file__).parent.parent
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(
|
|
||||||
sys.version_info[:2] < (3, 6), reason="Black requires Python 3.6 or later"
|
|
||||||
)
|
|
||||||
def test_black():
|
def test_black():
|
||||||
# Do not import at top of module because Python 3.5 will not have it installed
|
|
||||||
import black
|
|
||||||
|
|
||||||
runner = CliRunner()
|
runner = CliRunner()
|
||||||
result = runner.invoke(
|
result = runner.invoke(
|
||||||
black.main, [str(code_root / "tests"), str(code_root / "datasette"), "--check"]
|
black.main, [str(code_root / "tests"), str(code_root / "datasette"), "--check"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue