From 710343b39a3483ffda8c6ccedaf98320886d8e48 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Thu, 15 Aug 2019 21:42:57 +0200 Subject: :construction: Fix stupid error, new version --- .gitignore | 2 ++ TermIO/__init__.py | 6 +++--- bin/build.sh | 10 ++++++++++ setup.py | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100755 bin/build.sh diff --git a/.gitignore b/.gitignore index 366c1e2..53162e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ __pycache__ .pyc +build/ +dist/ diff --git a/TermIO/__init__.py b/TermIO/__init__.py index fef84d4..6933dbe 100644 --- a/TermIO/__init__.py +++ b/TermIO/__init__.py @@ -9,15 +9,15 @@ class TermSizeSkeleton: self.Update() def Update(self): - self.Rows, self.Columns = map(int, os.popen('stty size', 'r').read().split()) + self.RowsInt, self.ColumnsInt = map(int, os.popen('stty size', 'r').read().split()) def Rows(self, Update=True): if Update: self.Update() - return self.Rows + return self.RowsInt def Columns(self, Update=True): if Update: self.Update() - return self.Rows + return self.RowsInt TermSize = TermSizeSkeleton() diff --git a/bin/build.sh b/bin/build.sh new file mode 100755 index 0000000..e9faf30 --- /dev/null +++ b/bin/build.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +printf "> Create source distribution\n" +python3 setup.py sdist bdist_wheel + +printf "> Upload to PyPI\n" +python3 -m twine upload dist/* + +printf "> Install updated binary\n" +sudo pip3 install TermIO --upgrade diff --git a/setup.py b/setup.py index e3a476a..ebf3bf0 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open("README.md", "r") as fh: setuptools.setup( name='TermIO', - version='0.1.3', + version='0.1.4', scripts=[], author="jakobst1n", author_email="jakob.stendahl@outlook.com", -- cgit v1.2.3