Skip to content

Commit

Permalink
Merge pull request #10 from lwiniwar/master
Browse files Browse the repository at this point in the history
Using GitHub Actions for PyPI release
  • Loading branch information
lwiniwar authored Nov 1, 2023
2 parents 3f4555c + 30e0b39 commit 667d90c
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 2 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]
workflow_dispatch:

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package (Test PyPI)
uses: pypa/gh-action-pypi-publish@release/v1
if: false
with:
user: __token__
password: ${{ secrets.PYPI_TEST_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish package (PyPI)
uses: pypa/gh-action-pypi-publish@release/v1
if: true
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 0.2.3
- Updated deprecated aliases `np.int` to builtin `int`s

## 0.2.2

## 0.2.1

## 0.2.0

## 0.1.9
- Hotfix for empty cell problem, fixes #6

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and size of the LiDAR file.

## Release Status

Current Release: 0.1.9
Current Release: 0.2.3

Status: `laxpy` is in a stable condition.

Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name = 'laxpy',
version = '0.2.2',
version = '0.2.3',
description = 'A Python API for .lax files',
license = 'MIT',
author = 'Bryce Frank',
Expand All @@ -16,4 +16,6 @@
'numba'
],
data = [('laxpytest/data'), ['test.las', 'test.lax']],
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
)

0 comments on commit 667d90c

Please sign in to comment.