Browse Source

the project will use python3 from now on, update code and documentation (closes #2)

Helmut Pozimski 7 years ago
parent
commit
03403fc1c3
10 changed files with 25 additions and 38 deletions
  1. 0 2
      .bzrignore
  2. 9 0
      Changelog
  3. 1 2
      README.md
  4. 0 25
      config/stdd.conf
  5. 6 0
      debian/changelog
  6. 3 3
      debian/control
  7. 2 2
      debian/rules
  8. 1 1
      doc/stdd.1
  9. 1 1
      setup.py
  10. 2 2
      stdd

+ 0 - 2
.bzrignore

@@ -1,2 +0,0 @@
-*.pyc
-notes

+ 9 - 0
Changelog

@@ -1,3 +1,12 @@
+2016-12-03  Helmut Pozimski  <helmut@pozimski.eu>
+
+    moved the project over to python 3.x, older version are now deprecated
+
+2016-12-03  Helmut Pozimski  <helmut@pozimski.eu>
+
+    moved from the old embedded adafruit code to the current version of the
+    Adafruit_LED_Backpack-module from pypi.
+
 2015-08-02  Helmut Pozimski  <helmut@pozimski.eu>
 
     changed the init script to create a separate directory for the PID file

+ 1 - 2
README.md

@@ -14,8 +14,7 @@ see ./stdd
 
 stov depends on the following software to be installed:
 
-	* python 2.7 or higher (lower 2.x versions might work but are not tested 3.x is not supported)
-	* python-smbus
+	* python 3.0 or higher (2.x versions might work but are deprecated)
 	* python-pcrtl (optional)
 	* Adafruit-LED-Backpack module from pypi
 

+ 0 - 25
config/stdd.conf

@@ -1,25 +0,0 @@
-# hardware address for your display, a common value is "0x70"
-# use i2cdetect to find yours if it doesn't match
-HW_ADDRESS=0x70
-
-# do you want the middle colon to blink, 0 = off, 1 = on
-BLINK_COLON=0
-
-# value used for "high" brightness, valid values are 0-15
-BRIGHTNESS_HIGH=15
-
-# value used for "low" brightness, valid values are 0-15                              
-BRIGHTNESS_LOW=2
-
-# time of the day to change the brightness from high to low                               
-SET_BRIGHTNESS_LOW=23:00
-
-# time of the day to change the brightness from low to high
-SET_BRIGHTNESS_HIGH=06:00
-
-# maximum syslog level to log, stdd uses debug, info and error                                
-SYSLOG_LEVEL=info
-
-# syslog facility to use for logging
-SYSLOG_FACILITY=user
-

+ 6 - 0
debian/changelog

@@ -1,3 +1,9 @@
+stdd (0.9.7-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Helmut Pozimski <helmut@pozimski.eu>  Sat, 03 Dec 2016 21:35:00 +0100
+
 stdd (0.9.6-1) unstable; urgency=low
 
   * New upstream release

+ 3 - 3
debian/control

@@ -1,15 +1,15 @@
 Source: stdd
-XS-Python-Version: >= 2.7
+XS-Python3-Version: >= 3.0
 Maintainer: Helmut Pozimski <helmut@pozimski.eu>
 Homepage: https://dev.intranet.helmut-pozimski.de/stdd
 Section: python
 Priority: optional
-Build-Depends: python (>= 2.6), debhelper (>= 9), dh-python
+Build-Depends: python3 (>= 3.0), debhelper (>= 9), dh-python
 Standards-Version: 3.9.6
 
 Package: stdd
 Architecture: all
-Depends:  ${misc:Depends}, python (>= 2.7), python-smbus, i2c-tools, python-prctl
+Depends:  ${misc:Depends}, python3 (>= 3.0), i2c-tools
 Description: simple time display daemon
  stdd is a small daemon written in python which displays
  the current time on a 7 segment display from Adafruit attached via i2c

+ 2 - 2
debian/rules

@@ -4,9 +4,9 @@
 # Sun, 14 Apr 2013 00:45:09 +0200
 
 %:
-	dh $@ --with python2
+	dh $@ --with python3
 override_dh_auto_install:
-	python setup.py install --root=debian/stdd --install-layout=deb --install-lib=/usr/share/stdd --install-scripts=/usr/share/stdd
+	python3 setup.py install --root=debian/stdd --install-layout=deb --install-lib=/usr/share/stdd --install-scripts=/usr/share/stdd
 override_dh_auto_build:
 
 override_dh_install:

+ 1 - 1
doc/stdd.1

@@ -1,4 +1,4 @@
-.TH STDD 1 "03 December, 2016" 0.9.6 stdd
+.TH STDD 1 "03 December, 2016" 0.9.7 stdd
 .SH NAME
 stdd \- a daemon to display the current time on a 7 segment display
 .SH SYNOPSIS

+ 1 - 1
setup.py

@@ -12,7 +12,7 @@ from distutils.core import setup
 
 setup(
     name="stdd",
-    version="0.9.6",
+    version="0.9.7",
     author_email="helmut@pozimski.eu",
     description="stdd, simple time display daemon",
     long_description=("stdd is a small daemon written in python which displays"

+ 2 - 2
stdd

@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 # -*- coding: utf8 -*-
 #
 # This file is part of stdd, the simple time display daemon,
@@ -23,7 +23,7 @@ from stddlib import daemon
 from Adafruit_LED_Backpack import SevenSegment
 
 
-PARSER = OptionParser(prog="stdd", version="%prog 0.9.6", add_help_option=True)
+PARSER = OptionParser(prog="stdd", version="%prog 0.9.7", add_help_option=True)
 PARSER.add_option("-d", "--daemon", action="store_true", dest="daemon",
                   help="run stdd as daemon")
 PARSER.add_option("-u", "--user", dest="user", help="define an unprivileged \