Skip to content

Commit 713508d

Browse files
authored
Remove the Unicode characters from the help message (#12)
Running `nene --help` on Windows causes a crash due to the Unicode characters in the app name. For now, remove the Unicode to avoid crashes and add some CI tests to make sure it works. This may be a bug on click (pallets/click#2121).
1 parent 5b9cf7b commit 713508d

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/test.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,37 @@ jobs:
7878
run: python -m pip install `ls dist/*.whl`[jupyter]
7979

8080
- name: List installed packages
81-
run: pip freeze
81+
run: python -m pip freeze
82+
83+
- name: Try to import Nene
84+
run: python -c "import nene"
85+
86+
- name: Run the command line program (Bash)
87+
run: nene --help
88+
89+
- name: Run the command line program (Windows CMD)
90+
if: matrix.os == 'windows'
91+
run: nene --help
92+
shell: cmd
93+
94+
- name: Run the command line program (Powershell)
95+
if: matrix.os == 'windows'
96+
run: nene --help
97+
shell: pwsh
8298

8399
- name: Build the documentation
84100
run: cd doc && nene
101+
102+
- name: Build the documentation (Windows CMD)
103+
if: matrix.os == 'windows'
104+
run: |
105+
cd doc
106+
nene
107+
shell: cmd
108+
109+
- name: Build the documentation (Powershell)
110+
if: matrix.os == 'windows'
111+
run: |
112+
cd doc
113+
nene
114+
shell: pwsh

nene/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def make_console(verbose):
6969
@click.version_option()
7070
def main(config, serve, verbose):
7171
"""
72-
Nēnē: A no-frills static site generator.
72+
Nene: A no-frills static site generator.
7373
7474
Builds a static HTML website from sources, templates, and configuration
7575
found in the current directory.

0 commit comments

Comments
 (0)