Skip to content

Commit

Permalink
Merge pull request #96 from SCIInstitute/publishing
Browse files Browse the repository at this point in the history
added github action to publish with new release
  • Loading branch information
jessdtate committed Jan 28, 2022
2 parents 96ad5db + e71131b commit 58b6d43
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 24 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/pypublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Publish Python distribution to PyPI and TestPyPI
on: push

jobs:
build-n-publish:
name: Publish Python distribution to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: install check-wheel-contents
run: >-
python3 -m
pip install
check-wheel-contents
- name: check wheel
run: >-
check-wheel-contents
dist/*.whl
- name: Publish distribution to TestPyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.TESTPYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution to PyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: [3.6, 3.7, 3.8]
python-version: [3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
Expand Down
16 changes: 5 additions & 11 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
wheel
certifi==2020.4.5.1
cycler==0.10.0
kiwisolver==1.2.0;
matplotlib==3.1.3
matplotlib==3.1.3; python_version < '3.8'
matplotlib>=3.1.3; python_version >= '3.8'
numpy==1.15.2; python_version < '3.8'
numpy==1.17.2; python_version >= '3.8'
packaging==20.3
pyparsing==2.4.7
python-dateutil==2.8.1
scipy==1.4.1
six==1.15.0
numpy>=1.21.0; python_version >= '3.8'
scipy==1.4.1; python_version < '3.8'
scipy>=1.4.1; python_version >= '3.8'
18 changes: 6 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='UncertainSCI',
version='0.1.1-b0',
version='0.2.0-b0',
author='UncertainSCI Developers',
author_email='uncertainsci@sci.utah.edu',
packages=find_packages(),
Expand Down Expand Up @@ -39,17 +39,11 @@
keywords='Uncertainty Quantification, Simulation',
url=r'https://sci.utah.edu/sci-software/simulation/uncertainsci.html',
install_requires=[
"wheel",
"certifi==2020.4.5.1",
"cycler==0.10.0",
"kiwisolver==1.2.0",
"matplotlib==3.1.3",
"matplotlib==3.1.3; python_version < '3.8'",
"matplotlib>=3.1.3; python_version >= '3.8'",
"numpy==1.15.2; python_version < '3.8'",
"numpy==1.17.2; python_version >= '3.8'",
"packaging==20.3",
"pyparsing==2.4.7",
"python-dateutil==2.8.1",
"scipy==1.4.1",
"six==1.15.0"
"numpy>=1.21.0; python_version >= '3.8'",
"scipy==1.4.1; python_version < '3.8'",
"scipy>=1.4.1; python_version >= '3.8'"
]
)

0 comments on commit 58b6d43

Please sign in to comment.