Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0a4bdbced | ||
|
|
adbae0074c | ||
|
|
fb0ef3d8f6 | ||
|
|
881a2db9dc |
@@ -17,10 +17,10 @@ repos:
|
|||||||
args: ["--profile", "black", "--filter-files"]
|
args: ["--profile", "black", "--filter-files"]
|
||||||
|
|
||||||
# Flake8
|
# Flake8
|
||||||
#- repo: https://github.com/pycqa/flake8
|
- repo: https://github.com/pycqa/flake8
|
||||||
# rev: '7.0.0'
|
rev: '7.0.0'
|
||||||
# hooks:
|
hooks:
|
||||||
# - id: flake8
|
- id: flake8
|
||||||
|
|
||||||
# Black
|
# Black
|
||||||
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
|
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ EOF
|
|||||||
|
|
||||||
Clone the repo:
|
Clone the repo:
|
||||||
```commandline
|
```commandline
|
||||||
git clone https://git-mirror.zavage.net/zavage-software/app_skellington.git
|
git clone https://git-repos.zavage.net/zavage-software/app_skellington.git
|
||||||
```
|
```
|
||||||
|
|
||||||
Install pre-commit hooks:
|
Install pre-commit hooks:
|
||||||
@@ -110,6 +110,24 @@ isort app_skellington
|
|||||||
flake8 app_skellington
|
flake8 app_skellington
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Publish:
|
||||||
|
|
||||||
|
```
|
||||||
|
# Push latest commit, or on commit ready to publish:
|
||||||
|
git push
|
||||||
|
|
||||||
|
# Create a tag with the desired version number and push:
|
||||||
|
git tag -a v0.2.0 -m "0.2.0 provides modern pyproject.toml build with setuptools, versioning, and publishing"
|
||||||
|
git push origin v0.2.0
|
||||||
|
|
||||||
|
# Build the wheel:
|
||||||
|
python -m build
|
||||||
|
|
||||||
|
# Publish to pypi:
|
||||||
|
twine check dist/*
|
||||||
|
twine upload dist/*
|
||||||
|
```
|
||||||
|
* Reference https://packaging.python.org/en/latest/overview/
|
||||||
|
|
||||||
|
|
||||||
# Version
|
# Version
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ class CommandTree:
|
|||||||
|
|
||||||
registered_name = cmd_name
|
registered_name = cmd_name
|
||||||
_bootstrap_logger.info("registered command: %s", registered_name)
|
_bootstrap_logger.info("registered command: %s", registered_name)
|
||||||
# end copy-paste then editted from SubMenu.register_command
|
# end copy-paste then edited from SubMenu.register_command
|
||||||
|
|
||||||
self._cmd_tree_is_single_command = True
|
self._cmd_tree_is_single_command = True
|
||||||
self._single_command = cmd
|
self._single_command = cmd
|
||||||
|
|||||||
Reference in New Issue
Block a user