Hosting platform for the Arch User Repository (AUR), a collection of packaging scripts created by the Arch Linux community
Find a file
Kevin Morris 7c4fb539d8
change(fastapi): rework /rpc (get)
This reworks the base implementation of the RPC to use a
class called RPC for handling of requests. Took a bit of
a different approach than PHP in terms of exposed methods,
but it does end up achieving the same goal, with one additional
error: "Request type '{type}' is not yet implemented."

For FastAPI development, we'll stick with:

- If the supplied 'type' argument has an alias mapping in
  RPC.ALIASES, we convert the type argument over to its alias
  before doing anything. Example: 'info' is aliased to 'multiinfo',
  so when a user requests type=info, it is converted to type=multiinfo.
- If the type does not exist in RPC.EXPOSED_TYPES, the following
  error is produced: "No request type/data specified."
- If the type **does** exist in RPC.EXPOSED_TYPES, but does not
  have an implemented `RPC._handle_{type}_type` function, the
  following error is produced: "Request type '{type}' is not yet
  implemented."

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-20 22:17:05 -07:00
.gitlab/issue_templates add Bug.md GitLab issue template 2021-10-15 14:08:27 -07:00
.tx Rename translation resources from aur to aurweb 2018-07-07 16:05:12 +02:00
aurweb change(fastapi): rework /rpc (get) 2021-10-20 22:17:05 -07:00
cache Improve Docker ecosystem 2021-06-24 19:02:35 -07:00
conf feat(docker): only use mariadb socket for connections 2021-10-19 15:35:34 -04:00
doc Update wiki links to the new short URL 2021-05-09 18:06:32 -04:00
docker feat(docker): only use mariadb socket for connections 2021-10-19 15:35:34 -04:00
logs Docker: add [c]git, nginx, fastapi, php-fpm, ca 2021-06-24 19:02:35 -07:00
migrations [alembic] Log db name being used in a migration 2021-06-25 22:33:30 -07:00
po fix(FastAPI): display VCS note when flagging a VCS package 2021-10-15 16:16:11 -07:00
schema Added ability to specify fortune file via an environment variable 2021-09-05 16:13:45 -05:00
templates feat(fastapi): add /pkgbase/{name}/merge (get) 2021-10-20 20:31:44 -07:00
test change(fastapi): rework /rpc (get) 2021-10-20 22:17:05 -07:00
upgrading Add new upgrade instructions 2020-03-27 08:49:34 -04:00
util feat: add util/adduser.py database tooling script 2021-09-20 01:30:12 -07:00
web feat(fastapi): add /pkgbase/{name}/merge (get) 2021-10-20 20:31:44 -07:00
.coveragerc Support SQLAlchemy 1.4 URL.create recommendation 2021-06-05 19:52:56 -07:00
.dockerignore .dockerignore: ignore user-produced configs 2021-07-27 20:38:59 -07:00
.editorconfig add https://EditorConfig.org setup to ensure consistent style 2021-04-28 18:06:06 -04:00
.env feat(docker): allow production docker setup to use dedicated mariadb 2021-10-19 17:21:03 -04:00
.gitignore change(gitignore): add various exclusions 2021-10-16 15:08:42 -07:00
.gitlab-ci.yml .gitlab-ci.yml: add coverage regex 2021-09-21 00:13:29 -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
cliff.toml feat: add git-cliff configuration 2021-10-19 09:28:14 -07:00
CONTRIBUTING.md Merge branch 'master' into pu 2021-06-25 19:03:29 -07:00
COPYING added GPL2 as our license 2007-09-09 01:31:34 +00:00
docker-compose.override.yml feat(docker): allow production docker setup to use dedicated mariadb 2021-10-19 17:21:03 -04:00
docker-compose.prod.yml feat(docker): allow production docker setup to use dedicated mariadb 2021-10-19 17:21:03 -04:00
docker-compose.yml feat(docker): allow production docker setup to use dedicated mariadb 2021-10-19 17:21:03 -04:00
Dockerfile Docker: Fix incorrect ENV PATH specification 2021-09-04 18:59:24 -07:00
INSTALL use Poetry to deal with deps and package install 2021-09-04 15:46:40 -07:00
logging.conf add logging.config.fileConfig 2021-06-24 18:56:38 -07:00
poetry.lock feat(poetry): add paginate==0.5.6 2021-09-19 12:44:16 -07:00
pyproject.toml feat(docker): add gunicorn support & production default 2021-10-16 22:53:46 -07:00
README.md update documentation for FastAPI tests and deps. 2021-06-05 19:49:19 -07:00
setup.cfg feat(fastapi): include all models in aurweb.models package 2021-10-16 19:35:20 -07: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.