Skip to content

Commit

Permalink
Merge pull request #66 from deshima-dev/#64-release-v0.3.0
Browse files Browse the repository at this point in the history
Release v0.3.0
  • Loading branch information
astropenguin authored Jun 1, 2021
2 parents 2fc6697 + 5c1ac2c commit 4e4ac0a
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 42 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish.yml → .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
name: Publish
name: PyPI

on:
release:
types: [created]
types:
- created

jobs:
publish:
name: PyPI
runs-on: ubuntu-latest
env:
USERNAME: ${{ secrets.PYPI_USERNAME }}
PASSWORD: ${{ secrets.PYPI_PASSWORD }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: pip install poetry
- name: Publish package
run: |
pip install poetry
poetry build
poetry publish --username $USERNAME --password $PASSWORD
30 changes: 0 additions & 30 deletions .github/workflows/test.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

on:
pull_request:
branches:
- master
- develop

jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
env:
TESTED_DIRS: deshima_sensitivity docs tests
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install pandoc
pip install poetry
poetry install
- name: Test code format (Black)
run: poetry run black --check ${TESTED_DIRS}
- name: Test code style (Flake8)
run: poetry run flake8 ${TESTED_DIRS}
- name: Test package (pytest)
run: poetry run pytest -v tests
- name: Test docs building (Sphinx)
run: poetry run etc/builddocs
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Click the budge below to open it in [Google colaboratory](http://colab.research.

### Stable version (recommended)

[![open stable version in colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deshima-dev/deshima-sensitivity/blob/v0.2.7/sensitivity.ipynb)
[![open stable version in colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deshima-dev/deshima-sensitivity/blob/v0.3.0/sensitivity.ipynb)

### Latest version

Expand Down
2 changes: 1 addition & 1 deletion deshima_sensitivity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""
# flake8: noqa
__version__ = "0.2.7"
__version__ = "0.3.0"


# modules
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Project information
project = "deshima-sensitivity"
copyright = "2018-2020 DESHIMA software team"
copyright = "2020 DESHIMA software team"
author = "Akira Endo"
release = "0.2.7"
release = "0.3.0"


# General configuration
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "deshima-sensitivity"
version = "0.2.7"
version = "0.3.0"
description = "Sensitivity calculator for DESHIMA-type spectrometers"
authors = ["Akira Endo <a.endo@tudelft.nl>"]
maintainers = [
Expand All @@ -16,7 +16,7 @@ homepage = "https://github.com/deshima-dev/deshima-sensitivity"
documentation = "https://deshima-dev.github.io/deshima-sensitivity/"

[tool.poetry.dependencies]
python = ">= 3.7, <= 3.9"
python = ">= 3.7, < 3.10"
matplotlib = "^3.2"
numpy = "^1.19"
scipy = "^1.4"
Expand Down
2 changes: 1 addition & 1 deletion sensitivity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -q \"deshima-sensitivity==0.2.7\""
"!pip install -q \"deshima-sensitivity==0.3.0\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == "0.2.7"
assert __version__ == "0.3.0"

0 comments on commit 4e4ac0a

Please sign in to comment.