Skip to content

Commit 9daf42f

Browse files
authored
feat: github action publish (#33)
- add github actions publish to PyPI on release - migrate from setup.cfg to pyproject.toml - update README with release notes - update version to 0.2.6
1 parent 2d41f74 commit 9daf42f

File tree

5 files changed

+83
-57
lines changed

5 files changed

+83
-57
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
deploy:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Set up Python
25+
uses: actions/setup-python@v3
26+
with:
27+
python-version: "3.x"
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install build
32+
- name: Build package
33+
run: python -m build
34+
- name: Publish package
35+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
36+
with:
37+
user: __token__
38+
password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,17 @@ Textual Inputs is a collection of input widgets for the [Textual](https://github
1313
1414
## News
1515

16-
### v0.2.5
16+
### v0.2.6
1717

18-
Adds support for syntax highlighting. To add syntax highlighting to your
19-
input text set the `syntax` argument to a language supported by
20-
`pygments`. Currently this is set to the default theme.
21-
22-
```python
23-
TextInput(
24-
name="code",
25-
placeholder="enter some python code...",
26-
title="Code",
27-
syntax="python",
28-
)
29-
```
18+
- Support for text overflow in TextInput
19+
- Patch for crash when IntegerInput is empty and backspace is pressed.
3020

3121
## Quick Start
3222

3323
Installation
3424

3525
```bash
36-
python -m pip install textual-inputs~=0.2.5
26+
python -m pip install textual-inputs~=0.2.6
3727
```
3828

3929
To use Textual Inputs

pyproject.toml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,51 @@
1+
[project]
2+
name = "textual-inputs"
3+
license = { text = "MIT" }
4+
description = "textual-inputs is a collection of input widgets for the Textual TUI framework"
5+
readme = "README.md"
6+
keywords = ["tui", "terminal", "widget"]
7+
classifiers = [
8+
"Development Status :: 2 - Pre-Alpha",
9+
"License :: OSI Approved :: MIT License",
10+
"Environment :: Console",
11+
"Intended Audience :: Developers",
12+
"Operating System :: MacOS",
13+
"Operating System :: POSIX :: Linux",
14+
"Programming Language :: Python",
15+
"Programming Language :: Python :: 3",
16+
"Programming Language :: Python :: 3 :: Only",
17+
"Programming Language :: Python :: 3.7",
18+
"Programming Language :: Python :: 3.8",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10"
21+
]
22+
requires-python = ">=3.7"
23+
dependencies = ["textual >= 0.1.18,< 0.2"]
24+
dynamic = ["version"]
25+
26+
[[project.authors]]
27+
author = "Tom Saunders"
28+
29+
30+
[project.urls]
31+
Source = "https://github.com/sirfuzzalot/textual-inputs"
32+
Documentation = "https://github.com/sirfuzzalot/textual-inputs"
33+
Tracker = "https://github.com/sirfuzzalot/textual-inputs/issues"
34+
135
[build-system]
236
requires = [
3-
"setuptools>=42",
37+
"setuptools>=61",
438
"wheel"
539
]
640
build-backend = "setuptools.build_meta"
741

42+
[tool.setuptools.dynamic]
43+
version = { attr = "textual_inputs.__version__" }
44+
845
[tool.black]
9-
exclude = 'venv'
46+
exclude = 'venv*'
1047

1148
[tool.isort]
1249
profile = "black"
1350
multi_line_output = 3
14-
skip = ["venv"]
51+
skip = ["venv*"]

setup.cfg

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/textual_inputs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from .integer_input import IntegerInput
22
from .text_input import TextInput
33

4-
__version__ = "0.2.5"
4+
__version__ = "0.2.6"
55

66
__all__ = ["IntegerInput", "TextInput"]

0 commit comments

Comments
 (0)