Skip to content

Commit 1738973

Browse files
author
srcarter3
authored
Merge pull request #8 from srcarter3/release-testing
Release testing
2 parents 18444dc + 1f0dfc9 commit 1738973

File tree

2 files changed

+55
-4
lines changed

2 files changed

+55
-4
lines changed

.github/workflows/release.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build python-awips and Publish for pip
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types:
7+
- published
8+
9+
jobs:
10+
build:
11+
name: Build Release Packages
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python
16+
id: setup
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.x
20+
21+
- name: Install build tools
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install --upgrade setuptools
25+
- name: Build packages
26+
run: python setup.py sdist
27+
28+
- name: Save built packages as artifact
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: ${{ runner.os }}-${{ steps.setup.outputs.python-version }}
32+
path: dist/
33+
retention-days: 5
34+
35+
# publish:
36+
# name: Publish to PyPI
37+
# needs: build
38+
# environment:
39+
# name: PyPI
40+
# url: https://pypi.org/project/python-awips/
41+
# runs-on: ubuntu-latest
42+
# steps:
43+
# - name: Download packages
44+
# uses: actions/download-artifact@v2
45+
# with:
46+
# path: ./dist
47+
#
48+
# - name: Publish Package
49+
# uses: pypa/gh-action-pypi-publish@v1.4.2
50+
# with:
51+
# user: __token__
52+
# password: ${{ secrets.PYPI_TOKEN }}

setup.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
if sys.version_info < (3, 4):
1111
dependencies.append('enum34')
1212

13-
ver = "18.1.7"
13+
ver = "18.1.7-1"
1414

1515
setup(
1616
name='python-awips',
1717
version=ver,
1818
description='A framework for requesting AWIPS meteorological datasets from an EDEX server',
1919
packages=find_packages(exclude='data'),
2020
license='BSD',
21-
url='http://python-awips.readthedocs.io',
21+
url='http://unidata.github.io/python-awips',
2222
download_url='https://github.com/Unidata/python-awips/archive/{}.tar.gz'.format(ver),
2323
author='Unidata',
24-
author_email='mjames@ucar.edu',
24+
author_email='support-awips@ucar.edu',
2525
install_requires=dependencies,
2626
extras_require={
2727
'cdm': ['pyproj>=1.9.4'],
@@ -30,4 +30,3 @@
3030
'examples': ['cartopy>=0.13.1', 'metpy>=0.4.0']
3131
}
3232
)
33-

0 commit comments

Comments
 (0)