From 3669a28894acf64d3cf45330d8f7ed76b3611f81 Mon Sep 17 00:00:00 2001 From: Dan Jagnow Date: Mon, 29 Jul 2019 13:21:34 -0500 Subject: [PATCH] Increment version to 0.1.0 and publish Incremented the version to 0.1.0 and updated the author email. Changed setup.py to use twine for the upload to PyPI. Updated the notes in how_to_publish.txt accordingly. --- how_to_publish.txt | 5 ++++- orionsdk/__init__.py | 2 +- setup.py | 7 ++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/how_to_publish.txt b/how_to_publish.txt index 4085cf5..b699a92 100644 --- a/how_to_publish.txt +++ b/how_to_publish.txt @@ -1,3 +1,6 @@ +Requires twine (pip install twine) + 1. Increment build number in setup.py and orionsdk/__init__.py 2. Run: python setup.py publish -3. Submit changes (from step 1) \ No newline at end of file + +Step 2 creates a source distribution in the dist folder, then uses twine to upload to pypi.org. You will be prompted for the user name and password. diff --git a/orionsdk/__init__.py b/orionsdk/__init__.py index d815ce0..ddd68da 100644 --- a/orionsdk/__init__.py +++ b/orionsdk/__init__.py @@ -15,4 +15,4 @@ from .swisclient import SwisClient -__version__ = "0.0.8" +__version__ = "0.1.0" diff --git a/setup.py b/setup.py index f66f2c0..c88ad84 100644 --- a/setup.py +++ b/setup.py @@ -5,16 +5,17 @@ from setuptools import setup, find_packages if sys.argv[-1] == 'publish': - os.system('python setup.py sdist upload') + os.system('python setup.py sdist') + os.system('twine upload dist/*') sys.exit() setup( name="orionsdk", - version="0.0.8", # Update also in __init__ ; + version="0.1.0", # Update also in __init__ ; description="Python API for the SolarWinds Orion SDK", long_description="Python client for interacting with the SolarWinds Orion API", author="SolarWinds", - author_email="tim.danner@solarwinds.com", + author_email="dan.jagnow@solarwinds.com", url='http://github.com/solarwinds/orionsdk-python', license='https://github.com/solarwinds/orionsdk-python/blob/master/LICENSE', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),