t0xic0der / mdapi

Forked from mdapi 2 years ago
Clone
README.rst

MDAPI

Notice

This project codebase has been moved over to https://github.com/fedora-infra/mdapi and therefore, this repository is no longer actively maintained. Please direct your information requests, issue tickets and contributions over there.

For more context, please follow the below mentioned mailing threads.

On Devel list

On Infrastructure list

Introduction

mdapi (for metadata API) is a simple API aiming at providing as fast as possible the information contained in the metadata files generated for RPM repositories. It is currently deployed at: https://apps.fedoraproject.org/mdapi

You can contribute to mdapi with bug reports or pull requests at: https://pagure.io/mdapi

Development

If you wish to set up a development instance of this project, follow these steps:

  • Install virtualenvwrapper
dnf install python-virtualenvwrapper python3-devel openssl-devel
  • Get the mkvirtualenv shell function
. /etc/profile.d/virtualenvwrapper.sh
  • Create the virtualenv
mkvirtualenv mdapi -p python3
  • Install the dependencies
pip install -r requirements.txt
  • Download the metadata
./mdapi-get_repo_md mdapi/default_config.py
  • Start the server
./mdapi-run
  • If you need to reactivate the virtual env later, use workon:
workon mdapi

Note: This project is python3 only