chiark / gitweb /
build: use dpkg to purge sudo, for less spammy debug logs
[fdroidserver.git] / tests / description-parsing.py
1 #!/usr/bin/env python3
2
3 import os
4 import sys
5
6 sys.path.insert(1, os.path.join(os.getcwd(), '..', 'fdroidserver'))
7 import common
8
9 config = common.get_default_config()
10
11 testtext = '''
12 This is a block of text that has been wrapped to fit nicely in PEP8 style:
13
14 GnuPrivacyGuard extends the gpgcli command line tool to bring an integrated
15 privacy engine to your Android. It gives you command line access to the entire
16 GnuPG suite of encryption software. It also serves as the test bed for
17 complete Android integration for all of GnuPG's crypto services, including
18 OpenPGP, symmetric encryption, and more.
19
20 GPG is GNU’s tool for end-to-end secure communication and encrypted data
21 storage. This trusted protocol is the free software alternative to PGP. This
22 app is built upon GnuPG 2.1, the new modularized version of GnuPG that now
23 supports S/MIME.
24
25 GPG aims to provide an integrated experience, so clicking on PGP files should
26 "just work". You can also share files to GPG to encrypt them. GPG will also
27 respond when you click on a PGP fingerprint URL (one that starts with
28 openpgp4fpr:).
29
30 Before using GPG, be sure to launch the app and let it finish its installation
31 process. Once it has completed, then you're ready to use it. The easiest way
32 to get started with GPG is to install [[jackpal.androidterm]]. GPG will
33 automatically configure Android Terminal Emulator as long as you have the
34 "Allow PATH extensions" settings enabled.
35 '''
36
37 archive_description = """
38 The repository of older versions of applications from the main demo repository.
39 """
40
41
42 print('\n\n\n----------------------------------------------------')
43 print(common.clean_description(testtext))
44 print('\n\n\n----------------------------------------------------')
45 print(common.clean_description(archive_description))
46 print('\n\n\n----------------------------------------------------')
47 print(common.clean_description(config['repo_description']))