An open API service indexing awesome lists of open source software.

https://github.com/georgysk/teashop

Retrieves information from the Tea Shop website.
https://github.com/georgysk/teashop

Last synced: 4 months ago
JSON representation

Retrieves information from the Tea Shop website.

Awesome Lists containing this project

README

        

TeaShop
===

[![](https://github.com/GeorgySk/teashop/workflows/CI/badge.svg)](https://github.com/GeorgySk/teashop/actions/workflows/ci.yml "Github Actions")
[![](https://codecov.io/gh/GeorgySk/gon/branch/master/graph/badge.svg)](https://codecov.io/gh/GeorgySk/teashop "Codecov")
[![](https://readthedocs.org/projects/teashop/badge/?version=latest)](https://teashop.readthedocs.io/en/latest "Documentation")
[![](https://img.shields.io/github/license/GeorgySk/teashop.svg)](https://github.com/GeorgySk/teashop/blob/master/LICENSE "License")
[![](https://badge.fury.io/py/teashop.svg)](https://badge.fury.io/py/teashop "PyPI")

Summary
-------

Retrieves information from the Tea Shop website.

---

In what follows `python` is an alias for `python3.8` or any later
version.

Installation
------------

Install the latest `pip` & `setuptools` packages versions
```bash
python -m pip install --upgrade pip setuptools
```

### User

Download and install the latest stable version from `PyPI` repository
```bash
python -m pip install --upgrade teashop
```

### Developer

Download the latest version from `GitHub` repository
```bash
git clone https://github.com/GeorgySk/teashop.git
cd gon
```

Install dependencies
```bash
poetry install
```

Usage
-----
```python
from teashop import fetch_teas
teas = fetch_teas()
assert isinstance(teas, dict)
```

Development
-----------

### Bumping version

#### Preparation

Install
[bump-my-version](https://github.com/callowayproject/bump-my-version/tree/master?tab=readme-ov-file#installation).

#### Pre-release

Choose which version number category to bump following [semver
specification](http://semver.org/).

Test bumping version
```bash
bump-my-version bump --dry-run --verbose $CATEGORY
```

where `$CATEGORY` is the target version number category name, possible
values are `patch`/`minor`/`major`.

Bump version
```bash
bump-my-version bump --verbose $CATEGORY
```

This will set version to `major.minor.patch-alpha`.

#### Release

Test bumping version
```bash
bump-my-version bump --dry-run --verbose release
```

Bump version
```bash
bump-my-version bump --verbose release
```

This will set version to `major.minor.patch`.

### Running tests

Plain:
```bash
pytest
```

Inside `Docker` container:
```bash
docker-compose run --entrypoint pytest teashop
```