Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Updating package metadata similar to anms-ace package
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianSipos committed Oct 3, 2023
1 parent 30707d2 commit 14cb250
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 4 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,28 @@ name: Build and run unit tests
on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.10"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Prep
run: pip3 install build
- name: Build
run: python3 -m build

test:
needs: [build]
runs-on: ubuntu-latest
strategy:
max-parallel: 4
Expand Down Expand Up @@ -43,3 +64,31 @@ jobs:
run: |
FAIL_SRC=0
flake8 src || FAIL_SRC=$?
release:
needs: [test, flake8]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
strategy:
max-parallel: 4
matrix:
python-version: ["3.10"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Prep
run: pip3 install build
- name: Build
run: python3 -m build
- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ __pycache__
*.egg-info
requirements.txt
build
dist

# Test outputs
testresults.xml
Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ build-backend = "setuptools.build_meta"
name = "anms-CAmp"
version = "2.0.0"
authors = [
{ name="Brian Sipos", email="[email protected]" },
{ name="David Linko", email="[email protected]" },
{ name="Minh Nguyen", email="[email protected]" },
{ name="JHU/APL", email="[email protected]" },
]
description = "C code generator for the Asychronous Management Protocol"
readme = "README.md"
license = { file="LICENSE" }
license = { text="Apache-2.0" }
requires-python = ">=3.7"
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand Down

0 comments on commit 14cb250

Please sign in to comment.