Skip to content

Commit

Permalink
Release 0.8a0
Browse files Browse the repository at this point in the history
Switch setup.py to pyproject.toml

Refs #22, #45, #46, #47, #49, #50, #51, #52, #53, #54, #55, #56, #57
  • Loading branch information
simonw committed Feb 18, 2024
1 parent 9b9bd2d commit e81a3a9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 36 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.py
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install -e '.[test]'
Expand All @@ -37,7 +37,7 @@ jobs:
with:
python-version: '3.12'
cache: pip
cache-dependency-path: setup.py
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install setuptools wheel build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.py
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install -e '.[test]'
Expand Down
37 changes: 37 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[project]
name = "datasette-edit-schema"
version = "0.8a0"
description = "Datasette plugin for modifying table schemas"
readme = "README.md"
authors = [{name = "Simon Willison"}]
license = {text = "Apache-2.0"}
classifiers=[
"Framework :: Datasette",
"License :: OSI Approved :: Apache Software License"
]
requires-python = ">=3.8"
dependencies = [
"datasette>=1.0a9",
"sqlite-utils>=3.35",
]

[project.urls]
Homepage = "https://datasette.io/plugins/datasette-edit-schema"
Changelog = "https://github.com/simonw/datasette-edit-schema/releases"
Issues = "https://github.com/simonw/datasette-edit-schema/issues"
CI = "https://github.com/simonw/datasette-edit-schema/actions"

[project.entry-points.datasette]
edit_schema = "datasette_edit_schema"

[project.optional-dependencies]
test = ["pytest", "pytest-asyncio", "beautifulsoup4", "html5lib"]

[tool.pytest.ini_options]
asyncio_mode = "strict"

[tool.setuptools]
packages = ["datasette_edit_schema"]

[tool.setuptools.package-data]
datasette_edit_schema = ["templates/*", "static/*"]
33 changes: 0 additions & 33 deletions setup.py

This file was deleted.

0 comments on commit e81a3a9

Please sign in to comment.