forked from Juniper/py-junos-eznc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into close_exception
- Loading branch information
Showing
283 changed files
with
22,419 additions
and
6,648 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,6 +1,7 @@ | ||
[run] | ||
omit = | ||
lib/jnpr/junos/cfg/* | ||
lib/jnpr/junos/_version.py | ||
|
||
[report] | ||
show_missing = True |
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,10 +1,15 @@ | ||
/docs/* | ||
/tests/* | ||
/vagrant/* | ||
/docs | ||
/tests | ||
/vagrant | ||
/static | ||
INSTALL* | ||
COPYRIGHT | ||
LICENSE | ||
MANIFEST.md | ||
RELEASE-NOTES.md | ||
development.txt | ||
docreq.txt | ||
*.md | ||
*.txt | ||
!requirements.txt | ||
.coveragerc | ||
.gitignore | ||
.travis.yml | ||
MANIFEST.in | ||
env-setup.sh |
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 @@ | ||
lib/jnpr/junos/_version.py export-subst |
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,45 @@ | ||
name: Pylint | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
python-version: [3.7, 3.8] | ||
exclude: | ||
- os: windows-latest | ||
python-version: 3.8 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
pip install -r requirements.txt | ||
pip install -r development.txt | ||
pip install ntc_templates==1.4.1 | ||
pip install textfsm==0.4.1 | ||
pip install . | ||
- name: Run black tool | ||
run: | | ||
pip install -U black; | ||
black --check --exclude=docs/* . | ||
- name: Run unit tests | ||
run: | | ||
nosetests -v --with-coverage --cover-package=jnpr.junos --cover-inclusive -a unit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,31 @@ | ||
FROM alpine:3.6 | ||
|
||
LABEL MAINTAINER="Stephen Steiner <[email protected]>" | ||
FROM alpine:3.12 | ||
|
||
LABEL net.juniper.description="Junos PyEZ library for Python in a lightweight container." \ | ||
net.juniper.maintainer="Stephen Steiner <[email protected]>" | ||
|
||
RUN mkdir /source \ | ||
&& mkdir /scripts | ||
|
||
WORKDIR /source | ||
|
||
## Copy project inside the container | ||
ADD setup.py setup.py | ||
ADD requirements.txt requirements.txt | ||
ADD lib lib | ||
|
||
## Install dependancies and Pyez | ||
RUN apk update \ | ||
&& apk upgrade \ | ||
&& apk add build-base python-dev py-pip py-lxml \ | ||
ADD setup.* ./ | ||
ADD versioneer.py . | ||
ADD requirements.txt . | ||
ADD lib lib | ||
ADD entrypoint.sh /usr/local/bin/. | ||
|
||
## Install dependancies and PyEZ | ||
RUN apk add --no-cache build-base python3-dev py-lxml \ | ||
libxslt-dev libxml2-dev libffi-dev openssl-dev curl \ | ||
ca-certificates openssl wget \ | ||
&& update-ca-certificates \ | ||
&& pip install --upgrade pip setuptools \ | ||
ca-certificates py3-pip bash \ | ||
&& pip install -U pip \ | ||
&& pip install -r requirements.txt \ | ||
&& apk del -r --purge gcc make g++ \ | ||
&& python setup.py install \ | ||
&& ln -s /usr/bin/python3 /usr/bin/python \ | ||
&& pip install . \ | ||
&& rm -rf /source/* \ | ||
&& rm -rf /var/cache/apk/* | ||
&& chmod +x /usr/local/bin/entrypoint.sh | ||
|
||
WORKDIR /scripts | ||
|
||
VOLUME /scripts | ||
|
||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |
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
Oops, something went wrong.