Skip to content

Commit

Permalink
Merge pull request #5 from scottstanie/release-action
Browse files Browse the repository at this point in the history
Create python-publish.yml
  • Loading branch information
scottstanie committed Feb 4, 2021
2 parents 51c8b32 + cd624fe commit 970e0d6
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

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: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ install:
- pip install -r requirements.txt

script:
nosetests -svd --with-doctest --with-coverage --cover-package eof
nosetests -svd --with-doctest eof

after_success: coveralls

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

setuptools.setup(
name="sentineleof",
version="0.4.4",
version="0.5.0",
author="Scott Staniewicz",
author_email="scott.stanie@utexas.com",
description="Download precise orbit files for Sentinel 1 products",
Expand All @@ -16,6 +16,7 @@
include_package_data=True,
classifiers=(
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
Expand Down

0 comments on commit 970e0d6

Please sign in to comment.