Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
Jonathan Loo edited this page Dec 14, 2017 · 1 revision

Welcome to the django-rest-framework-aggregates wiki!

How to push a new update to pypi

Prerequisite

  1. Create an account on pypi and pytest:

  2. Create a .pypirc file

    [distutils]
    index-servers =
      pypi
      pypitest
    
    [pypi]
    repository=https://upload.pypi.org/legacy/
    username=<pypiname>
    password=<pypipassword>
    
    [pypitest]
    repository=https://test.pypi.org/legacy/
    username=<pypiname>
    password=<pypipassword>
  3. Be an owner of the pypi package.

Steps

  • In drf_aggregates/__init__.py bump the version.

  • For major and minor releases create a github release with the proper changelog.

  • Push to Pypi

    Push to test PyPI:

    python setup.py sdist upload -r pypitest

    Push to live PyPI:

    python setup.py sdist upload -r pypi

Clone this wiki locally