release 2.0.0
This commit is contained in:
parent
4b5ad517b8
commit
1502cb2a95
4 changed files with 20 additions and 5 deletions
|
@ -256,9 +256,13 @@ class BufferDependentComponent(BorderedBox):
|
|||
|
||||
self.current_word_idx -= 1
|
||||
|
||||
while self.current_line > self.prefered_line or self.current_line == self.height:
|
||||
while (
|
||||
self.current_line > self.prefered_line or self.current_line == self.height
|
||||
):
|
||||
self.shift_lines_up()
|
||||
while (self.current_line < self.prefered_line or self.current_line < 0) and self.last_hidden_word > 0:
|
||||
while (
|
||||
self.current_line < self.prefered_line or self.current_line < 0
|
||||
) and self.last_hidden_word > 0:
|
||||
self.shift_lines_down()
|
||||
|
||||
self.update_cursor()
|
||||
|
@ -279,7 +283,12 @@ class BorderWithImprintedStats(BufferDependentComponent):
|
|||
def paint_stats(self):
|
||||
text = self.stats_template.format(stats=self.buffer.stats)
|
||||
if len(text) < self.width - 2:
|
||||
self.paint_text(self.stats_row, 2, text + " " * (self.width - 2 - len(text)), self.stats_color)
|
||||
self.paint_text(
|
||||
self.stats_row,
|
||||
2,
|
||||
text + " " * (self.width - 2 - len(text)),
|
||||
self.stats_color,
|
||||
)
|
||||
|
||||
|
||||
class TextBox(BorderWithImprintedStats):
|
||||
|
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
readchar
|
|
@ -1,5 +1,5 @@
|
|||
[bumpversion]
|
||||
current_version = 1.6.0
|
||||
current_version = 2.0.0
|
||||
|
||||
[wheel]
|
||||
universal = 1
|
||||
|
|
7
setup.py
7
setup.py
|
@ -3,9 +3,13 @@ from setuptools import find_packages, setup
|
|||
with open("README.md", "r", encoding="utf-8") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
with open("requirements.txt", "r", encoding="utf-8") as fh:
|
||||
requirements = fh.read().splitlines()
|
||||
|
||||
|
||||
setup(
|
||||
name="fasttyper",
|
||||
version="1.6.0",
|
||||
version="2.0.0",
|
||||
author="Piotr Domanski",
|
||||
author_email="pi.domanski@gmail.com",
|
||||
description="Minimalistic typing exercise",
|
||||
|
@ -19,6 +23,7 @@ setup(
|
|||
],
|
||||
packages=find_packages(),
|
||||
python_requires=">=3.6",
|
||||
install_requires=requirements,
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
"fasttyper=fasttyper.runner:runner",
|
||||
|
|
Loading…
Reference in a new issue