Skip to content

Commit

Permalink
Merge branch 'v0.2.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
damies13 committed Feb 24, 2023
2 parents 92557f4 + e569130 commit 7269604
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pyperfmon/pyperfmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions pypi_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}*
Expand Down
1 change: 1 addition & 0 deletions pypi_relese.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}*
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pyperfmon",
version="0.2",
version="0.2.1",
author="damies13",
author_email="[email protected]",
description="pyperfmon",
Expand Down

0 comments on commit 7269604

Please sign in to comment.