From 24c8286b39267436097e8af7603f7ba5d6c9d328 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Wed, 31 Aug 2022 15:05:12 -0700 Subject: [PATCH 1/4] Added long description --- README.md | 3 +++ gadgetron/version.py | 2 +- setup.py | 8 +++++++- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..97b6bec --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Gadgetron Python + +Python interface for Gadgertron. \ No newline at end of file diff --git a/gadgetron/version.py b/gadgetron/version.py index e3e8923..0caca0b 100644 --- a/gadgetron/version.py +++ b/gadgetron/version.py @@ -1,6 +1,6 @@ major = 1 minor = 4 -build = 0 +build = 1 version = f"{major}.{minor}.{build}" diff --git a/setup.py b/setup.py index bac4f93..828e47f 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,10 @@ 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'], @@ -20,7 +24,9 @@ license='MIT', author='Kristoffer Langeland Knudsen', author_email='kristofferlknudsen@gradientsoftware.net', - 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', From c04fa3e6a79cadf5df88ba738ac68a702187791a Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Wed, 31 Aug 2022 15:06:23 -0700 Subject: [PATCH 2/4] Pin pypi action --- .github/workflows/python-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index d132d05..8c11768 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -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 }} From fd13c94c4ef5db6aff5f4b5596956f2461b870fb Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Wed, 31 Aug 2022 15:11:34 -0700 Subject: [PATCH 3/4] Fix missing import --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 828e47f..cd32821 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ from setuptools import setup - +from pathlib import Path version = {} with open("gadgetron/version.py") as fp: From b7eff8d0672643aacf73ac085d5abd0946846a70 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 1 Sep 2022 08:43:21 -0700 Subject: [PATCH 4/4] Updated readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 97b6bec..db6b7c6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Gadgetron Python -Python interface for Gadgertron. \ No newline at end of file +Python interface for Gadgetron. \ No newline at end of file