diff --git a/pyperfmon/pyperfmon.py b/pyperfmon/pyperfmon.py index 322d8f4..7698a15 100644 --- a/pyperfmon/pyperfmon.py +++ b/pyperfmon/pyperfmon.py @@ -9,6 +9,10 @@ class pyperfmon(): connections = {} + version="0.2.1" + + 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: 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}* 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",