This repository is a collection of interviews that enable the user to determine the consequences of various EU data legislations. This is created as part of the docassemble application. The interviews are created in YAML format and are uploaded on Docassemble instance as python packages.
- Create a new branch for each interview (like database_directive, privacy, whistleblowing etc.)
- In the root of repo, these files are necessary -
setup.py
,setup.cfg
, andMANIFEST.in
- The files can be copied from any other existing branch using
git checkout database_directive setup.cfg setup.py MANIFEST.in
in the root of the repository in the new branch. - Under
docassemble
directory, create the directory (name of your choice). Similarly, under the new subdirectory, create directoriesdata/questions
. You can do so on the command line usingmkdir -p docassemble/<directory name of your choice>/data/questions
from the root of the repo. - Navigate to the
docassemble
directory usingcd docassemble
from the root of the repo, and perfomgit checkout database_directive Database_directive/__init__.py
- Move
__init__.py
by doingmv Database_directive/__init__.py <directory name of your choice>/
from the location ofdocassemble
directory. - Remove
Database_directive
by doingrmdir Database_directive
from thedocassemble
directory. - Within
docassemble
directory, performgit checkout database_directive __init__.py
- Navigate back to the root of the repo and edit the following parts in the file
setup.py
and methodsetup
-
name
value with a name of your liking like sodocassemble.<your new name>
long_description
value with your descriptionpackage_data
parameterswhere
with valuedocassemble/<your new directory name>
andpackage
value withdocassemble.<your new name>
- There are two files required in data/questions. You can place your actual interview file with questions in
<your file name>.yml
andinterview.yml
file that basically indicates to include relevant files. You can check other branches as example. - Save the modified information and do
git push
- Navigate to
Playground
- Provide a unique package name (it is case sensitive)
- Under
Folder
-> Click onPackage
-> Click onPull
-> ProvideGithub repo URL
-> Select<Your new branch>
- Install
Visit docassemble page for how to upload interviews through PDF or DOCX documents
P.S. Package names are case sensitive