Skip to content

Commit

Permalink
Merge pull request #10 from gadgetron/hansenms/pypi-packaging
Browse files Browse the repository at this point in the history
Hansenms/pypi packaging
  • Loading branch information
hansenms authored Sep 1, 2022
2 parents e321113 + b7eff8d commit 1fa47cc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
.
- name: Publish distribution 📦 to PyPI
#if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Gadgetron Python

Python interface for Gadgetron.
2 changes: 1 addition & 1 deletion gadgetron/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

major = 1
minor = 4
build = 0
build = 1

version = f"{major}.{minor}.{build}"
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
from setuptools import setup

from pathlib import Path

version = {}
with open("gadgetron/version.py") as fp:
exec(fp.read(), version)
# later on we use: version['__version__']

this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()

setup(
name='gadgetron',
version=version['version'],
Expand All @@ -20,7 +24,9 @@
license='MIT',
author='Kristoffer Langeland Knudsen',
author_email='[email protected]',
description='',
description='Python interface for Gadgetron',
long_description = long_description,
long_description_content_type='text/markdown',
install_requires=[
'numpy>=1.22',
'ismrmrd>=1.12.5',
Expand Down

0 comments on commit 1fa47cc

Please sign in to comment.