Skip to content

Commit 6706ced

Browse files
committed
Updated version to 0.0.3, fixed some minor links, and added deploy.
1 parent 43657aa commit 6706ced

File tree

5 files changed

+70
-7
lines changed

5 files changed

+70
-7
lines changed

.github/workflows/deploy.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Publish ChimeraPy to PyPI / GitHub
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build-n-publish:
10+
name: Build and publish to PyPI
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout source
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: "3.9"
21+
22+
- name: Build source and wheel distributions
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install ffmpeg libsm6 libxext6 -y
26+
python3 -m pip install --upgrade pip
27+
python -m pip install --upgrade build twine
28+
python -m build
29+
twine check --strict dist/*
30+
- name: Publish distribution to PyPI
31+
uses: pypa/gh-action-pypi-publish@master
32+
with:
33+
user: __token__
34+
password: ${{ secrets.PYPI_API_TOKEN }}
35+
36+
- name: Create GitHub Release
37+
id: create_release
38+
uses: actions/create-release@v1
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
41+
with:
42+
tag_name: ${{ github.ref }}
43+
release_name: ${{ github.ref }}
44+
draft: false
45+
prerelease: false
46+
47+
- name: Get Asset name
48+
run: |
49+
export PKG=$(ls dist/ | grep tar)
50+
set -- $PKG
51+
echo "name=$1" >> $GITHUB_ENV
52+
- name: Upload Release Asset (sdist) to GitHub
53+
id: upload-release-asset
54+
uses: actions/upload-release-asset@v1
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
with:
58+
upload_url: ${{ steps.create_release.outputs.upload_url }}
59+
asset_path: dist/${{ env.name }}
60+
asset_name: ${{ env.name }}
61+
asset_content_type: application/zip

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![logo](docs/_static/logo/chimerapy_logo_with_name.png#gh-dark-mode-only)
22
![logo](docs/_static/logo/chimerapy_logo_with_name_theme_blue.png#gh-light-mode-only)
33

4-
![PyPI](https://img.shields.io/pypi/v/chimerapy) [![Coverage Status](https://coveralls.io/repos/github/oele-isis-vanderbilt/ChimeraPy/badge.svg?branch=main)](https://coveralls.io/github/oele-isis-vanderbilt/ChimeraPy?branch=main) ![](https://img.shields.io/github/workflow/status/oele-isis-vanderbilt/ChimeraPy/Test) ![](https://img.shields.io/github/license/oele-isis-vanderbilt/ChimeraPy) ![](https://img.shields.io/badge/style-black-black)
4+
[![PyPI](https://img.shields.io/pypi/v/chimerapy)](https://pypi.org/project/chimerapy/) [![Coverage Status](https://coveralls.io/repos/github/oele-isis-vanderbilt/ChimeraPy/badge.svg?branch=main)](https://coveralls.io/github/oele-isis-vanderbilt/ChimeraPy?branch=main) ![](https://img.shields.io/github/workflow/status/oele-isis-vanderbilt/ChimeraPy/Test) ![](https://img.shields.io/github/license/oele-isis-vanderbilt/ChimeraPy) ![](https://img.shields.io/badge/style-black-black)
55
* [Docs](https://oele-isis-vanderbilt.github.io/ChimeraPy)
66

77
<!-- Summary -->

docs/developer/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Below is the developer documentation, which includes all the classes,
2828
methods, and modules used by ChimeraPy.
2929

3030
.. toctree::
31-
:maxdepth: 5
31+
:maxdepth: 2
3232
:includehidden:
3333

3434
communication.rst

docs/index.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
:width: 90%
88
:alt: ChimeraPy Logo
99

10-
|pipy| |coverage| |test| |license| |style|
10+
|pipy|_ |coverage|_ |test| |license| |style|
1111

1212
.. |pipy| image:: https://img.shields.io/pypi/v/chimerapy
1313
:alt: PyPI
14+
.. _pipy: https://pypi.org/project/chimerapy/
1415

1516
.. |coverage| image:: https://coveralls.io/repos/github/oele-isis-vanderbilt/ChimeraPy/badge.svg?branch=main
1617
:alt: coverage
18+
.. _coverage: https://coveralls.io/github/oele-isis-vanderbilt/ChimeraPy?branch=main
1719

1820
.. |test| image:: https://img.shields.io/github/workflow/status/oele-isis-vanderbilt/ChimeraPy/Test
1921
:alt: test
@@ -52,13 +54,13 @@ Contents
5254
framework/index
5355

5456
.. toctree::
55-
:maxdepth: 3
57+
:maxdepth: 2
5658
:includehidden:
5759

5860
api/index
5961

6062
.. toctree::
61-
:maxdepth: 6
63+
:maxdepth: 3
6264
:includehidden:
6365

6466
developer/index

setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# here: https://packaging.python.org/tutorials/packaging-projects/
33
[metadata]
44
name = chimerapy
5-
version = 0.0.2
5+
version = 0.0.3
66
url = https://github.com/oele-isis-vanderbilt/ChimeraPy
77
description = ChimeraPy: Python Distributed MultiModal Data Framework
88
long_description = file: README.md
99
long_description_content_type = text/markdown
1010
license = GNU GENERAL Public License
1111
platform = any
12-
keywords = multimodal, data, analysis, real-time, distributed
12+
keywords = multimodal, data, distributed, streaming, real-time
1313
classifiers =
1414
Programming Language :: Python :: 3
1515
Programming Language :: Python :: 3.6

0 commit comments

Comments
 (0)