Skip to content

Commit

Permalink
Merge pull request #226 from bird-house/prepare_v083
Browse files Browse the repository at this point in the history
Prepare v0.8.3
  • Loading branch information
Zeitsperre authored May 5, 2023
2 parents 2dda60e + b3bb472 commit 310f240
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 52 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: build ⚙️

on: [ push, pull_request ]
on:
push:
branches:
- master
pull_request:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, '3.10']
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- name: Install packages
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Python 🐍 distributions 📦 to PyPI

on:
release:
types:
- published

jobs:
build-n-publish-pypi:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python3
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Build a binary wheel and a source tarball
run: python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/tag-testpypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Python 🐍 distributions 📦 to TestPyPI

on:
push:
tags:
- '*'

jobs:
build-n-publish-testpypi:
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python3
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Build a binary wheel and a source tarball
run: python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
63 changes: 36 additions & 27 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,7 @@
Birdy
=====

.. image:: https://img.shields.io/badge/docs-latest-brightgreen.svg
:target: http://birdy.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://github.com/bird-house/birdy/workflows/build/badge.svg
:target: https://github.com/bird-house/birdy/actions
:alt: Build Status

.. image:: https://api.codacy.com/project/badge/Grade/da14405a9a6d4c2e9c405d9c0c8babe7
:target: https://www.codacy.com/app/cehbrecht/birdy?utm_source=github.com&utm_medium=referral&utm_content=bird-house/birdy&utm_campaign=Badge_Grade
:alt: Codacy Code Checks

.. image:: https://img.shields.io/github/license/bird-house/birdy.svg
:target: https://github.com/bird-house/birdy/blob/master/LICENSE.txt
:alt: GitHub license

.. image:: https://badges.gitter.im/bird-house/birdhouse.svg
:target: https://gitter.im/bird-house/birdhouse?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
:alt: Join the chat at https://gitter.im/bird-house/birdhouse

|PyPI| |Docs| |Build| |Codacy| |License| |Gitter|

Birdy (the bird)
*Birdy is not a bird but likes to play with them.*
Expand All @@ -32,17 +13,45 @@ It is using `OWSLib` from the `GeoPython` project.
You can try Birdy online using Binder (just click on the binder link below),
or view the notebooks on NBViewer.

.. image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/bird-house/birdy.git/v0.8.2?filepath=notebooks
:alt: Binder Launcher
|Binder|

.. image:: https://raw.githubusercontent.com/jupyter/design/master/logos/Badges/nbviewer_badge.svg
:target: https://nbviewer.jupyter.org/github/bird-house/birdy/tree/v0.8.2/notebooks/
:alt: NBViewer
:height: 20
|NBViewer|

Birdy is part of the `Birdhouse`_ project.

Full `documentation <http://birdy.readthedocs.org/en/latest/>`_ is on ReadTheDocs.

.. _Birdhouse: http://bird-house.github.io/en/latest/

.. |PyPI| image:: https://img.shields.io/pypi/v/birdhouse-birdy.svg
:target: https://pypi.python.org/pypi/birdhouse-birdy
:alt: Python Package Index Build

.. |Docs| image:: https://img.shields.io/badge/docs-latest-brightgreen.svg
:target: http://birdy.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. |Build| image:: https://github.com/bird-house/birdy/workflows/build/badge.svg
:target: https://github.com/bird-house/birdy/actions
:alt: Build Status

.. |Codacy| image:: https://api.codacy.com/project/badge/Grade/da14405a9a6d4c2e9c405d9c0c8babe7
:target: https://www.codacy.com/app/cehbrecht/birdy?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=bird-house/birdy&amp;utm_campaign=Badge_Grade
:alt: Codacy Code Checks

.. |License| image:: https://img.shields.io/github/license/bird-house/birdy.svg
:target: https://github.com/bird-house/birdy/blob/master/LICENSE.txt
:alt: GitHub license

.. |Gitter| image:: https://badges.gitter.im/bird-house/birdhouse.svg
:target: https://gitter.im/bird-house/birdhouse?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
:alt: Join the chat at https://gitter.im/bird-house/birdhouse

.. |Binder| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/bird-house/birdy.git/v0.8.3?filepath=notebooks
:alt: Binder Launcher

.. |NBViewer| image:: https://raw.githubusercontent.com/jupyter/design/master/logos/Badges/nbviewer_badge.svg
:target: https://nbviewer.jupyter.org/github/bird-house/birdy/tree/v0.8.3/notebooks/
:alt: NBViewer
:height: 20
2 changes: 1 addition & 1 deletion birdy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# noqa: D100, D104

__version__ = "0.8.2"
__version__ = "0.8.3"

