Skip to content

Commit

Permalink
Fix #39 (#41)
Browse files Browse the repository at this point in the history
* Fix #39 

* Bump package version

* Update CHANGELOG.md

* Add publish.yml
  • Loading branch information
SKY-ALIN authored May 30, 2023
1 parent 77a205c commit 908912c
Show file tree
Hide file tree
Showing 7 changed files with 464 additions and 356 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Publish

on:
push:
tags:
- "v*.*.*"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction

- name: Install library
run: poetry install --no-interaction

- name: Build distribution
run: poetry build --no-interaction

- name: Publish on PyPI
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
poetry publish --no-interaction
- name: Make a github release
uses: softprops/action-gh-release@v1
with:
files: dist/*
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.1.2 (30.05.2023)
* Fix issue #39 (Incorrect LICENSE file inclusion)

## 0.1.1 (30.12.2022)
* Add `__radd__` method
* Update typehints according to mypy
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
author = 'Vladimir Alinsky'

# The full version, including alpha/beta/rc tags
release = '0.1.1'
release = '0.1.2'


# -- General configuration ---------------------------------------------------
Expand Down
756 changes: 407 additions & 349 deletions poetry.lock

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
[tool.poetry]
name = "telegram_text"
version = "0.1.1"
version = "0.1.2"
description = "Python markup module for Telegram messenger. This module provides a rich list of components to build any possible markup fast and render it to specific html or MarkdownV2 formats."
authors = ["Vladimir Alinsky <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://telegram-text.alinsky.tech"
repository = "https://github.com/SKY-ALIN/telegram-text"
keywords = ["telegram", "markup", "markdown", "formating"]
include = [
"LICENSE",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
Expand Down
2 changes: 1 addition & 1 deletion telegram_text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .markdown import OrderedList, UnorderedList
from .styles import Bold, Code, InlineCode, Italic, Spoiler, Strikethrough, Underline

__version__ = '0.1.1'
__version__ = '0.1.2'
__all__ = [
"Chain",
"PlainText",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_meta_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == '0.1.1'
assert __version__ == '0.1.2'

0 comments on commit 908912c

Please sign in to comment.