Skip to content

Commit

Permalink
Merge pull request #88 from BCDA-APS/69-publish-to-PyPI
Browse files Browse the repository at this point in the history
PKG #69
  • Loading branch information
prjemian authored May 11, 2022
2 parents 64c568a + db9622a commit 8f9b8c5
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/upload_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on: push

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v1
# with:
# python-version: 3.9

- name: Install pypa/build
run: >-
python -m
pip install
build
twine
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Check package metadata
run: >-
twine check dist/*
- name: Publish 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2017-2019, UChicago Argonne, LLC
Copyright (c) 2017-2022, UChicago Argonne, LLC

All Rights Reserved

Expand Down
2 changes: 1 addition & 1 deletion adl2pydm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__project__ = u"adl2pydm"
__description__ = __doc__
__copyright__ = u"2017-2021, UChicago Argonne, LLC"
__copyright__ = u"2017-2022, UChicago Argonne, LLC"
__authors__ = [
u"Pete Jemian",
]
Expand Down

0 comments on commit 8f9b8c5

Please sign in to comment.