Skip to content

Commit 3a4d2bf

Browse files
committed
Switch to pyproject.toml, refs dogsheep#12
1 parent 2c56de4 commit 3a4d2bf

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
cache: pip
23-
cache-dependency-path: setup.py
23+
cache-dependency-path: pyproject.toml
2424
- name: Install dependencies
2525
run: |
2626
pip install '.[test]'
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
python-version: "3.11"
3939
cache: pip
40-
cache-dependency-path: setup.py
40+
cache-dependency-path: pyproject.toml
4141
- name: Install dependencies
4242
run: |
4343
pip install setuptools wheel twine build
@@ -48,4 +48,3 @@ jobs:
4848
run: |
4949
python -m build
5050
twine upload dist/*
51-

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
cache: pip
21-
cache-dependency-path: setup.py
21+
cache-dependency-path: pyproject.toml
2222
- name: Install dependencies
2323
run: |
2424
pip install '.[test]'

pyproject.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[project]
2+
name = "pocket-to-sqlite"
3+
version = "0.2.3"
4+
description = "Create a SQLite database containing data from your Pocket account"
5+
readme = "README.md"
6+
authors = [{name = "Simon Willison"}]
7+
license = {text = "Apache-2.0"}
8+
classifiers = [
9+
"License :: OSI Approved :: Apache Software License"
10+
]
11+
dependencies = [
12+
"sqlite-utils>=2.4.4",
13+
"click",
14+
"requests"
15+
]
16+
requires-python = ">3.7"
17+
scripts = {pocket-to-sqlite = "pocket_to_sqlite.cli:cli"}
18+
19+
[project.urls]
20+
homepage = "https://github.com/dogsheep/pocket-to-sqlite"
21+
Changelog = "https://github.com/dogsheep/pocket-to-sqlite/releases"
22+
Issues = "https://github.com/dogsheep/pocket-to-sqlite/issues"
23+
CI = "https://github.com/dogsheep/pocket-to-sqlite/actions"
24+
25+
[project.optional-dependencies]
26+
test = ["pytest"]

0 commit comments

Comments
 (0)