Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3669a28

Browse files
committed
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.
1 parent 8cd279d commit 3669a28

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

how_to_publish.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Requires twine (pip install twine)
2+
13
1. Increment build number in setup.py and orionsdk/__init__.py
24
2. Run: python setup.py publish
3-
3. Submit changes (from step 1)
5+
6+
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.

orionsdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
from .swisclient import SwisClient
1616

1717

18-
__version__ = "0.0.8"
18+
__version__ = "0.1.0"

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55
from setuptools import setup, find_packages
66

77
if sys.argv[-1] == 'publish':
8-
os.system('python setup.py sdist upload')
8+
os.system('python setup.py sdist')
9+
os.system('twine upload dist/*')
910
sys.exit()
1011

1112
setup(
1213
name="orionsdk",
13-
version="0.0.8", # Update also in __init__ ;
14+
version="0.1.0", # Update also in __init__ ;
1415
description="Python API for the SolarWinds Orion SDK",
1516
long_description="Python client for interacting with the SolarWinds Orion API",
1617
author="SolarWinds",
17-
author_email="tim.danner@solarwinds.com",
18+
author_email="dan.jagnow@solarwinds.com",
1819
url='http://github.com/solarwinds/orionsdk-python',
1920
license='https://github.com/solarwinds/orionsdk-python/blob/master/LICENSE',
2021
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),

0 commit comments

Comments
 (0)