Skip to content

Commit 5ca04e0

Browse files
authored
Merge pull request #19 from claui/redport
Sync upstream template using Redport
2 parents 7511176 + 85a71af commit 5ca04e0

File tree

7 files changed

+26
-14
lines changed

7 files changed

+26
-14
lines changed

.redport/manifest.rpt.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"upstream": {
33
"type": "cookiecutter-template",
44
"source": "https://github.com/claui/cookiecutter-python-package.git",
5-
"commit": "d9f839e34864cbd0c38f9bfd53e9d81aa1c2a2d1",
5+
"commit": "3ab6969a03cfa353e1f520522b02ad69f4cdc08b",
66
"replay": "cookiecutter_replay/cookiecutter-python-package.json",
77
"patches": [
88
"patches/disable-install-step.patch"

.redport/patches/disable-install-step.patch

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py
2-
index c3d1ed6..1c071ce 100644
2+
index d40d99c..d1241e2 100644
33
--- a/hooks/post_gen_project.py
44
+++ b/hooks/post_gen_project.py
5-
@@ -1,76 +1,2 @@
5+
@@ -1,24 +1,5 @@
66
-import logging
7-
-import os
7+
import os
88
-from pathlib import Path, PurePath
99
import shutil
1010
-import subprocess
@@ -24,8 +24,13 @@ index c3d1ed6..1c071ce 100644
2424
- (PurePath(config_dict['replay_dir']) / template_name).with_suffix('.json'),
2525
- target_replay_path,
2626
-)
27-
-
27+
2828
shutil.rmtree('licenses')
29+
30+
@@ -28,56 +9,3 @@ os.remove('{{ cookiecutter.project_slug }}/__main__.py')
31+
os.remove('{{ cookiecutter.project_slug }}/cli.py')
32+
os.remove('{{ cookiecutter.project_slug }}/fire_workarounds.py')
33+
{% endif -%}
2934
-
3035
-{%- if cookiecutter.install_dependencies_now == "y" %}
3136
-def sysexit_formatted(message: str) -> None:

.vscode/settings.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"editor.formatOnSave": false
66
},
77
"[python]": {
8-
"editor.defaultFormatter": "charliermarsh.ruff",
9-
"editor.formatOnSave": true
8+
"editor.defaultFormatter": "charliermarsh.ruff"
109
},
1110
"[toml]": {
1211
"editor.defaultFormatter": "tamasfe.even-better-toml",

CONTRIBUTING.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ the exact Python version required by Itchcraft,
1717
regardless of your system Python.
1818

1919
To install `pyenv` on Linux or WSL2, first make sure Python 3 is
20-
installed. Then follow the *Basic GitHub Checkout* method described
20+
installed. Then follow the _Basic GitHub Checkout_ method described
2121
at [github.com/pyenv/pyenv](https://github.com/pyenv/pyenv#basic-github-checkout).
2222

2323
#### Checking your system-wide pyenv installation
@@ -135,12 +135,18 @@ act
135135

136136
### Generating project documentation
137137

138-
To generate project documentation and open it in your browser, run:
138+
To generate project documentation, run:
139139

140140
```shell
141141
poetry run poe doc
142142
```
143143

144+
To open the generated documentation with `man`, run:
145+
146+
```shell
147+
poetry run poe man
148+
```
149+
144150
## Maintenance
145151

146152
### Refreshing dependencies

USAGE.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ The default is `sensitive`, the safer setting of the two.
5959

6060
Itchcraft supports the following environment variable:
6161

62-
`DEBUG`
62+
`ITCHCRAFT_DEBUG`
6363
: If set to a non-zero value, causes Itchcraft to enable debug-level
64-
: logging. Also decreases some retry counters and prints stack traces
65-
: for errors where it normally wouldn’t.
64+
: logging.
65+
: Also decreases some retry counters and prints stack traces for errors
66+
: where it normally would not.
6667

6768
# Monitoring the bite healer’s state once activated
6869

doc/sphinx/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

99
project = 'Itchcraft'
10+
executable_name = 'itchcraft'
1011
author = 'Claudia Pellegrino <[email protected]>'
1112
description = 'Tech demo for interfacing with heat-based USB insect bite healers'
1213

@@ -30,7 +31,7 @@
3031

3132
man_pages = [(
3233
'index',
33-
project.lower(),
34+
executable_name,
3435
description,
3536
[author],
3637
1,

itchcraft/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
PACKAGE_ROOT = Path(__file__).parent.absolute()
88
PYPROJECT_TOML = PROJECT_ROOT / 'pyproject.toml'
99

10-
debugMode = bool(os.getenv('DEBUG'))
10+
debugMode = bool(os.getenv('ITCHCRAFT_DEBUG'))

0 commit comments

Comments
 (0)