Skip to main content

The Airavata Django Portal SDK is a library that makes it easier to develop Airavata Django Portal customizations.

Project description

# Airavata Django Portal SDK

[![Build Status](https://travis-ci.com/apache/airavata-django-portal-sdk.svg?branch=master)](https://travis-ci.com/apache/airavata-django-portal-sdk)

The Airavata Django Portal SDK provides libraries that assist in developing custom Django app extensions to the [Airavata Django Portal](https://github.com/apache/airavata-django-portal).

See the documentation at https://airavata-django-portal-sdk.readthedocs.io/ for more details.

## Getting Started

To integrate the SDK with an Airavata Django Portal custom app, add

` airavata-django-portal-sdk `

to the install_requires list in your setup.cfg or setup.py file. Then reinstall the Django app with

` pip install -e . `

(see your Airavata Django custom app’s README for details)

You can also just install the library with:

` pip install airavata-django-portal-sdk `

## Migrations

` django-admin makemigrations --settings=tests.test_settings airavata_django_portal_sdk `

## Documentation

To generate the documentation, [create a virtual environment](https://docs.python.org/3/tutorial/venv.html) and then:

` pip install -r requirements-dev.txt mkdocs serve `

## Developing

### Setting up dev environment

` source venv/bin/activate pip install -r requirements-dev.txt `

### Running tests

` ./runtests.py `

### Running flake8

` flake8 . `

### Automatically formatting Python code

` autopep8 -i -aaa -r . isort . `

### Making a new release

  1. Update the version in setup.py

  2. Tag the repo with the same version, with the format v${version_number}. For example, if the version number in setup.py is “1.2” then tag the repo with “v1.2”.

    ` VERSION=... git tag -m $VERSION $VERSION git push --follow-tags `

  3. In a clean checkout

    ` cd /tmp/ git clone /path/to/airavata-django-portal-sdk/ -b $VERSION cd airavata-django-portal-sdk python3 -m venv venv source venv/bin/activate python3 -m pip install --upgrade build python3 -m build `

  4. Push to pypi.org. Optionally can push to test.pypi.org. See <https://packaging.python.org/tutorials/packaging-projects/> for more info.

    ` python3 -m pip install --upgrade twine python3 -m twine upload dist/* `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airavata-django-portal-sdk-1.3.2.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

airavata_django_portal_sdk-1.3.2-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file airavata-django-portal-sdk-1.3.2.tar.gz.

File metadata

File hashes

Hashes for airavata-django-portal-sdk-1.3.2.tar.gz
Algorithm Hash digest
SHA256 767a72c286380a91788bd9de96749ea44aec49ee7201994a937971b457c5a1cd
MD5 3c449ee04d1a80099961fa91f955ff33
BLAKE2b-256 ab56a591255af911fb9249eb2f18ec6ebd32ea8559d56335e3e38205bbddd38b

See more details on using hashes here.

File details

Details for the file airavata_django_portal_sdk-1.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for airavata_django_portal_sdk-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fce42b4750854abf5a6d712ea42b499c764ca7417ecd784b035c65d05e0702b0
MD5 c6b351f13c984cf385a71efd1e732505
BLAKE2b-256 9a65bf2ffd263307abc4b8f775561a9de10ea28e002fc62352a9a85844981098

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page