mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
commit
17389737cf
2 changed files with 55 additions and 4 deletions
52
.github/workflows/release.yml
vendored
Normal file
52
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
name: Build python-awips and Publish for pip
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Release Packages
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python
|
||||
id: setup
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.x
|
||||
|
||||
- name: Install build tools
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade setuptools
|
||||
- name: Build packages
|
||||
run: python setup.py sdist
|
||||
|
||||
- name: Save built packages as artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ runner.os }}-${{ steps.setup.outputs.python-version }}
|
||||
path: dist/
|
||||
retention-days: 5
|
||||
|
||||
# publish:
|
||||
# name: Publish to PyPI
|
||||
# needs: build
|
||||
# environment:
|
||||
# name: PyPI
|
||||
# url: https://pypi.org/project/python-awips/
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Download packages
|
||||
# uses: actions/download-artifact@v2
|
||||
# with:
|
||||
# path: ./dist
|
||||
#
|
||||
# - name: Publish Package
|
||||
# uses: pypa/gh-action-pypi-publish@v1.4.2
|
||||
# with:
|
||||
# user: __token__
|
||||
# password: ${{ secrets.PYPI_TOKEN }}
|
7
setup.py
7
setup.py
|
@ -10,7 +10,7 @@ dependencies = ['numpy', 'six']
|
|||
if sys.version_info < (3, 4):
|
||||
dependencies.append('enum34')
|
||||
|
||||
ver = "18.1.7"
|
||||
ver = "18.1.7-1"
|
||||
|
||||
setup(
|
||||
name='python-awips',
|
||||
|
@ -18,10 +18,10 @@ setup(
|
|||
description='A framework for requesting AWIPS meteorological datasets from an EDEX server',
|
||||
packages=find_packages(exclude='data'),
|
||||
license='BSD',
|
||||
url='http://python-awips.readthedocs.io',
|
||||
url='http://unidata.github.io/python-awips',
|
||||
download_url='https://github.com/Unidata/python-awips/archive/{}.tar.gz'.format(ver),
|
||||
author='Unidata',
|
||||
author_email='mjames@ucar.edu',
|
||||
author_email='support-awips@ucar.edu',
|
||||
install_requires=dependencies,
|
||||
extras_require={
|
||||
'cdm': ['pyproj>=1.9.4'],
|
||||
|
@ -30,4 +30,3 @@ setup(
|
|||
'examples': ['cartopy>=0.13.1', 'metpy>=0.4.0']
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue