[tor-commits] [gettor/master] Refactor code base folders structure

hiro at torproject.org hiro at torproject.org
Fri May 17 14:27:50 UTC 2019


commit ba19003400fe11a68444bbb585fcdb12a93c100f
Author: hiro <hiro at torproject.org>
Date:   Mon Jan 28 17:01:12 2019 +0100

    Refactor code base folders structure
---
 .gitignore                                                  |   0
 .test.requirements.txt                                      |   0
 .travis.requirements.txt                                    |   0
 CHANGELOG                                                   |   0
 MANIFEST.in                                                 |   0
 Makefile                                                    |   0
 blacklist.cfg => config/blacklist.cfg                       |   0
 core.cfg => config/core.cfg                                 |   0
 mirrors-list.txt => config/mirrors-list.txt                 |   0
 providers.txt => config/providers.txt                       |   0
 smtp.cfg => config/smtp.cfg                                 |   0
 tor-mirrors => config/tor-mirrors                           |   0
 tor-mirrors.csv => config/tor-mirrors.csv                   |   0
 xmpp.cfg => config/xmpp.cfg                                 |   0
 {scripts => dev_scripts}/blacklist.py                       |   0
 core_demo.py => dev_scripts/core_demo.py                    |   0
 {scripts => dev_scripts}/create_api_mirror.py               |   0
 {scripts => dev_scripts}/create_db.py                       |   0
 create_gh_mirrors.py => dev_scripts/create_gh_mirrors.py    |   0
 .../distribution_methods.txt                                |   0
 get_mirrors.py => dev_scripts/get_mirrors.py                |   0
 process_chat.py => dev_scripts/process_chat.py              |   0
 process_email.py => dev_scripts/process_email.py            |   0
 process_http.py => dev_scripts/process_http.py              |   0
 process_tweets.py => dev_scripts/process_tweets.py          |   0
 report.py => dev_scripts/report.py                          |   0
 {scripts => dev_scripts}/sample-htaccess-api-mirror         |   0
 {scripts => dev_scripts}/stats.py                           |   0
 doc/HACKING.md                                              |   0
 UPLOAD-DROPBOX => doc/UPLOAD-DROPBOX                        |   0
 UPLOAD-GOOGLE-DRIVE => doc/UPLOAD-GOOGLE-DRIVE              |   0
 gettor.conf                                                 |   0
 {providers => gettor/providers}/drive.links                 |   0
 {providers => gettor/providers}/dropbox.links               |   0
 {providers => gettor/providers}/dropbox.links.backup        |   0
 {providers => gettor/providers}/github.links                |   0
 requirements.txt                                            |   0
 setup.cfg                                                   |   0
 setup.py                                                    |   0
 {fonts => share/fonts}/glyphicons-halflings-regular.eot     | Bin
 {fonts => share/fonts}/glyphicons-halflings-regular.svg     |   0
 {fonts => share/fonts}/glyphicons-halflings-regular.ttf     | Bin
 {fonts => share/fonts}/glyphicons-halflings-regular.woff    | Bin
 {fonts => share/fonts}/glyphicons-halflings-regular.woff2   | Bin
 {fonts => share/fonts}/lato-bold.woff                       | Bin
 {fonts => share/fonts}/lato-italic.woff                     | Bin
 {fonts => share/fonts}/lato-regular.woff                    | Bin
 {img => share/images}/android-logo.png                      | Bin
 {img => share/images}/linux-logo.png                        | Bin
 {img => share/images}/osx-logo.png                          | Bin
 {img => share/images}/windows-logo.png                      | Bin
 share/locale/en.json                                        |   0
 {lang => share/locale}/smtp/i18n/en/LC_MESSAGES/en.mo       | Bin
 {lang => share/locale}/smtp/i18n/en/LC_MESSAGES/en.po       |   0
 {lang => share/locale}/smtp/i18n/es/LC_MESSAGES/es.mo       | Bin
 {lang => share/locale}/smtp/i18n/es/LC_MESSAGES/es.po       |   0
 {lang => share/locale}/twitter/i18n/en/LC_MESSAGES/en.po    |   0
 {lang => share/locale}/xmpp/i18n/en/LC_MESSAGES/en.mo       | Bin
 {lang => share/locale}/xmpp/i18n/en/LC_MESSAGES/en.po       |   0
 {lang => share/locale}/xmpp/i18n/en/LC_MESSAGES/es.mo       | Bin
 {lang => share/locale}/xmpp/i18n/es/LC_MESSAGES/es.mo       | Bin
 {lang => share/locale}/xmpp/i18n/es/LC_MESSAGES/es.po       |   0
 index.html => share/templates/index.html                    |   0
 63 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/.test.requirements.txt b/.test.requirements.txt
