Skip to content

Publish to PyPi and Conda #20

@kkiesling

Description

@kkiesling

Seeing as DASSH is open source and only requires a pip install, it would be possible to formally publish this to the PyPI package index which would allow users to install without needing to clone the repository. Once this is available on PyPI, it is a simple task to add as a conda package on conda-forge as well, therefore supporting multiple Python package managers. Once both are initially setup, any time a new release is made, the PyPI package will automatically publish and an automated PR will open on the conda-forge repo to release it there.

The steps to make this happen:

Adding to PyPI:

  1. Setup a python-publish.yml workflow file
  2. Ensure the repo is setup for packaging (I believe it already is setup properly minus the pyproject.toml file) and publish it to the test PyPI
  3. Do a formal GitHub release for DASSH (right now there are a few tags and a few PRs indicating some version # but no formal release has been done on the platform)
  4. Register an account on PyPI and formalize the upload to the main package registry

Adding to Conda-forge:

  1. Use the conda-forge tools to automatically generate a recipe from the setup.py.
  2. Make a PR in the conda-forge staging area to add the package and await approval. Once PR is merged from staging, the feedstock for us to maintain (mostly automated) will be ready.

An example of a package that has done exactly this is the OpenMC Plotter:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions