1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
%global _empty_manifest_terminate_build 0
Name: python-examtool
Version: 2.2.43
Release: 1
Summary: please add a summary manually as the author left a blank one
License: MIT
URL: https://pypi.org/project/examtool/
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/bd/dc/167d736615adeb6e0b6c723dc0cc6b88fad60fcdad1ee19a47767278a0a7/examtool-2.2.43.tar.gz
BuildArch: noarch
Requires: python3-cryptography
Requires: python3-pytz
Requires: python3-requests
Requires: python3-pypandoc
Requires: python3-google-cloud-firestore
Requires: python3-google-auth
Requires: python3-sendgrid
Requires: python3-click
Requires: python3-pikepdf
Requires: python3-pytz
Requires: python3-requests
Requires: python3-fpdf
Requires: python3-pypandoc
Requires: python3-sendgrid
Requires: python3-func-timeout
Requires: python3-fullGSapi
Requires: python3-tqdm
Requires: python3-numpy
Requires: python3-opencv-python
Requires: python3-pdfkit
%description
## Overview
This is the CLI for the 61A `examtool`. To edit the various web apps, see the other `exam-*` folders in the `cs61a-apps` repo.
To install, run `pip install examtool[cli]`. To develop, create a virtualenv and run `pip install -e .[cli]`.
The CLI also requires `wget` and `pdflatex` to be installed and in your PATH.
To deploy exams to the server, you must be registered as an admin for your course at https://auth.apps.cs61a.org.
## Workflow
First, visit https://write.final.cs61a.org to write your exam, following [these instructions](https://github.com/Cal-CS-61A-Staff/cs61a-apps/blob/master/exam-write/README.md). When your exam is ready, export it as a JSON and place the JSON in a folder.
In that folder, run `examtool deploy` and select that JSON along with a roster CSV. When deployed, the exam will be accessible at https://exam.cs61a.org. Roster CSVs must have a header and the columns:
* `Email` - The email of a student
* `Deadline` - The due date of an exam for a particular student expressed as a Unix timestamp
* `No Watermark` - An optional column that is `1` if this student should not receive a watermarked exam (e.g. for DSP accomodations). Defaults to `0` if not specified.
You may wish to send exam PDFs to your students. To do so, run `examtool compile-all` to generate unique encrypted PDFs for each student. When they are all generated, run `examtool send` to email them to your students. Note that compilation requires `pdflatex` and `wget`. Compilation of watermarked PDFs also requires `inkscape`.
After your exam ends, run `examtool download` to download your student submissions as a single CSV and as PDFs to upload to Gradescope. To upload them to Gradescope, run `examtool gradescope-upload`.
To use an experimental autograder, run `gradescope-autograde` to download the exam, create the Gradescope assignment, upload them to Gradescope, add the outline to Gradescope, group all of the submissions, and finally apply grades to the groupings! Note you can use the same command to upload and autograde exams to the same Gradescope assignment, just ensure you use the `update` flag.
If you do not want the exam to be autograded, run `examtool download` to download your student submissions as a single CSV and as PDFs to upload to Gradescope. Use the `--via-html` flag to create formatted PDFs, or `--direct-pdf` to create plaintext PDFs. You must install `wkhtmltopdf` and place it in your PATH to create formatted PDFs. You can also use the experimental flag `--via-latex` to embed student responses in the printable LaTeX PDF.
To upload PDFs to Gradescope, run `examtool gradescope-upload`.
Note that if you ran alternate versions of your exam, it is possible that a student might have taken both versions (say, if they switched from the regular to the alternate version after filling out part of the regular version). To check for such students, run `examtool check-dupes`, and then manually decide which of their submissions should be uploaded to Gradescope.
Run `examtool loginas` to log in as a student and view their exam.
To identify cheating or recover from students losing their Internet connection, run `examtool logs` to see the full submission history of a particular student, or all students in the roster.
Run `examtool save-logs` and then `examtool cheaters` to identify students who have used substituted words that did not occur in their exam, implying that they may be cheaters. Run `examtool identify-watermark` if you have a screenshot of a watermarked exam that you wish to identify. Run `examtool identify-keyword` if you wish to determine which students received exams with a particular keyword.
%package -n python3-examtool
Summary: please add a summary manually as the author left a blank one
Provides: python-examtool
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-examtool
## Overview
This is the CLI for the 61A `examtool`. To edit the various web apps, see the other `exam-*` folders in the `cs61a-apps` repo.
To install, run `pip install examtool[cli]`. To develop, create a virtualenv and run `pip install -e .[cli]`.
The CLI also requires `wget` and `pdflatex` to be installed and in your PATH.
To deploy exams to the server, you must be registered as an admin for your course at https://auth.apps.cs61a.org.
## Workflow
First, visit https://write.final.cs61a.org to write your exam, following [these instructions](https://github.com/Cal-CS-61A-Staff/cs61a-apps/blob/master/exam-write/README.md). When your exam is ready, export it as a JSON and place the JSON in a folder.
In that folder, run `examtool deploy` and select that JSON along with a roster CSV. When deployed, the exam will be accessible at https://exam.cs61a.org. Roster CSVs must have a header and the columns:
* `Email` - The email of a student
* `Deadline` - The due date of an exam for a particular student expressed as a Unix timestamp
* `No Watermark` - An optional column that is `1` if this student should not receive a watermarked exam (e.g. for DSP accomodations). Defaults to `0` if not specified.
You may wish to send exam PDFs to your students. To do so, run `examtool compile-all` to generate unique encrypted PDFs for each student. When they are all generated, run `examtool send` to email them to your students. Note that compilation requires `pdflatex` and `wget`. Compilation of watermarked PDFs also requires `inkscape`.
After your exam ends, run `examtool download` to download your student submissions as a single CSV and as PDFs to upload to Gradescope. To upload them to Gradescope, run `examtool gradescope-upload`.
To use an experimental autograder, run `gradescope-autograde` to download the exam, create the Gradescope assignment, upload them to Gradescope, add the outline to Gradescope, group all of the submissions, and finally apply grades to the groupings! Note you can use the same command to upload and autograde exams to the same Gradescope assignment, just ensure you use the `update` flag.
If you do not want the exam to be autograded, run `examtool download` to download your student submissions as a single CSV and as PDFs to upload to Gradescope. Use the `--via-html` flag to create formatted PDFs, or `--direct-pdf` to create plaintext PDFs. You must install `wkhtmltopdf` and place it in your PATH to create formatted PDFs. You can also use the experimental flag `--via-latex` to embed student responses in the printable LaTeX PDF.
To upload PDFs to Gradescope, run `examtool gradescope-upload`.
Note that if you ran alternate versions of your exam, it is possible that a student might have taken both versions (say, if they switched from the regular to the alternate version after filling out part of the regular version). To check for such students, run `examtool check-dupes`, and then manually decide which of their submissions should be uploaded to Gradescope.
Run `examtool loginas` to log in as a student and view their exam.
To identify cheating or recover from students losing their Internet connection, run `examtool logs` to see the full submission history of a particular student, or all students in the roster.
Run `examtool save-logs` and then `examtool cheaters` to identify students who have used substituted words that did not occur in their exam, implying that they may be cheaters. Run `examtool identify-watermark` if you have a screenshot of a watermarked exam that you wish to identify. Run `examtool identify-keyword` if you wish to determine which students received exams with a particular keyword.
%package help
Summary: Development documents and examples for examtool
Provides: python3-examtool-doc
%description help
## Overview
This is the CLI for the 61A `examtool`. To edit the various web apps, see the other `exam-*` folders in the `cs61a-apps` repo.
To install, run `pip install examtool[cli]`. To develop, create a virtualenv and run `pip install -e .[cli]`.
The CLI also requires `wget` and `pdflatex` to be installed and in your PATH.
To deploy exams to the server, you must be registered as an admin for your course at https://auth.apps.cs61a.org.
## Workflow
First, visit https://write.final.cs61a.org to write your exam, following [these instructions](https://github.com/Cal-CS-61A-Staff/cs61a-apps/blob/master/exam-write/README.md). When your exam is ready, export it as a JSON and place the JSON in a folder.
In that folder, run `examtool deploy` and select that JSON along with a roster CSV. When deployed, the exam will be accessible at https://exam.cs61a.org. Roster CSVs must have a header and the columns:
* `Email` - The email of a student
* `Deadline` - The due date of an exam for a particular student expressed as a Unix timestamp
* `No Watermark` - An optional column that is `1` if this student should not receive a watermarked exam (e.g. for DSP accomodations). Defaults to `0` if not specified.
You may wish to send exam PDFs to your students. To do so, run `examtool compile-all` to generate unique encrypted PDFs for each student. When they are all generated, run `examtool send` to email them to your students. Note that compilation requires `pdflatex` and `wget`. Compilation of watermarked PDFs also requires `inkscape`.
After your exam ends, run `examtool download` to download your student submissions as a single CSV and as PDFs to upload to Gradescope. To upload them to Gradescope, run `examtool gradescope-upload`.
To use an experimental autograder, run `gradescope-autograde` to download the exam, create the Gradescope assignment, upload them to Gradescope, add the outline to Gradescope, group all of the submissions, and finally apply grades to the groupings! Note you can use the same command to upload and autograde exams to the same Gradescope assignment, just ensure you use the `update` flag.
If you do not want the exam to be autograded, run `examtool download` to download your student submissions as a single CSV and as PDFs to upload to Gradescope. Use the `--via-html` flag to create formatted PDFs, or `--direct-pdf` to create plaintext PDFs. You must install `wkhtmltopdf` and place it in your PATH to create formatted PDFs. You can also use the experimental flag `--via-latex` to embed student responses in the printable LaTeX PDF.
To upload PDFs to Gradescope, run `examtool gradescope-upload`.
Note that if you ran alternate versions of your exam, it is possible that a student might have taken both versions (say, if they switched from the regular to the alternate version after filling out part of the regular version). To check for such students, run `examtool check-dupes`, and then manually decide which of their submissions should be uploaded to Gradescope.
Run `examtool loginas` to log in as a student and view their exam.
To identify cheating or recover from students losing their Internet connection, run `examtool logs` to see the full submission history of a particular student, or all students in the roster.
Run `examtool save-logs` and then `examtool cheaters` to identify students who have used substituted words that did not occur in their exam, implying that they may be cheaters. Run `examtool identify-watermark` if you have a screenshot of a watermarked exam that you wish to identify. Run `examtool identify-keyword` if you wish to determine which students received exams with a particular keyword.
%prep
%autosetup -n examtool-2.2.43
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-examtool -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 2.2.43-1
- Package Spec generated
|