Skip to content

Commit

Permalink
Increment version to 0.1.0 and publish
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danjagnow committed Jul 29, 2019
1 parent 8cd279d commit 3669a28
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion how_to_publish.txt
Original file line number Diff line number Diff line change
@@ -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)

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.
2 changes: 1 addition & 1 deletion orionsdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
from .swisclient import SwisClient


__version__ = "0.0.8"
__version__ = "0.1.0"
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']),
Expand Down

0 comments on commit 3669a28

Please sign in to comment.