Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ywkure committed Feb 18, 2021
1 parent e855db0 commit db695dd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,25 @@ jobs:
pip install .[dev]
- name: Test
run: pytest
deploy:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools setuptools_scm wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
run: |
git tag
python setup.py sdist bdist_wheel
twine upload dist/*
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""The setup script."""

from setuptools import find_packages, setup
from setuptools import find_namespace_packages, setup

with open("README.rst") as readme_file:
readme = readme_file.read()
Expand Down Expand Up @@ -38,12 +38,15 @@
],
description="hdf5/split-dataset file reader for napari",
extras_require=dict(dev=requirements_dev),
entry_points={
'napari.plugin': ['split-dataset = napari_split_dataset'],
},
install_requires=requirements,
license="MIT",
include_package_data=True,
keywords="napari_split_dataset",
name="napari_split_dataset",
packages=find_packages(include=["napari_split_dataset", "napari_split_dataset.*"]),
packages=find_namespace_packages(exclude=("docs", "tests*")),
setup_requires=setup_requirements,
test_suite="tests",
tests_require=test_requirements,
Expand Down

0 comments on commit db695dd

Please sign in to comment.