Skip to content

More automated process for astropy release #97

Closed

Description

@pllim

As a prerequisite for #95 .

See #95 (comment) by @astrofrog .

Activity

  1. pllim commented on May 18, 2020

    @pllim
    MemberAuthor

    Here is an example to auto-push a release to PyPI using GitHub Actions:

    https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

    Click to see example YAML
    name: Upload Python Package
    
    on:
      release:
        types: [created]
    
    jobs:
      deploy:
        runs-on: ubuntu-latest
        steps:
        - uses: actions/checkout@v2
        - name: Set up Python
          uses: actions/setup-python@v2
          with:
            python-version: '3.x'
        - name: Install dependencies
          run: |
            python -m pip install --upgrade pip
            pip install setuptools wheel twine
        - name: Build and publish
          env:
            TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
            TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
          run: |
            python setup.py sdist bdist_wheel
            twine upload dist/*
  2. astrofrog commented on May 18, 2020

    @astrofrog
    Member

    And here's the OpenAstronomy template that automatically does all platforms including 32-bit windows and linux: https://openastronomy-azure-pipelines.readthedocs.io/en/latest/publish.html, in case we want to use that (currently set up for reproject and astropy-healpix). But cibuildwheel also has a GitHub action so that might be worth investigating too.

  3. pllim commented on Jun 6, 2023

    @pllim
    MemberAuthor

    I think this is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions