Skip to content

Commit

Permalink
Steps towards publication.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtclarke committed Jan 6, 2023
1 parent f064fea commit 35664e1
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish to PyPI.org
on:
release:
types: [published]
jobs:
pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: python3 -m pip install --upgrade build && python3 -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
7 changes: 3 additions & 4 deletions .github/workflows/push_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ on:
workflow_dispatch:

jobs:
miniconda:
name: Miniconda (${{ matrix.python-version }}, ${{ matrix.os }})
tests:
name: Code tests (Python ${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
# python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8",]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This document contains the nifti_mrs_tools release history in reverse chronological order.

0.0.1 (Friday 6th January)
---------------------------
- Initial release
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LICENSE
File renamed without changes.
16 changes: 15 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
[metadata]
name=nifti_mrs
url=https://github.com/wtclarke/nifti_mrs_tools
description = Software tools for the NIfTI-MRS data format
long_description = file: readme.md
keywords = one, two
license = BSD 3-Clause License
license_files = LICENSE
classifiers =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
author=William Clarke
author_email=william.clarke@ndcn.ox.ac.uk

# [options]
[options]
install_requires =
numpy
nibabel
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/user/bin/env python

from setuptools import setup
import versioneer

if __name__ == "__main__":
setup()
setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
)

0 comments on commit 35664e1

Please sign in to comment.