Skip to content

Commit

Permalink
Switch to pyproject.toml, refs #12
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jul 9, 2023
1 parent 2c56de4 commit 3a4d2bf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,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 '.[test]'
Expand All @@ -37,7 +37,7 @@ jobs:
with:
python-version: "3.11"
cache: pip
cache-dependency-path: setup.py
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install setuptools wheel twine build
Expand All @@ -48,4 +48,3 @@ jobs:
run: |
python -m build
twine upload dist/*
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 '.[test]'
Expand Down
26 changes: 26 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[project]
name = "pocket-to-sqlite"
version = "0.2.3"
description = "Create a SQLite database containing data from your Pocket account"
readme = "README.md"
authors = [{name = "Simon Willison"}]
license = {text = "Apache-2.0"}
classifiers = [
"License :: OSI Approved :: Apache Software License"
]
dependencies = [
"sqlite-utils>=2.4.4",
"click",
"requests"
]
requires-python = ">3.7"
scripts = {pocket-to-sqlite = "pocket_to_sqlite.cli:cli"}

[project.urls]
homepage = "https://github.com/dogsheep/pocket-to-sqlite"
Changelog = "https://github.com/dogsheep/pocket-to-sqlite/releases"
Issues = "https://github.com/dogsheep/pocket-to-sqlite/issues"
CI = "https://github.com/dogsheep/pocket-to-sqlite/actions"

[project.optional-dependencies]
test = ["pytest"]

0 comments on commit 3a4d2bf

Please sign in to comment.