Skip to content

Commit 6627699

Browse files
committed
[UPDATE] migrate to pyproject.toml
1 parent 669dad3 commit 6627699

File tree

4 files changed

+34
-59
lines changed

4 files changed

+34
-59
lines changed

PKGBUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
# Maintainer: Arnaud Gissinger <agissing@student.42.fr>
22
pkgname=rofi-notion
3-
pkgver=2.0.1
3+
pkgver=2.0.2
44
pkgrel=1
55
pkgdesc="Quickly create new Notion pages for your databases with rofi as GUI."
66
arch=('any')
77
url="https://github.com/mathix420/rofi-notion"
88
license=('MIT')
99
depends=('python>=3.7')
10-
makedepends=('python-setuptools')
10+
makedepends=(python-build python-installer)
1111
provides=('rofi-notion')
1212
source=("$pkgname-$pkgver.tar.gz::https://github.com/mathix420/rofi-notion/archive/refs/tags/v$pkgver.tar.gz")
1313
sha256sums=('SKIP')
1414

1515
build() {
1616
cd "$pkgname-$pkgver"
1717
rm .python-version
18-
python3 setup.py build
18+
python -m build --wheel # --no-isolation
1919
}
2020

2121
package() {
2222
cd "$pkgname-$pkgver"
23-
python3 setup.py install --root="$pkgdir" --optimize=1
23+
python -m installer --destdir="$pkgdir" dist/*.whl
2424
}

pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[project]
2+
name = "rofi-notion"
3+
version = "2.0.2"
4+
authors = [
5+
{name = "Arnaud Gissinger", email = "agissing@student.42.fr"},
6+
]
7+
description = "Quickly create new Notion pages for your databases with rofi as GUI"
8+
readme = "README.md"
9+
requires-python = ">=3.7"
10+
keywords = ["notion.so", "notion", "rofi", "dmenu", "x11", "i3"]
11+
license.file = "LICENSE"
12+
classifiers = [
13+
"Intended Audience :: Developers",
14+
"Intended Audience :: End Users/Desktop",
15+
"Topic :: Utilities",
16+
"License :: OSI Approved :: MIT License",
17+
"Operating System :: POSIX :: Linux",
18+
"Programming Language :: Python :: 3 :: Only",
19+
]
20+
dependencies = [
21+
"prompt-toolkit>=3",
22+
"notion-client==1.0.0",
23+
"python-rofi==1.0.1",
24+
"InquirerPy==0.3.4",
25+
"argparse==1.4.0",
26+
"PyYAML==6.0",
27+
]
28+
29+
[project.scripts]
30+
rofi-notion = "rofi_notion.__main__:main"

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)