new file mode 100644
index 0000000..e69de29
diff --git a/.travis.requirements.txt b/.travis.requirements.txt
new file mode 100644
index 0000000..e69de29
diff --git a/CHANGELOG b/CHANGELOG
new file mode 100644
index 0000000..e69de29
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..e69de29
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e69de29
diff --git a/blacklist.cfg b/config/blacklist.cfg
similarity index 100%
rename from blacklist.cfg
rename to config/blacklist.cfg
diff --git a/core.cfg b/config/core.cfg
similarity index 100%
rename from core.cfg
rename to config/core.cfg
diff --git a/mirrors-list.txt b/config/mirrors-list.txt
similarity index 100%
rename from mirrors-list.txt
rename to config/mirrors-list.txt
diff --git a/providers.txt b/config/providers.txt
similarity index 100%
rename from providers.txt
rename to config/providers.txt
diff --git a/smtp.cfg b/config/smtp.cfg
similarity index 100%
rename from smtp.cfg
rename to config/smtp.cfg
diff --git a/tor-mirrors b/config/tor-mirrors
similarity index 100%
rename from tor-mirrors
rename to config/tor-mirrors
diff --git a/tor-mirrors.csv b/config/tor-mirrors.csv
similarity index 100%
rename from tor-mirrors.csv
rename to config/tor-mirrors.csv
diff --git a/xmpp.cfg b/config/xmpp.cfg
similarity index 100%
rename from xmpp.cfg
rename to config/xmpp.cfg
diff --git a/scripts/blacklist.py b/dev_scripts/blacklist.py
similarity index 100%
rename from scripts/blacklist.py
rename to dev_scripts/blacklist.py
diff --git a/core_demo.py b/dev_scripts/core_demo.py
similarity index 100%
rename from core_demo.py
rename to dev_scripts/core_demo.py
diff --git a/scripts/create_api_mirror.py b/dev_scripts/create_api_mirror.py
similarity index 100%
rename from scripts/create_api_mirror.py
rename to dev_scripts/create_api_mirror.py
diff --git a/scripts/create_db.py b/dev_scripts/create_db.py
similarity index 100%
rename from scripts/create_db.py
rename to dev_scripts/create_db.py
diff --git a/create_gh_mirrors.py b/dev_scripts/create_gh_mirrors.py
similarity index 100%
rename from create_gh_mirrors.py
rename to dev_scripts/create_gh_mirrors.py
diff --git a/distribution_methods.txt b/dev_scripts/distribution_methods.txt
similarity index 100%
rename from distribution_methods.txt
rename to dev_scripts/distribution_methods.txt
diff --git a/get_mirrors.py b/dev_scripts/get_mirrors.py
similarity index 100%
rename from get_mirrors.py
rename to dev_scripts/get_mirrors.py
diff --git a/process_chat.py b/dev_scripts/process_chat.py
similarity index 100%
rename from process_chat.py
rename to dev_scripts/process_chat.py
diff --git a/process_email.py b/dev_scripts/process_email.py
similarity index 100%
rename from process_email.py
rename to dev_scripts/process_email.py
diff --git a/process_http.py b/dev_scripts/process_http.py
similarity index 100%
rename from process_http.py
rename to dev_scripts/process_http.py
diff --git a/process_tweets.py b/dev_scripts/process_tweets.py
similarity index 100%
rename from process_tweets.py
rename to dev_scripts/process_tweets.py
diff --git a/report.py b/dev_scripts/report.py
similarity index 100%
rename from report.py
rename to dev_scripts/report.py
diff --git a/scripts/sample-htaccess-api-mirror b/dev_scripts/sample-htaccess-api-mirror
similarity index 100%
rename from scripts/sample-htaccess-api-mirror
rename to dev_scripts/sample-htaccess-api-mirror
diff --git a/scripts/stats.py b/dev_scripts/stats.py
similarity index 100%
rename from scripts/stats.py
rename to dev_scripts/stats.py
diff --git a/doc/HACKING.md b/doc/HACKING.md
new file mode 100644
index 0000000..e69de29
diff --git a/UPLOAD-DROPBOX b/doc/UPLOAD-DROPBOX
similarity index 100%
rename from UPLOAD-DROPBOX
rename to doc/UPLOAD-DROPBOX
diff --git a/UPLOAD-GOOGLE-DRIVE b/doc/UPLOAD-GOOGLE-DRIVE
similarity index 100%
rename from UPLOAD-GOOGLE-DRIVE
rename to doc/UPLOAD-GOOGLE-DRIVE
diff --git a/gettor.conf b/gettor.conf
new file mode 100644
index 0000000..e69de29
diff --git a/providers/drive.links b/gettor/providers/drive.links
similarity index 100%
rename from providers/drive.links
rename to gettor/providers/drive.links
diff --git a/providers/dropbox.links b/gettor/providers/dropbox.links
similarity index 100%
rename from providers/dropbox.links
rename to gettor/providers/dropbox.links
diff --git a/providers/dropbox.links.backup b/gettor/providers/dropbox.links.backup
similarity index 100%
rename from providers/dropbox.links.backup
rename to gettor/providers/dropbox.links.backup
diff --git a/providers/github.links b/gettor/providers/github.links
similarity index 100%
rename from providers/github.links
rename to gettor/providers/github.links
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..e69de29
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..e69de29
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..e69de29
diff --git a/fonts/glyphicons-halflings-regular.eot b/share/fonts/glyphicons-halflings-regular.eot
similarity index 100%
rename from fonts/glyphicons-halflings-regular.eot
rename to share/fonts/glyphicons-halflings-regular.eot
diff --git a/fonts/glyphicons-halflings-regular.svg b/share/fonts/glyphicons-halflings-regular.svg
similarity index 100%
rename from fonts/glyphicons-halflings-regular.svg
rename to share/fonts/glyphicons-halflings-regular.svg
diff --git a/fonts/glyphicons-halflings-regular.ttf b/share/fonts/glyphicons-halflings-regular.ttf
similarity index 100%
rename from fonts/glyphicons-halflings-regular.ttf
rename to share/fonts/glyphicons-halflings-regular.ttf
diff --git a/fonts/glyphicons-halflings-regular.woff b/share/fonts/glyphicons-halflings-regular.woff
similarity index 100%
rename from fonts/glyphicons-halflings-regular.woff
rename to share/fonts/glyphicons-halflings-regular.woff
diff --git a/fonts/glyphicons-halflings-regular.woff2 b/share/fonts/glyphicons-halflings-regular.woff2
similarity index 100%
rename from fonts/glyphicons-halflings-regular.woff2
rename to share/fonts/glyphicons-halflings-regular.woff2
diff --git a/fonts/lato-bold.woff b/share/fonts/lato-bold.woff
similarity index 100%
rename from fonts/lato-bold.woff
rename to share/fonts/lato-bold.woff
diff --git a/fonts/lato-italic.woff b/share/fonts/lato-italic.woff
similarity index 100%
rename from fonts/lato-italic.woff
rename to share/fonts/lato-italic.woff
diff --git a/fonts/lato-regular.woff b/share/fonts/lato-regular.woff
similarity index 100%
rename from fonts/lato-regular.woff
rename to share/fonts/lato-regular.woff
diff --git a/img/android-logo.png b/share/images/android-logo.png
similarity index 100%
rename from img/android-logo.png
rename to share/images/android-logo.png
diff --git a/img/linux-logo.png b/share/images/linux-logo.png
similarity index 100%
rename from img/linux-logo.png
rename to share/images/linux-logo.png
diff --git a/img/osx-logo.png b/share/images/osx-logo.png
similarity index 100%
rename from img/osx-logo.png
rename to share/images/osx-logo.png
diff --git a/img/windows-logo.png b/share/images/windows-logo.png
similarity index 100%
rename from img/windows-logo.png
rename to share/images/windows-logo.png
diff --git a/share/locale/en.json b/share/locale/en.json
new file mode 100644
index 0000000..e69de29
diff --git a/lang/smtp/i18n/en/LC_MESSAGES/en.mo b/share/locale/smtp/i18n/en/LC_MESSAGES/en.mo
similarity index 100%
rename from lang/smtp/i18n/en/LC_MESSAGES/en.mo
rename to share/locale/smtp/i18n/en/LC_MESSAGES/en.mo
diff --git a/lang/smtp/i18n/en/LC_MESSAGES/en.po b/share/locale/smtp/i18n/en/LC_MESSAGES/en.po
similarity index 100%
rename from lang/smtp/i18n/en/LC_MESSAGES/en.po
rename to share/locale/smtp/i18n/en/LC_MESSAGES/en.po
diff --git a/lang/smtp/i18n/es/LC_MESSAGES/es.mo b/share/locale/smtp/i18n/es/LC_MESSAGES/es.mo
similarity index 100%
rename from lang/smtp/i18n/es/LC_MESSAGES/es.mo
rename to share/locale/smtp/i18n/es/LC_MESSAGES/es.mo
diff --git a/lang/smtp/i18n/es/LC_MESSAGES/es.po b/share/locale/smtp/i18n/es/LC_MESSAGES/es.po
similarity index 100%
rename from lang/smtp/i18n/es/LC_MESSAGES/es.po
rename to share/locale/smtp/i18n/es/LC_MESSAGES/es.po
diff --git a/lang/twitter/i18n/en/LC_MESSAGES/en.po b/share/locale/twitter/i18n/en/LC_MESSAGES/en.po
similarity index 100%
rename from lang/twitter/i18n/en/LC_MESSAGES/en.po
rename to share/locale/twitter/i18n/en/LC_MESSAGES/en.po
diff --git a/lang/xmpp/i18n/en/LC_MESSAGES/en.mo b/share/locale/xmpp/i18n/en/LC_MESSAGES/en.mo
similarity index 100%
rename from lang/xmpp/i18n/en/LC_MESSAGES/en.mo
rename to share/locale/xmpp/i18n/en/LC_MESSAGES/en.mo
diff --git a/lang/xmpp/i18n/en/LC_MESSAGES/en.po b/share/locale/xmpp/i18n/en/LC_MESSAGES/en.po
similarity index 100%
rename from lang/xmpp/i18n/en/LC_MESSAGES/en.po
rename to share/locale/xmpp/i18n/en/LC_MESSAGES/en.po
diff --git a/lang/xmpp/i18n/en/LC_MESSAGES/es.mo b/share/locale/xmpp/i18n/en/LC_MESSAGES/es.mo
similarity index 100%
rename from lang/xmpp/i18n/en/LC_MESSAGES/es.mo
rename to share/locale/xmpp/i18n/en/LC_MESSAGES/es.mo
diff --git a/lang/xmpp/i18n/es/LC_MESSAGES/es.mo b/share/locale/xmpp/i18n/es/LC_MESSAGES/es.mo
similarity index 100%
rename from lang/xmpp/i18n/es/LC_MESSAGES/es.mo
rename to share/locale/xmpp/i18n/es/LC_MESSAGES/es.mo
diff --git a/lang/xmpp/i18n/es/LC_MESSAGES/es.po b/share/locale/xmpp/i18n/es/LC_MESSAGES/es.po
similarity index 100%
rename from lang/xmpp/i18n/es/LC_MESSAGES/es.po
rename to share/locale/xmpp/i18n/es/LC_MESSAGES/es.po
diff --git a/index.html b/share/templates/index.html
similarity index 100%
rename from index.html
rename to share/templates/index.html





More information about the tor-commits mailing list