Skip to content

Commit

Permalink
Merge pull request #17 from a-lab-nagoya/#16-release-v0.1.1
Browse files Browse the repository at this point in the history
Release v0.1.1
  • Loading branch information
astropenguin authored Sep 17, 2021
2 parents 95f3821 + 15bdb29 commit 58d9578
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 23 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/test.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Tests

on:
push:
Expand All @@ -10,11 +10,13 @@ on:

jobs:
job:
name: Test
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
env:
TESTED_DIRS: docs tests xarray_cube
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
Expand All @@ -26,11 +28,11 @@ jobs:
sudo apt install pandoc
pip install poetry
poetry install
- name: Lint by Flake8
run: poetry run flake8 docs tests xarray_cube
- name: Format by Black
run: poetry run black --check docs tests xarray_cube
- name: Test by pytest
- 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: Build docs
- name: Test docs building (Sphinx)
run: poetry run docs/build
21 changes: 18 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Created by https://www.toptal.com/developers/gitignore/api/python
# Edit at https://www.toptal.com/developers/gitignore?templates=python

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand All @@ -20,7 +24,6 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
Expand Down Expand Up @@ -50,6 +53,7 @@ coverage.xml
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
Expand All @@ -69,11 +73,12 @@ instance/
.scrapy

# Sphinx documentation
docs/readme.rst
docs/_apidoc/
docs/_build/
docs/readme.rst

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
Expand All @@ -84,7 +89,9 @@ profile_default/
ipython_config.py

# pyenv
.python-version
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand Down Expand Up @@ -129,3 +136,11 @@ dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# End of https://www.toptal.com/developers/gitignore/api/python
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Akio Taniguchi
Copyright (c) 2020-2021 Akio Taniguchi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 7 additions & 7 deletions docs/_static/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Project information
author = "Akio Taniguchi"
copyright = "2020, Akio Taniguchi"
copyright = "2020-2021, Akio Taniguchi"


# General configuration
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "xarray-cube"
version = "0.1.0"
version = "0.1.1"
description = "xarray extension for spectral cube analysis"
authors = [
"Akio Taniguchi <taniguchi@a.phys.nagoya-u.ac.jp>",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ def test_author():


def test_version():
assert __version__ == "0.1.0"
assert __version__ == "0.1.1"
2 changes: 1 addition & 1 deletion xarray_cube/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
__author__ = "Akio Taniguchi"
__version__ = "0.1.0"
__version__ = "0.1.1"


# submodules
Expand Down

0 comments on commit 58d9578

Please sign in to comment.