Skip to content

Commit

Permalink
see if it works without the conditions (#120)
Browse files Browse the repository at this point in the history
* see if it works without the conditions

* fix classifiers

* the pypi github action only works on linux...

* don't upload to pypi for now

* try some fancier logic

* spread the fancy logic
  • Loading branch information
ajfriend authored May 27, 2020
1 parent 08daf33 commit 7521efd
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 40 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/wheels-linux.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: wheels-linux

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push, pull_request, release]

jobs:
tests:
Expand All @@ -30,21 +26,23 @@ jobs:
python -m cibuildwheel --output-dir wheelhouse
- name: Build sdist
if: github.event_name == 'release'
run: |
pip install scikit-build
python setup.py sdist --dist-dir=wheelhouse
- name: Upload artifacts to github
if: startsWith(github.event.ref, 'refs/tags')
if: github.event_name == 'release'
uses: actions/upload-artifact@v2
with:
name: wheels
path: ./wheelhouse

- name: Publish distribution to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
packages_dir: ./wheelhouse
- name: Release to pypi
if: github.event_name == 'release' && github.event.action == 'published'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
python -m pip install --upgrade twine
twine upload wheelhouse/*
23 changes: 10 additions & 13 deletions .github/workflows/wheels-mac.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: wheels-mac

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push, pull_request, release]

jobs:
tests:
Expand All @@ -30,16 +26,17 @@ jobs:
python -m cibuildwheel --output-dir wheelhouse
- name: Upload artifacts to github
if: startsWith(github.event.ref, 'refs/tags')
if: github.event_name == 'release'
uses: actions/upload-artifact@v2
with:
name: wheels
path: ./wheelhouse

- name: Publish distribution to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
packages_dir: ./wheelhouse
- name: Release to pypi
if: github.event_name == 'release' && github.event.action == 'published'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
python -m pip install --upgrade twine
twine upload wheelhouse/*
23 changes: 10 additions & 13 deletions .github/workflows/wheels-windows.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: wheels-windows

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push, pull_request, release]

env:
CC: cl.exe
Expand Down Expand Up @@ -37,16 +33,17 @@ jobs:
python -m cibuildwheel --output-dir wheelhouse
- name: Upload artifacts to github
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
if: github.event_name == 'release'
uses: actions/upload-artifact@v2
with:
name: wheels
path: ./wheelhouse

- name: Publish distribution to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
packages_dir: ./wheelhouse
- name: Release to pypi
if: github.event_name == 'release' && github.event.action == 'published'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
python -m pip install --upgrade twine
twine upload wheelhouse/*
6 changes: 5 additions & 1 deletion src/h3/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@
__author__ = 'Uber Technologies'
__author_email__ = 'AJ Friend <[email protected]>'
__classifiers__ = [
"Development Status :: 2 - Beta",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: C",
"Programming Language :: Cython",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Topic :: Scientific/Engineering :: GIS",
]

0 comments on commit 7521efd

Please sign in to comment.