from .client import WPSClient
from .ipyleafletwfs import IpyleafletWFS # noqa: F401
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
# The short X.Y version.
version = ""
# The full version, including alpha/beta/rc tags.
release = "0.8.2"
release = "0.8.3"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
17 changes: 15 additions & 2 deletions docs/source/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Check out code from the birdy GitHub repo and start the installation::
$ git clone https://github.com/bird-house/birdy.git
$ cd birdy
$ conda env create -f environment.yml
$ python setup.py develop
$ pip install --editable .

Install additional dependencies::

Expand All @@ -37,7 +37,7 @@ Before committing your changes, we ask that you install `pre-commit` in your env
`Pre-commit` runs git hooks that ensure that your code resembles that of the project
and catches and corrects any small errors or inconsistencies when you `git commit`::

$ conda install -c conda-forge pre_commit
$ conda install -c conda-forge pre-commit
$ pre-commit install

Write Documentation
Expand All @@ -63,3 +63,16 @@ Make a new version of Birdy in the following steps:
See the bumpversion_ documentation for details.

.. _bumpversion: https://pypi.org/project/bumpversion/

Release a new version
=====================

Leveraging GitHub Workflows, maintainers can release new versions of Birdy automatically:

* Ensure that the changelog and version on the main development branch have been updated to reflect the new version.
* Create a tag (`vX.Y.Z`) of the main development branch and push to the GitHub repository.
* This will trigger a workflow that will attempt to build Birdy and publish it to TestPyPI.
* When this actions succeeds, be sure to verify on TestPyPI that the package reflects changes.
* On GitHub, a maintainer can then publish a new version using the newly created tag.
* This will trigger a workflow that will attempt to build Birdy and publish it to PyPI.
* Be warned that once published to PyPI, a version number can never be overwritten! Bad versions may only be `yanked <https://pypi.org/help/#yanked>`_.
48 changes: 32 additions & 16 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,23 @@
Installation
************

Install from Anaconda
=====================
Install from PyPI
=================

|pypi|

.. image:: https://anaconda.org/conda-forge/birdy/badges/installer/conda.svg
:target: https://anaconda.org/conda-forge/birdy
:alt: Ananconda Install
.. code-block:: console
$ pip install birdhouse-birdy
.. image:: https://anaconda.org/conda-forge/birdy/badges/version.svg
:target: https://anaconda.org/conda-forge/birdy
:alt: Anaconda Version
Install from Anaconda
=====================

.. image:: https://anaconda.org/conda-forge/birdy/badges/downloads.svg
:target: https://anaconda.org/conda-forge/birdy
:alt: Anaconda Downloads
|conda install| |conda version| |conda downloads|

.. code-block:: console
$ conda install -c conda-forge birdy
$ conda install -c conda-forge birdy
Install from GitHub
===================
Expand All @@ -30,7 +29,24 @@ Check out code from the birdy GitHub repo and start the installation:

.. code-block:: console
$ git clone https://github.com/bird-house/birdy.git
$ cd birdy
$ conda env create -f environment.yml
$ python setup.py install
$ git clone https://github.com/bird-house/birdy.git
$ cd birdy
$ conda env create -f environment.yml
$ python setup.py install
.. |pypi| image:: https://img.shields.io/pypi/v/birdhouse-birdy.svg
:target: https://pypi.python.org/pypi/birdhouse-birdy
:alt: Python Package Index Build

.. |conda install| image:: https://anaconda.org/conda-forge/birdy/badges/installer/conda.svg
:target: https://anaconda.org/conda-forge/birdy
:alt: Anaconda Install

.. |conda version| image:: https://anaconda.org/conda-forge/birdy/badges/version.svg
:target: https://anaconda.org/conda-forge/birdy
:alt: Anaconda Version

.. |conda downloads| image:: https://anaconda.org/conda-forge/birdy/badges/downloads.svg
:target: https://anaconda.org/conda-forge/birdy
:alt: Anaconda Downloads
9 changes: 6 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[bumpversion]
current_version = 0.8.2
current_version = 0.8.3
commit = True
tag = True
tag = False

[metadata]
description-file = README.rst
Expand All @@ -21,7 +21,9 @@ replace = {new_version}
[tool:pytest]
python_files = test_*.py
testpaths = tests
addopts = --strict --tb=native
addopts =
--strict
--tb=native
markers =
online: mark test to need internet connection
slow: mark test to be slow
Expand All @@ -41,3 +43,4 @@ exclude =
[doc8]
ignore-path = docs/build,docs/source/_templates,docs/source/_static
max-line-length = 120

0 comments on commit 310f240

Please sign in to comment.