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:
parent
bc23a8c122
commit
2ffa0e1b67
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,3 +7,5 @@ arch/doorlockd
|
||||
arch/*.xz
|
||||
arch/BKCA.crt
|
||||
gpio-wait
|
||||
|
||||
pydoorlock/__pycache__/
|
||||
|
4
Makefile
4
Makefile
@ -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
22
setup.py
Normal 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())
|
Loading…
Reference in New Issue
Block a user