1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-30 13:41:50 +01:00

pydoorlock: install pydoorlock via pip

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
Ralf Ramsauer 2018-10-16 21:34:45 +02:00
parent bc23a8c122
commit 2ffa0e1b67
3 changed files with 27 additions and 1 deletions

2
.gitignore vendored
View File

@ -7,3 +7,5 @@ arch/doorlockd
arch/*.xz
arch/BKCA.crt
gpio-wait
pydoorlock/__pycache__/

View File

@ -17,7 +17,9 @@ install:
install doorlockd gpio-wait doorstate $(DESTDIR)/$(PREFIX)/bin/
install doorlockd-passwd $(DESTDIR)/$(PREFIX)/bin/
install -m 0644 doorlockd.cfg $(DESTDIR)/$(SYSCONFDIR)
install -m 0644 doorlockd.default.cfg doorlockd.cfg $(DESTDIR)/$(SYSCONFDIR)
install -m 0644 doorlockd.service doorstate.service $(DESTDIR)/$(SYSCONFDIR)/systemd/system
pip install --upgrade --force-reinstall --root=$(DESTDIR) .
cp -av share/* $(DESTDIR)/$(PREFIX)/share

22
setup.py Normal file
View File

@ -0,0 +1,22 @@
#
# pydoorlock, the python library for doorlock
#
# Author:
# Ralf Ramsauer <ralf@binary-kitchen.de>
#
# Copyright (c) Binary Kitchen, 2018
#
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
#
from setuptools import setup, find_packages
with open("VERSION") as version_file:
version = version_file.read().lstrip("v")
setup(name="pydoorlock", version=version,
description="A Python interface for doorlock",
license="GPLv2", url="https://github.com/Binary-Kitchen/doorlockd/",
author_email="ralf@binary-kitchen.de",
packages=find_packages())