Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new distribution v2.0.0 #11

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@
## 1. Tag new version
* Update [`pyproject.toml`](./pyproject.toml) with new version
* Commit work
* Tag version `git tag -a v<VERSION>`
* Merge work to main branch
* Create [new release on GitHub](https://github.com/Max-Derner/colour_fx/releases/new) with same version

## 2. Create new distribution
* Run `python3 -m build`
* Run `python -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/*`
* `python -m twine upload --repository testpypi dist/colour_fx-<version>*`

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

## 5. Complete merge
* commit new distributions
* Tag version `git tag -a v<VERSION>`
* Merge work to main branch
* Create [new release on GitHub](https://github.com/Max-Derner/colour_fx/releases/new) with same version

## 4. Upload to [PyPI](https://pypi.org)
* `twine upload dist/*`
## 6. Upload to [PyPI](https://pypi.org)
* `twine upload dist/colour_fx-<version>*`
Binary file added dist/colour_fx-2.0.0-py3-none-any.whl
Binary file not shown.
Binary file added dist/colour_fx-2.0.0.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "colour_fx"
version = "2.0.1"
version = "2.0.0"
authors = [
{ name="Max Derner", email="[email protected]" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/colour_fx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ def compile_ansi_code(*ansi_vals: ansi_val) -> ansi_code:
print(F"Hello {flashy_red}WORLD{reset}!!!")
```"""
ansi_vals = ansi_vals or ('0', )
return CSI + ';'.join(ansi_vals) + SGR
return CSI + ';'.join(ansi_vals) + SGR
Loading