Skip to content

Commit

Permalink
Bump: version bumped to 1.2.0 to allow fixes to setup.py for new READ…
Browse files Browse the repository at this point in the history
…ME format
  • Loading branch information
mharista committed May 20, 2022
1 parent 63b3f43 commit ac62463
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.2.0
2 changes: 1 addition & 1 deletion cvprac/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
''' RESTful API Client class for Cloudvision(R) Portal
'''

__version__ = '1.1.0'
__version__ = '1.2.0'
__author__ = 'Arista Networks, Inc.'
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
######
v1.1.0
v1.2.0
######

2022-5-20
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

from cvprac import __version__, __author__


def find_modules(pkg):
''' Return all modules from the pkg
'''
Expand All @@ -51,24 +52,27 @@ def find_modules(pkg):
modules.append(path.join(dirname, subdirname))
return modules


def get_long_description():
''' Get the long description from README.rst if it exists.
Null string is returned if README.rst is non-existent
'''
long_description = ''
here = path.abspath(path.dirname(__file__))
try:
with io.open(path.join(here, 'README.rst'), encoding='utf-8') as file_hdl:
with io.open(path.join(here, 'README.md'), encoding='utf-8') as file_hdl:
long_description = file_hdl.read()
except IOError:
pass
return long_description


setup(
name='cvprac',
version=__version__,
description='Arista Cloudvision(R) Portal Rest API Client written in python',
long_description=get_long_description(),
long_description_content_type='text/markdown',
author=__author__,
author_email='[email protected]',
url='https://github.com/aristanetworks/cvprac',
Expand Down

0 comments on commit ac62463

Please sign in to comment.