attempt at building a debian package for gradesoop

This commit is contained in:
adam j hartz 2025-06-06 16:23:45 -04:00
commit f6bcef3eb1
Signed by: hz
GPG key ID: B63A0A59F5C82493
13 changed files with 115 additions and 2 deletions

View file

@ -18,8 +18,8 @@ var/
*.egg
# Debian package files
debian/catsoop
debian/gradesoop
debian/.debhelper
debian/catsoop.substvars
debian/gradesoop.substvars
debian/files
.pybuild

24
debian/README.source vendored Normal file
View file

@ -0,0 +1,24 @@
gradesoop for Debian
--------------------
## usage
all of the subcommands have a --help flag that shows usage, arguments, and
options. here they are, roughly in the order they're needed:
* "gradesoop add-qrs" for adding qr codes to exams
* "gradesoop parse-scans" for reading and organizing raw scan data
* "gradesoop separate" for generating per-student pdfs from scan data
* "gradesoop setup-catsoop-course" for adding the web interface to a course (NOT YET IMPLEMENTED)
## acknowledgements
the first version of gradesoop was started in spring 2016 and was developed
primarily by a collection of dedicated 6.01 ta's: Rodrigo Toste Gomes, Gustavo
Goretkin, Jeremy Kaplan, Kade Phillips, and Jeremy Wright. much of the code
has been rewritten, but the current version is resting comfortably on the
shoulders of their work.
-- adam j hartz <hz@mit.edu> Wed, 04 Jun 2025 07:31:19 -0400

5
debian/changelog vendored Normal file
View file

@ -0,0 +1,5 @@
gradesoop (0.0.0-1) UNRELEASED; urgency=medium
* Initial release.
-- adam j hartz <hz@mit.edu> Wed, 04 Jun 2025 09:50:27 -0400

24
debian/control vendored Normal file
View file

@ -0,0 +1,24 @@
Source: gradesoop
Section: education
Priority: optional
Maintainer: adam j hartz <hz@mit.edu>
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13),
dh-python,
python3 (>= 3.11),
Standards-Version: 4.6.2
Homepage: https://catsoop.org/hg/gradesoop/file/tip/README
Vcs-Browser: https://catsoop.org/hg/gradesoop
Vcs-Hg: https://catsoop.org/hg/gradesoop
Package: gradesoop
Architecture: all
Depends:
${shlibs:Depends},
${misc:Depends},
${python3:Depends},
catsoop,
poppler-utils,
libzbar-dev,
Description: gradesoop is a library/tool for grading paper exams in catsoop

20
debian/copyright vendored Normal file
View file

@ -0,0 +1,20 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: gradesoop
Source: https://catsoop.org/hg/gradesoop
Files:
*
Copyright:
2011-2025 The CAT-SOOP Developers <catsoop-dev@mit.edu>
License: AGPL-3+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) 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 Affero General Public License for more details.
.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.

1
debian/debhelper-build-stamp vendored Normal file
View file

@ -0,0 +1 @@
gradesoop

1
debian/gradesoop-docs.docs vendored Normal file
View file

@ -0,0 +1 @@
README.source

10
debian/gradesoop-postinst.debhelper vendored Normal file
View file

@ -0,0 +1,10 @@
# Automatically added by dh_python3
if command -v py3compile >/dev/null 2>&1; then
py3compile -p catsoop
fi
if command -v pypy3compile >/dev/null 2>&1; then
pypy3compile -p catsoop || true
fi
# End automatically added section

10
debian/gradesoop.postinst.debhelper vendored Normal file
View file

@ -0,0 +1,10 @@
# Automatically added by dh_python3
if command -v py3compile >/dev/null 2>&1; then
py3compile -p gradesoop
fi
if command -v pypy3compile >/dev/null 2>&1; then
pypy3compile -p gradesoop || true
fi
# End automatically added section

10
debian/gradesoop.prerm.debhelper vendored Normal file
View file

@ -0,0 +1,10 @@
# Automatically added by dh_python3
if command -v py3clean >/dev/null 2>&1; then
py3clean -p gradesoop
else
dpkg -L gradesoop | sed -En -e '/^(.*)\/(.+)\.py$/s,,rm "\1/__pycache__/\2".*,e'
find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
fi
# End automatically added section

1
debian/py3dist-overrides vendored Normal file
View file

@ -0,0 +1 @@
pypdf python3-pypdf

6
debian/rules vendored Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/make -f
export PYBUILD_DISABLE=test
%:
dh $@ --with python3 --buildsystem=pybuild

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (quilt)