Hosting platform for the Arch User Repository (AUR), a collection of packaging scripts created by the Arch Linux community
Find a file
Kevin Morris c1e29e90ca aurweb: Globalize a Translator instance, add more utility
+ Added SUPPORTED_LANGUAGES, a global constant dictionary of
  language => display pairs for languages we support.
+ Add Translator.get_translator, a function used to retrieve a
  translator after initializing it (if needed). Use `fallback=True`
  while creating languages, in case we setup a language that we
  don't have a translation for, it will noop the translation.
  This is particularly useful for "en," since we do not translate
  it, but doing this will allow us to go through our normal translation
  flow in any case.
+ Added typing.
+ Added get_request_language, a function that grabs the language for
  a request session, defaulting to aurweb.config [options] default_lang.
+ Added get_raw_translator_for_request, a function that retrieves
  the concrete translation object for a given language.
+ Added tr, a jinja2 contextfilter that can be used to inline translate
  strings in jinja2 templates.
+ Added `python-jinja` dep to .gitlab-ci.yml. This needs to be
  included in documentation before this set is merged in.
+ Introduce pytest units (test_l10n.py) in `test` along with
  __init__.py, which marks `test` as a test package.
+ Additionally, fix up notify.py to use the global translator. Also
  reduce its source width to <= 80 by newlining some code.
+ Additionally, prepare locale in .gitlab-ci.yml and add
  aurweb.config [options] localedir to config.dev with YOUR_AUR_ROOT
  like others.

Signed-off-by: Kevin Morris <kevr@0cost.org>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2021-06-05 19:49:42 -07:00
.tx Rename translation resources from aur to aurweb 2018-07-07 16:05:12 +02:00
aurweb aurweb: Globalize a Translator instance, add more utility 2021-06-05 19:49:42 -07:00
conf aurweb: Globalize a Translator instance, add more utility 2021-06-05 19:49:42 -07:00
doc Update wiki links to the new short URL 2021-05-09 18:06:32 -04:00
migrations [db] fix schema and migration for case insensitivity 2021-06-05 15:08:18 -07:00
po Translation updates from Transifex 2020-03-27 08:31:46 -04:00
schema gendummydata.py: optimize iteration for big numbers of pkgs 2021-02-20 11:25:21 -05:00
test aurweb: Globalize a Translator instance, add more utility 2021-06-05 19:49:42 -07:00
upgrading Add new upgrade instructions 2020-03-27 08:49:34 -04:00
web Filter out current username from co-maintainers list. 2021-06-05 19:49:42 -07:00
.coveragerc add .coveragerc, update .gitignore 2021-06-05 19:49:19 -07:00
.editorconfig add https://EditorConfig.org setup to ensure consistent style 2021-04-28 18:06:06 -04:00
.gitignore add .coveragerc, update .gitignore 2021-06-05 19:49:19 -07:00
.gitlab-ci.yml aurweb: Globalize a Translator instance, add more utility 2021-06-05 19:49:42 -07:00
.mailmap Update maintainer email address 2015-04-11 12:48:15 +02:00
.pre-commit-config.yaml pre-commit: add initial config 2021-02-20 11:24:30 -05:00
alembic.ini Set up Alembic for database migrations 2020-02-27 16:44:36 +01:00
AUTHORS AUTHORS: Add date ranges to current maintainers 2015-09-29 20:51:03 +02:00
CONTRIBUTING.md update documentation for FastAPI tests and deps. 2021-06-05 19:49:19 -07:00
COPYING added GPL2 as our license 2007-09-09 01:31:34 +00:00
Dockerfile add Dockerfile 2021-06-05 19:49:19 -07:00
INSTALL update documentation for FastAPI tests and deps. 2021-06-05 19:49:19 -07:00
README.md update documentation for FastAPI tests and deps. 2021-06-05 19:49:19 -07:00
setup.cfg isort: add initial config 2021-02-20 11:24:30 -05:00
setup.py Refactor code to comply with flake8 and isort 2021-02-20 11:24:30 -05:00
TESTING doc: simplify database setup instructions in TESTING 2021-02-20 11:25:21 -05:00

aurweb

aurweb is a hosting platform for the Arch User Repository (AUR), a collection of packaging scripts that are created and submitted by the Arch Linux community. The scripts contained in the repository can be built using makepkg and installed using the Arch Linux package manager pacman.

The aurweb project includes

  • A web interface to search for packaging scripts and display package details.
  • An SSH/Git interface to submit and update packages and package meta data.
  • Community features such as comments, votes, package flagging and requests.
  • Editing/deletion of packages and accounts by Trusted Users and Developers.
  • Area for Trusted Users to post AUR-related proposals and vote on them.

Directory Layout

  • aurweb: aurweb Python modules, Git interface and maintenance scripts
  • conf: configuration and configuration templates
  • static: static resource files
  • templates: jinja2 template collection
  • doc: project documentation
  • po: translation files for strings in the aurweb interface
  • schema: schema for the SQL database
  • test: test suite and test cases
  • upgrading: instructions for upgrading setups from one release to another
  • web: PHP-based web interface for the AUR

Translations

Translations are welcome via our Transifex project at https://www.transifex.com/lfleischer/aurweb; see doc/i18n.txt for details.

Transifex

Testing

See test/README.md for details on dependencies and testing.