-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump: version bumped to 1.2.0 to allow fixes to setup.py for new READ…
…ME format
- Loading branch information
Showing
4 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.1.0 | ||
1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
###### | ||
v1.1.0 | ||
v1.2.0 | ||
###### | ||
|
||
2022-5-20 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ | |
|
||
from cvprac import __version__, __author__ | ||
|
||
|
||
def find_modules(pkg): | ||
''' Return all modules from the pkg | ||
''' | ||
|
@@ -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', | ||
|