From 03fa75de3010b7f94bea563ae84c0447736d013b Mon Sep 17 00:00:00 2001 From: damies13 Date: Sat, 25 Feb 2023 01:18:47 +1000 Subject: [PATCH 1/4] whl file had wrong files hopefully this will fix it --- pypi_dev.sh | 1 + pypi_relese.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/pypi_dev.sh b/pypi_dev.sh index fed1d31..2a44f6d 100755 --- a/pypi_dev.sh +++ b/pypi_dev.sh @@ -31,6 +31,7 @@ if [[ "$currversion" =~ v[0-9]\. ]]; then sed -i -e "s/# Version .*/# Version ${version}/" $(find . -name "*.py") rm -R dist/ + rm -R build/ python3 setup*.py sdist bdist_wheel python3 -m twine upload --repository testpypi dist/*${version}* diff --git a/pypi_relese.sh b/pypi_relese.sh index d15c130..3ebc453 100755 --- a/pypi_relese.sh +++ b/pypi_relese.sh @@ -35,6 +35,7 @@ if [[ "$currversion" =~ v[0-9]\. ]]; then # git push rm -R dist/ + rm -R build/ python3 setup*.py sdist bdist_wheel python3 -m twine upload dist/*${version}* From 05b8cab213eeba8583ff1c47dd2868ed0810f207 Mon Sep 17 00:00:00 2001 From: damies13 Date: Sat, 25 Feb 2023 01:19:01 +1000 Subject: [PATCH 2/4] Version 0.2.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0a3630a..82f3c9b 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="pyperfmon", - version="0.2", + version="0.2.1", author="damies13", author_email="damies13+pyperfmon@gmail.com", description="pyperfmon", From 04aa71de20ca06680bc76d23e4405a7db700d369 Mon Sep 17 00:00:00 2001 From: damies13 Date: Sat, 25 Feb 2023 01:22:38 +1000 Subject: [PATCH 3/4] __version__ --- pyperfmon/pyperfmon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyperfmon/pyperfmon.py b/pyperfmon/pyperfmon.py index 322d8f4..259c698 100644 --- a/pyperfmon/pyperfmon.py +++ b/pyperfmon/pyperfmon.py @@ -9,6 +9,10 @@ class pyperfmon(): connections = {} + version="0.2" + + def __version__(self) + return self.version def _loadPerfObjects(self, alias="localhost"): connection = self.connections[alias]["connection"] @@ -83,7 +87,7 @@ def getCounter(self, counterpath="None", machinename="localhost"): return (counterpath, value) except Exception as e: return (counterpath, e) - + def getCounterObjects(self, machinename="localhost"): alias = machinename.lower() if alias not in self.connections: From e569130900e156a582b13909b19456b79ceb9cd9 Mon Sep 17 00:00:00 2001 From: damies13 Date: Sat, 25 Feb 2023 01:22:55 +1000 Subject: [PATCH 4/4] Version 0.2.1 --- pyperfmon/pyperfmon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyperfmon/pyperfmon.py b/pyperfmon/pyperfmon.py index 259c698..7698a15 100644 --- a/pyperfmon/pyperfmon.py +++ b/pyperfmon/pyperfmon.py @@ -9,7 +9,7 @@ class pyperfmon(): connections = {} - version="0.2" + version="0.2.1" def __version__(self) return self.version