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']),