AIRAVATA-3485 Bump version to 1.1.dev8
1 file changed
tree: be75e17eb23463db0fcdec41bd1f3c4b73ced895
  1. airavata_django_portal_sdk/
  2. docs/
  3. tests/
  4. .gitignore
  5. .travis.yml
  6. LICENSE
  7. mkdocs.yml
  8. README.md
  9. requirements-dev.txt
  10. requirements.txt
  11. runtests.py
  12. setup.cfg
  13. setup.py
README.md

Airavata Django Portal SDK

Build Status

The Airavata Django Portal SDK provides libraries that assist in developing custom Django app extensions to the 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.py file. Then with your virtual environment activated, either install the SDK directly:

pip install -e "git+https://github.com/apache/airavata-django-portal-sdk.git@master#egg=airavata-django-portal-sdk"

Or add the dependency to your requirements.txt file:

-e "git+https://github.com/apache/airavata-django-portal-sdk.git@master#egg=airavata-django-portal-sdk"

then run pip install -r requirements.txt

Migrations

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

Documentation

To generate the documentation, create a virtual environment 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”.

    git tag -m VERSION VERSION

  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/*