Skip to content

Commit

Permalink
Publish wheels with github actions (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey authored Aug 29, 2023
1 parent d73c18d commit 91acd4d
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,19 @@ jobs:
with:
name: ${{ matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
path: ./wheelhouse/*.whl
make_sdist:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build SDist
run: pipx run build --sdist
- uses: actions/upload-artifact@v3
with:
name: sdist
path: dist/*.tar.gz

# Still on Circle-CI
# - docker
Expand All @@ -105,6 +118,7 @@ jobs:
- test
- lint
- build_wheels
- make_sdist
if: github.repository == 'DigitalSlideArchive/HistomicsTK' && ( startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master' )
environment:
name: pypi
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ HistomicsTKDocker.code-workspace

# debugging
.devcontainer/
MANIFEST.in
.pre-commit-config.yaml
run_tests_code_cleanup.sh

Expand Down
2 changes: 2 additions & 0 deletions Dockerfile-wheels
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ RUN for PYBIN in /opt/python/*/bin; do \
done

ENV htk_path=/HistomicsTK
WORKDIR /HistomicsTK

RUN mkdir -p $htk_path

COPY . $htk_path/
Expand Down
11 changes: 11 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
exclude *
prune *
include LICENSE
include NOTICE
include *.rst
global-include CMakeLists.txt
include setup.py
include pyproject.toml
include requirements-dev.txt
graft histomicstk
global-exclude *.py[co] __pycache__
2 changes: 0 additions & 2 deletions sample_images/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def prerelease_local_scheme(version):
author='Kitware, Inc.',
author_email='[email protected]',
url='https://github.com/DigitalSlideArchive/HistomicsTK',
packages=find_packages(exclude=['tests', '*_test']),
packages=find_packages(exclude=['tests', '*_test*']),
package_dir={
'histomicstk': 'histomicstk',
},
Expand Down

0 comments on commit 91acd4d

Please sign in to comment.