-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
63 additions
and
29 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Release procedure | ||
|
||
## Local install test | ||
|
||
``` | ||
python setup.py develop | ||
``` | ||
|
||
## Publish | ||
|
||
1. Enter to venv | ||
``` | ||
source ./venv/bin/activate | ||
``` | ||
2. Increase version in `napalm_h3c_comware/__init__.py` | ||
3. Add tag to release a new version | ||
``` | ||
git tag -a <version> -m <comment> | ||
``` | ||
4. Push to my github | ||
``` | ||
git push origin --tags | ||
``` | ||
5. Push to napalm-automation-community | ||
``` | ||
git push community --tags | ||
``` | ||
6. Build dist & upload to pypi.org | ||
``` | ||
python -m build | ||
python -m twine upload dist/* | ||
``` | ||
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
twine | ||
setuptools | ||
build | ||
-r requirements.txt |
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 |
---|---|---|
|
@@ -14,22 +14,22 @@ | |
__author__ = "Eric Wu <[email protected]>" | ||
|
||
# get version without importing | ||
with open("napalm_comware/__init__.py", "r") as f: | ||
with open("napalm_h3c_comware/__init__.py", "r") as f: | ||
VERSION = str(re.search('__version__ = "(.+?)"', f.read()).group(1)) | ||
|
||
|
||
setup( | ||
name="napalm-comware-ssh", | ||
name="napalm-h3c-comware", | ||
version=VERSION, | ||
author="Eric Wu", | ||
author_email="[email protected]", | ||
description="NAPALM driver for H3C/HPE Comware V7 network devices.", | ||
description="NAPALM driver for H3C Comware V7 network devices, over ssh.", | ||
license="Apache 2.0", | ||
long_description_content_type="text/markdown", | ||
long_description=long_description, | ||
url="https://github.com/xdai555/napalm-comware-ssh", | ||
url="https://github.com/napalm-automation-community/napalm-h3c-cw7-ssh/", | ||
project_urls={ | ||
"Bug Tracker": "https://github.com/xdai555/napalm-comware-ssh/issues", | ||
"Bug Tracker": "https://github.com/napalm-automation-community/napalm-h3c-cw7-ssh/issues", | ||
}, | ||
classifiers=[ | ||
"Topic :: Utilities", | ||
|