Skip to content
Snippets Groups Projects
Commit 466a3b6a authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch 'debian' into 'master'

Setup debian package

Closes #3 and #5

See merge request !15
parents 8df2a8aa 40c5c24f
No related branches found
No related tags found
1 merge request!15Setup debian package
Pipeline #20734 passed
name: Lint
on:
push:
jobs:
lint:
name: Run lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install poetry
uses: abatilo/actions-poetry@v2.0.0
- name: Install dependencies
run: pip install tox
- name: Lint
run: tox -e lint,security
name: Reformat
on:
push:
jobs:
black:
name: Run black/isort
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install poetry
uses: abatilo/actions-poetry@v2.0.0
- name: Install dependencies
run: pip install tox
- name: Reformat
run: tox -e reformat
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Reformat code using black"
commit_options: '--no-verify --signoff'
file_pattern: "*.py"
......@@ -155,8 +155,8 @@ debhelper-build-stamp
/tutorial-1/packageroot/usr
requirements.txt
debian/documento-client
debian/documento-client.*.debhelper
debian/documento-printserver
debian/documento-printserver.*.debhelper
debian/files
barcode-tmp.pdf
......
image: "debian:buster"
.before-script: &before-script
- apt update && apt install -y python3-setuptools python3-pip python3-dev git
- pip3 install poetry tox
before_script:
- *before-script
stages:
- test
- build
lint:
stage: test
script:
- tox -e lint
build-deb:
stage: build
before_script:
- *before-script
- apt update && apt install -y build-essential debhelper devscripts equivs dh-virtualenv libffi-dev
script:
- ./build-deb.sh
- mkdir build
- mv ../*.deb build/
artifacts:
paths:
- build/*
\ No newline at end of file
#!/bin/bash
poetry export --without-hashes > requirements.txt
sed -i '/^pillow.*$/d' requirements.txt
dpkg-buildpackage -us -uc -b
documento-printserver (0.1-1) unstable; urgency=medium
* Initial release.
-- Jonathan Weth <dev@jonathanweth.de> Sun, 04 Jul 2021 12:20:29 +0200
10
Source: documento-printserver
Section: python
Priority: extra
Maintainer: Jonathan Weth <dev@jonathanweth.de>
Build-Depends: debhelper (>= 10), python3, dh-virtualenv (>= 1.0),
python3-setuptools, python3-pip, python3-dev, libffi-dev
Standards-Version: 4.5.0
Homepage: https://edugit.org/documento/documento-printserver
Vcs-Git: https://edugit.org/documento/documento-printserver.git
Vcs-Browser: https://edugit.org/documento/documento-printserver
Package: documento-printserver
Architecture: any
Pre-Depends: dpkg (>= 1.16.1), python3 (>= 3.6), python3-pil, ${misc:Pre-Depends}
Depends: ${misc:Depends}
Description: The printserver for Documento
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: documento-printserver
Upstream-Contact: Jonathan Weth <dev@jonathanweth.de>
Source: https://edugit.org/documento/documento-printserver
Files: *
Copyright: 2020, 2021 Jonathan Weth <dev@jonathanweth.de>
License: GPL-3+
License: GPL-3+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-3'.
99-escpos.rules etc/udev/rules.d
\ No newline at end of file
opt/venvs/documento-printserver/bin/documento-printserver usr/bin/documento-printserver
# Register interest in Python interpreter changes (Python 2 for now); and
# don't make the Python package dependent on the virtualenv package
# processing (noawait)
interest-noawait /usr/bin/python3.6
interest-noawait /usr/bin/python3.7
interest-noawait /usr/bin/python3.8
interest-noawait /usr/bin/python3.9
# Also provide a symbolic trigger for all dh-virtualenv packages
interest dh-virtualenv-interpreter-update
#!/usr/bin/make -f
%:
dh $@ --with python-virtualenv
override_dh_virtualenv:
dh_virtualenv --python python3 --extra-pip-arg "--no-deps" --use-system-packages
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment