Skip to content

Commit

Permalink
Migration to Python 3 (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
deckerego committed Jul 5, 2021
1 parent 7fbd508 commit 2ec15ca
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 15 deletions.
12 changes: 6 additions & 6 deletions BUILDING
Expand Up @@ -3,25 +3,25 @@ Building Binary Distributions

Distributions are generated using stdeb, execute it on the Raspberry Pi to build for the correct architecture:

python setup.py --command-packages=stdeb.command bdist_deb
python3 setup.py --command-packages=stdeb.command bdist_deb

To debug installation:

sudo dpkg -D113 -i ../python-tallypi_0.1.0-1_all.deb
sudo dpkg -D113 -i ../python3-tallypi_0.1.0-1_all.deb

To completely uninstall:

sudo dpkg -P python-tallypi
sudo dpkg -P python3-tallypi

To verify the files inside the package:

dpkg -c deb_dist/python-tallypi_0.1.0-1_all.deb
dpkg -c deb_dist/python3-tallypi_0.1.0-1_all.deb


Requirements
============

Requires python-stdeb and debhelper
Requires python3-stdeb and debhelper


Generating Debian Metadata
Expand All @@ -31,7 +31,7 @@ stdeb generates the debian/ folder automatically & this is version controlled.
However, if it needs regeneration one can save python-tallypi.postinst to a
separate directory, delete the debian/ directory, then re-issue:

python ./setup.py --command-packages=stdeb.command debianize
python3 ./setup.py --command-packages=stdeb.command debianize


Running Locally
Expand Down
6 changes: 3 additions & 3 deletions docs/INSTALLING.md
Expand Up @@ -100,16 +100,16 @@ an SSH session:
To install the TallyPi software, first install Python requirements from an
SSH session on your Pi:

apt-get install python-bottle python-paste
apt-get install python3-bottle python3-paste

Next, use wget to get the latest package of TallyPi from the release page
at https://github.com/deckerego/tally_pi/releases. For example:

wget https://github.com/deckerego/tally_pi/releases/download/0.3.1/python-tallypi_0.3.1-1_all.deb
wget https://github.com/deckerego/tally_pi/releases/download/0.3.1/python3-tallypi_0.3.1-1_all.deb

After downloading the package, install it using:

dpkg -i python-tallypi_0.3.1-1_all.deb
dpkg -i python3-tallypi_0.3.1-1_all.deb

Once the software is installed, you can enable it with:

Expand Down
3 changes: 0 additions & 3 deletions lib/tallypi/webapp/routes.py
@@ -1,6 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import logging
import socket

Expand Down
2 changes: 1 addition & 1 deletion scripts/run_server.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import os
Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from distutils.core import setup
Expand Down
2 changes: 1 addition & 1 deletion stdeb.cfg
@@ -1,3 +1,3 @@
[DEFAULT]
Depends: python-bottle, python-paste
Depends: python3-bottle, python3-paste
XS-Python-Version: >= 2.7

0 comments on commit 2ec15ca

Please sign in to comment.