Skip to content

Commit

Permalink
Merge pull request #21 from smart-on-fhir/mikix/pypi
Browse files Browse the repository at this point in the history
Add pypi hook and bump version to 1.0.0
  • Loading branch information
mikix authored Jan 19, 2024
2 parents a332de8 + 9d93d91 commit db64204
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PyPI

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write # this permission is required for PyPI "trusted publishing"

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build
run: python -m build

- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
3 changes: 3 additions & 0 deletions chart_review/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Chart Review public entry point"""

__version__ = "1.0.0"
11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[project]
name = "chart-review"
version = "0.0.1"
requires-python = ">= 3.9"
dependencies = [
"ctakesclient",
Expand All @@ -16,10 +15,11 @@ classifiers = [
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["version"]

[project.urls]
Home = "https://smarthealthit.org/cumulus-a-universal-sidecar-for-a-smart-learning-healthcare-system/"
Documentation = "https://docs.smarthealthit.org/cumulus/"
Documentation = "https://docs.smarthealthit.org/cumulus/chart-review/"
Source = "https://github.com/smart-on-fhir/chart-review"

[project.scripts]
Expand All @@ -46,4 +46,9 @@ dev = [
]

[tool.flit.sdist]
include = ["chart_review/"]
include = [
"docs/",
"tests/",
"LICENSE",
"*.md",
]

0 comments on commit db64204

Please sign in to comment.