Skip to content

Commit

Permalink
Address issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
joelp committed Jun 7, 2024
1 parent 1aa23bc commit 30a5022
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 36 deletions.
21 changes: 10 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
from debian:bullseye-slim

RUN apt update
RUN apt-get update

RUN apt install vim --yes && \
apt install curl --yes && \
apt install mosquitto-clients --yes && \
apt install openssh-client --yes && \
apt install jq --yes
RUN apt-get install vim --yes && \
apt-get install curl --yes && \
apt-get install mosquitto-clients --yes && \
apt-get install openssh-client --yes && \
apt-get install jq --yes

RUN apt install python3 --yes && \
apt install python3-paho-mqtt --yes && \
apt install python3-paramiko --yes && \
apt install python3-pip --yes
RUN apt-get install python3 --yes && \
apt-get install python3-paramiko --yes && \
apt-get install python3-pip --yes

# https://pypi.org/project/unifi-tracker/
RUN python3 -m pip install unifi-tracker
RUN python3 -m pip install unifi-tracker[paho-mqtt]

COPY /app /app

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ Works fine generally, and allows me to more freely innovate and be less dependen

History
-
### v0.1.2
- Address issue [#2](https://github.com/idatum/unifi_tracker/issues/2)
### v0.1.1
- Log handled vs raised exceptions differently.
- Explicitly set callback_api_version.
Expand Down
25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
[project]
name = "unifi_tracker"
version = "0.1.2"
authors = [{name = "Joel P.", email = "[email protected]"}]
description = "Track the comings and goings of WiFi clients on multiple Unifi APs and generate a diff between scans."
keywords = ["unifi", "wifi", "tracker", "presence", "mqtt"]
readme ={file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
requires-python = ">=3.9"
dependencies = [
"paramiko>=2.12"
]

[project.optional-dependencies]
paho-mqtt = ["paho-mqtt>=2.0"]

[project.urls]
Homepage = "https://github.com/idatum/unifi_tracker"
Issues = "https://github.com/idatum/unifi_tracker/issues"

[build-system]
requires = [
"setuptools>=42",
Expand Down
24 changes: 0 additions & 24 deletions setup.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion src/unifi_tracker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''Track the comings and goings of WiFi clients on multiple Unifi APs and generate a diff between scans.'''

__version__ = '0.1.1'
__version__ = '0.1.2'

from .unifi_tracker import *

0 comments on commit 30a5022

Please sign in to comment.