Skip to content

Commit

Permalink
Deployed first instance of project
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Derner committed Nov 30, 2024
1 parent bcf5eb0 commit f4d1168
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 7 deletions.
19 changes: 19 additions & 0 deletions DEPLOY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# How to deploy new package version

## 1. Tag new version
* Update [`pyproject.toml`](./pyproject.toml) with new version
* Merge work to main branch
* Create [new release on GitHub](https://github.com/Max-Derner/colour_fx/releases/new)

## 2. Create new distribution
* Run `python3 -m build`
**N.B.** Never run build unless you are sure you have changed the version in `pyproject.toml`

## 3. Upload to [test PyPI](https://test.pypi.org/)
* `python3 -m twine upload --repository testpypi dist/*`

## 4. Test download
* `python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps colour_fx`

## 4. Upload to [PyPI](https://pypi.org)
* `twine upload dist/*`
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Testing and linting](https://github.com/Max-Derner/colour_effects/actions/workflows/python-testing.yml/badge.svg?branch=main)](https://github.com/Max-Derner/colour_effects/actions/workflows/python-testing.yml)


![promo image](./README_IMGS/promo_img.png)
![promo image](https://github.com/Max-Derner/colour_fx/blob/main/README_IMGS/promo_img.png?raw=true)

This a project to develop a Python PyPI package that not just handles colour text output but can also apply colour effects such as gradients to your text.

Expand Down Expand Up @@ -46,7 +46,7 @@ RESET = compile_ansi_code()

print(F"HELLO, {blinking_red_on_yellow}WORLD{RESET}!")
```
![Colour example output](./README_IMGS/Colour-example-output.gif)
![Colour example output](https://github.com/Max-Derner/colour_fx/blob/main/README_IMGS/Colour-example-output.gif?raw=true)

## 8 bit examples

Expand All @@ -72,7 +72,7 @@ RESET = compile_ansi_code()
print(F"HELLO, {red_on_yellow}WORLD{RESET}!")
```
#### output
![SipleColour example output](./README_IMGS/SimpleColour-example-output.png)
![SipleColour example output](https://github.com/Max-Derner/colour_fx/blob/main//README_IMGS/SimpleColour-example-output.png?raw=true)

### `Grey`
```python
Expand Down Expand Up @@ -121,7 +121,7 @@ print(
)
```
#### output
![Grey example output](./README_IMGS/Grey-example-output.png)
![Grey example output](https://github.com/Max-Derner/colour_fx/blob/main/README_IMGS/Grey-example-output.png?raw=true)

### `RGB`
```python
Expand Down Expand Up @@ -157,7 +157,7 @@ print(F"{s[0]}HE{s[1]}LL{s[2]}O,{s[3]} WO{s[4]}RL{s[5]}D!{RESET}")
```

#### output
![RGB output](./README_IMGS/RGB-example-output.png)
![RGB output](https://github.com/Max-Derner/colour_fx/blob/main/README_IMGS/RGB-example-output.png?raw=true)


# Getting advanced
Expand Down Expand Up @@ -204,7 +204,7 @@ output_text = apply_ansi_field(
print(output_text)
```
#### output
![vertical gradient example output](./README_IMGS/vertical-gradient-example-output.png)
![vertical gradient example output](https://github.com/Max-Derner/colour_fx/blob/main/README_IMGS/vertical-gradient-example-output.png?raw=true)


# Working on this?
Expand Down
4 changes: 3 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pytest~=8.3
flake8~=7.1
pytest-cov~=6.0
pytest-cov~=6.0
build~=1.2
twine~=5.1
Binary file added dist/colour_fx-1.0.1-py3-none-any.whl
Binary file not shown.
Binary file added dist/colour_fx-1.0.1.tar.gz
Binary file not shown.
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "colour_fx"
version = "1.0.1"
authors = [
{ name="Max Derner", email="[email protected]" },
]
description = "Colour handling through 4 bit and 8 bit ANSI escape sequences. Powerful effects like gradients for blocks of text such as figlet banners."
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

[project.urls]
Homepage = "https://github.com/Max-Derner/colour_fx"
Issues = "https://github.com/Max-Derner/colour_fx/issues"

0 comments on commit f4d1168

Please sign in to comment.