Skip to content

Commit 98769c8

Browse files
committed
use click's version support
1 parent b82a7c7 commit 98769c8

File tree

6 files changed

+4
-9
lines changed

6 files changed

+4
-9
lines changed

contrib/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license=('GPL')
99
sha512sums=('SKIP')
1010
arch=('any')
1111
depends=('python' 'python-pyxdg')
12-
makedepends=('git' 'python-setuptools' 'python-setuptools-scm' 'scdoc')
12+
makedepends=('git' 'python-setuptools' 'scdoc')
1313
provides=('qbpm')
1414
source=("git+https://github.com/pvsr/qbpm")
1515

default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ with pythonPackages;
99
version = "0.6";
1010
src = ./.;
1111
doCheck = true;
12-
SETUPTOOLS_SCM_PRETEND_VERSION = version;
13-
nativeBuildInputs = [pkgs.scdoc setuptools-scm];
12+
nativeBuildInputs = [pkgs.scdoc];
1413
propagatedBuildInputs = [pyxdg click];
1514
checkInputs = [pytest];
1615
postInstall = ''

flake.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
with ps; [
2222
pyxdg
2323
click
24-
setuptools-scm
2524
pytest
2625
pylint
2726
mypy

qbpm/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def creator_options(f: Callable[..., Any]) -> Callable[..., Any]:
4343

4444

4545
@click.group(context_settings=CONTEXT_SETTINGS)
46+
@click.version_option()
4647
@click.option(
4748
"-P",
4849
"--profile-dir",
@@ -54,7 +55,6 @@ def creator_options(f: Callable[..., Any]) -> Callable[..., Any]:
5455
)
5556
@click.pass_context
5657
def main(ctx: click.Context, profile_dir: Path) -> None:
57-
# TODO version
5858
ctx.obj = profile_dir
5959

6060

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
pyxdg ~= 0.26
2-
setuptools_scm ~= 3.4

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from setuptools import setup, find_packages
1+
from setuptools import find_packages, setup
22

33
setup(
44
name="qbpm",
@@ -10,6 +10,4 @@
1010
author="Peter Rice",
1111
author_email="[email protected]",
1212
description="qutebrowser profile manager",
13-
use_scm_version={"write_to": "qbpm/version.py"},
14-
setup_requires=["setuptools_scm"],
1513
)

0 commit comments

Comments
 (0)