Skip to content

Commit

Permalink
github action to release importnb (#112)
Browse files Browse the repository at this point in the history
* add release file

* there are no requimrentexts to install

* test the release

* wheel

* manually bump the version

* make changes from @bollwyvl s review
  • Loading branch information
tonyfast committed Nov 8, 2020
1 parent e3b5c32 commit 946b94c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

name: Python package
on:
release:
types: [published,]
jobs:
build:
runs-on: ubuntu-latest
python-version: 3.8

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox wheel
pip install .
- name: Test
run: tox
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@master
with:
user: docfast
password: ${{ secrets.pypi_password }}
2 changes: 1 addition & 1 deletion src/importnb/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.6.2"
__version__ = "0.7.0"
6 changes: 6 additions & 0 deletions src/importnb/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ def __init__(
self._markdown_docstring = markdown_docstring
self._position = position

@classmethod
def parameterized(cls):
from .parameterize import Parameterize

return type(cls.__name__, (Parameterize, cls), {})

@property
def loader(self):
"""Create a lazy loader source file loader."""
Expand Down

0 comments on commit 946b94c

Please sign in to comment.