16 Commits
Author SHA1 Message Date
Petr Klíma ae33f4cc40 bump to version 0.2.3 2020-10-28 13:09:32 +01:00
Petr Klíma 2d471af056 Merge pull request #19 from napalm-automation-community/0.2.2---bugfix---py23_compat
0.2.2 bugfix correctly remove py23 compat
2020-10-28 13:01:06 +01:00
Petr Klíma 34ac2e5d4c fully remove py23_compat 2020-10-28 12:56:34 +01:00
Petr Klíma 1ff7c2a090 get back from py23_compat
removing py2 support needs more work and testing
2020-10-28 12:40:36 +01:00
Petr Klíma 9d0995b3aa bump to version 0.2.2 2020-10-09 07:10:04 +00:00
Petr Klíma 9ffa4b058c PyPi publishing workflows 2020-10-09 07:08:08 +00:00
Petr Klíma 55a7d13531 Merge branch 'PIPpublishing' into develop 2020-10-09 07:05:57 +00:00
Petr Klíma bf489713a1 test pypi publish on master too 2020-10-09 07:04:44 +00:00
Petr Klíma 289b3bb184 Merge branch 'PIPpublishing' into develop 2020-10-09 06:49:14 +00:00
Petr Klíma dce581347c publish to PyPi.org on release creation 2020-10-09 06:47:38 +00:00
Petr Klíma 30490d89f5 deploy job divided to discrete steps for easier reading 2020-10-09 06:43:53 +00:00
Petr Klíma 906d22da3d descriptive name for workflow 2020-10-09 06:40:04 +00:00
Petr Klíma 04ad218156 Merge branch 'PIPpublishing' into develop 2020-10-09 06:33:16 +00:00
Petr Klíma e462abcc99 pypi complain about existing files ... 2020-10-09 06:31:41 +00:00
Petr Klíma 92634bfc16 Merge branch 'PIPpublishing' into develop 2020-10-09 06:10:48 +00:00
Petr Klíma b641ca5359 workflow for publishing to TESTpipi 2020-10-09 06:07:21 +00:00
4 changed files with 87 additions and 7 deletions

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Testing Upload Python Package to TEST.PyPi.org
on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Check
run: |
twine check dist/*
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.TWINE_TEST_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_TEST_PASSWORD }}
TWINE_REPOSITORY: ${{ secrets.TWINE_TEST_REPOSITORY }}
run: |
twine upload --verbose --non-interactive --disable-progress-bar --skip-existing dist/*
+37
View File
@@ -0,0 +1,37 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package to PyPi.org
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Check
run: |
twine check dist/*
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
TWINE_REPOSITORY: ${{ secrets.TWINE_REPOSITORY }}
run: |
twine upload --verbose --non-interactive --disable-progress-bar dist/*
+6 -6
View File
@@ -244,15 +244,15 @@ class S350Driver(NetworkDriver):
if not line:
continue
interface = line.split()[0]
interfaces.append(py23_compat.text_type(interface))
interfaces.append(str(interface))
return {
'fqdn': py23_compat.text_type(fqdn),
'hostname': py23_compat.text_type(hostname),
'fqdn':str(fqdn),
'hostname': str(hostname),
'interface_list': interfaces,
'model': py23_compat.text_type(model),
'os_version': py23_compat.text_type(os_version),
'serial_number': py23_compat.text_type(serial_number),
'model': str(model),
'os_version': str(os_version),
'serial_number': str(serial_number),
'uptime': uptime,
'vendor': u'Cisco',
}
+1 -1
View File
@@ -12,7 +12,7 @@ with open("README.md", "r") as fs:
setup(
name="napalm-s350",
version="0.2.1",
version="0.2.3",
packages=find_packages(exclude=("test*",)),
author="Jasper Lievisse Adriaanse, Petr Klíma",
author_email="j@jasper.la, qaxi@seznam.cz",