Skip to content

Commit 5a2f807

Browse files
authored
Merge pull request #110 from cytopia/release-0.1.2
Release 0.1.2
2 parents 7794bac + de36764 commit 5a2f807

File tree

10 files changed

+93
-66
lines changed

10 files changed

+93
-66
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
## Unreleased
55

66

7+
## Release 0.1.2
8+
9+
### Fixes
10+
- Fixes: [#109](https://github.com/cytopia/pwncat/issues/109) when pasting in term I donot get full line echo
11+
12+
713
## Release 0.1.1
814

915
### Fixes

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ _code-pycodestyle:
151151
echo "# Check pycodestyle: $${V}"; \
152152
echo "# -------------------------------------------------------------------- #"
153153
@#
154+
docker pull cytopia/pycodestyle
154155
docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data --entrypoint= cytopia/pycodestyle sh -c ' \
155156
mkdir -p /tmp \
156157
&& cp $(BINPATH)$(BINNAME) /tmp/$(BINNAME).py \
@@ -163,6 +164,7 @@ _code-pydocstyle:
163164
echo "# Check pydocstyle: $${V}"; \
164165
echo "# -------------------------------------------------------------------- #"
165166
@#
167+
docker pull cytopia/pydocstyle
166168
docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data --entrypoint= cytopia/pydocstyle sh -c ' \
167169
mkdir -p /tmp \
168170
&& cp $(BINPATH)$(BINNAME) /tmp/$(BINNAME).py \
@@ -175,6 +177,7 @@ _code-pylint:
175177
echo "# Check pylint: $${V}"; \
176178
echo "# -------------------------------------------------------------------- #"
177179
@#
180+
docker pull cytopia/pylint
178181
docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data --entrypoint= cytopia/pylint sh -c ' \
179182
mkdir -p /tmp \
180183
&& cp $(BINPATH)$(BINNAME) /tmp/$(BINNAME).py \
@@ -187,6 +190,7 @@ _code-black:
187190
echo "# Check Python Black: $${V}"; \
188191
echo "# -------------------------------------------------------------------- #"
189192
@#
193+
docker pull cytopia/black
190194
docker run --rm $$(tty -s && echo "-it" || echo) -v ${PWD}:/data --entrypoint= cytopia/black sh -c ' \
191195
mkdir -p /tmp \
192196
&& cp $(BINPATH)$(BINNAME) /tmp/$(BINNAME).py \
@@ -199,6 +203,7 @@ _code-mypy:
199203
echo "# Check Mypy: $${V}"; \
200204
echo "# -------------------------------------------------------------------- #"
201205
@#
206+
docker pull cytopia/mypy
202207
docker run --rm $$(tty -s && echo "-it" || echo) -v ${PWD}:/data --entrypoint= cytopia/mypy sh -c ' \
203208
mkdir -p /tmp \
204209
&& cp $(BINPATH)$(BINNAME) /tmp/$(BINNAME).py \
@@ -499,6 +504,7 @@ docs: _docs-version_readme
499504

500505
.PHONY: _docs-man
501506
_docs-man: $(BINPATH)$(BINNAME)
507+
docker pull python:3-alpine
502508
docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data -w /data -e UID=$(UID) -e GID=${GID} python:3-alpine sh -c ' \
503509
apk add help2man \
504510
&& help2man -n $(BINNAME) --no-info --source=https://github.com/cytopia/pwncat -s 1 -o $(MANPATH)$(BINNAME).1 $(BINPATH)$(BINNAME) \
@@ -520,6 +526,7 @@ _docs-man: $(BINPATH)$(BINNAME)
520526
.PHONY: _docs-api
521527
_docs-api:
522528
@# Generate pdoc API page
529+
docker pull python:3-alpine
523530
docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data -w /data -e UID=$(UID) -e GID=${GID} python:3-alpine sh -c ' \
524531
pip install pdoc3 \
525532
&& mkdir -p /tmp \
@@ -531,6 +538,8 @@ _docs-api:
531538
.PHONY: _docs-mypy_type_coverage
532539
_docs-mypy_type_coverage:
533540
@# Generate mypy code coverage page
541+
docker pull cytopia/mypy
542+
docker pull python:3-alpine
534543
docker run --rm $$(tty -s && echo "-it" || echo) -v ${PWD}:/data -w /data -e UID=$(UID) -e GID=${GID} --entrypoint= cytopia/mypy sh -c ' \
535544
mypy --config-file setup.cfg --html-report tmp $(BINPATH)$(BINNAME) \
536545
&& cp -f tmp/mypy-html.css docs/css/mypy.css \

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
</tbody>
138138
</table>
139139

140-
> <sup>[1] <a href="https://cytopia.github.io/pwncat/pwncat.type.html">mypy type coverage</a> <strong>(fully typed: 93.96%)</strong></sup><br/>
140+
> <sup>[1] <a href="https://cytopia.github.io/pwncat/pwncat.type.html">mypy type coverage</a> <strong>(fully typed: 94.00%)</strong></sup><br/>
141141
> <sup>[2] <strong>Failing builds do not indicate broken functionality.</strong> Integration tests run for multiple hours and break sporadically for various different reasons (network timeouts, unknown cancellations of GitHub Actions, etc): <a href="https://github.com/actions/virtual-environments/issues/736">#735</a>, <a href="https://github.com/actions/virtual-environments/issues/841">#841</a></sup><br/>
142142
> <sup></sup>
143143
@@ -166,7 +166,7 @@ tool that works on older and newer machines (hence Python 2+3 compat). Most impo
166166

167167
## :tada: Install
168168

169-
Current version is: **0.1.1**
169+
Current version is: **0.1.2**
170170

171171
#### Generic
172172

bin/pwncat

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ if os.environ.get("MYPY_CHECK", False):
128128

129129
APPNAME = "pwncat"
130130
APPREPO = "https://github.com/cytopia/pwncat"
131-
VERSION = "0.1.1"
131+
VERSION = "0.1.2"
132132

133133
# Default timeout for timeout-based sys.stdin and socket.recv
134134
TIMEOUT_READ_STDIN = 0.05
@@ -3525,7 +3525,10 @@ class IOStdinStdout(IO):
35253525

35263526
# [2/3] (Linux/Mac) Raw mode
35273527
if self.__stdin_israw():
3528-
self.__set_input_timeout()
3528+
# Issue #109
3529+
# when pasting in term I donot get full line echo
3530+
# To mitigate this, I'm disabling the select.select call on sys.stdin
3531+
# self.__set_input_timeout()
35293532
if self.__py3:
35303533
return sys.stdin.buffer.read(1)
35313534
return sys.stdin.read(1) # type: ignore

docs/pwncat.api.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
6-
<meta name="generator" content="pdoc 0.9.2" />
6+
<meta name="generator" content="pdoc 0.10.0" />
77
<title>pwncat API documentation</title>
88
<meta name="description" content="pwncat." />
99
<link rel="preload stylesheet" as="style" href="https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css" integrity="sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=" crossorigin>
@@ -157,7 +157,7 @@ <h1 class="title">Module <code>pwncat</code></h1>
157157

158158
APPNAME = &#34;pwncat&#34;
159159
APPREPO = &#34;https://github.com/cytopia/pwncat&#34;
160-
VERSION = &#34;0.1.1&#34;
160+
VERSION = &#34;0.1.2&#34;
161161

162162
# Default timeout for timeout-based sys.stdin and socket.recv
163163
TIMEOUT_READ_STDIN = 0.05
@@ -3554,7 +3554,10 @@ <h1 class="title">Module <code>pwncat</code></h1>
35543554

35553555
# [2/3] (Linux/Mac) Raw mode
35563556
if self.__stdin_israw():
3557-
self.__set_input_timeout()
3557+
# Issue #109
3558+
# when pasting in term I donot get full line echo
3559+
# To mitigate this, I&#39;m disabling the select.select call on sys.stdin
3560+
# self.__set_input_timeout()
35583561
if self.__py3:
35593562
return sys.stdin.buffer.read(1)
35603563
return sys.stdin.read(1) # type: ignore
@@ -12672,7 +12675,10 @@ <h2 id="args">Args</h2>
1267212675

1267312676
# [2/3] (Linux/Mac) Raw mode
1267412677
if self.__stdin_israw():
12675-
self.__set_input_timeout()
12678+
# Issue #109
12679+
# when pasting in term I donot get full line echo
12680+
# To mitigate this, I&#39;m disabling the select.select call on sys.stdin
12681+
# self.__set_input_timeout()
1267612682
if self.__py3:
1267712683
return sys.stdin.buffer.read(1)
1267812684
return sys.stdin.read(1) # type: ignore
@@ -18108,7 +18114,7 @@ <h4><code><a title="pwncat.TransformSafeword" href="#pwncat.TransformSafeword">T
1810818114
</nav>
1810918115
</main>
1811018116
<footer id="footer">
18111-
<p>Generated by <a href="https://pdoc3.github.io/pdoc"><cite>pdoc</cite> 0.9.2</a>.</p>
18117+
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
1811218118
</footer>
1811318119
</body>
1811418120
</html>

0 commit comments

Comments
 (0)