Skip to content

Commit e82b108

Browse files
authored
Merge pull request #3 from napalm-automation/package
Fixes for packaging
2 parents 505ebdc + be2e3bb commit e82b108

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

.travis.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ sudo: required
22

33
language: python
44
python:
5+
- 2.7
56
- 3.6
67
- 3.6
78

@@ -18,5 +19,15 @@ install:
1819
script:
1920
- tox
2021

22+
deploy:
23+
provider: pypi
24+
user: ogenstad
25+
password:
26+
secure: N1fnrXFMsJ4+uc5hNwSQv4tw7/BNV8Fd/IjTvIbxVocloDAwf7+mnwB6CTj2WrN3B9/2BLWtZj20tcxp7qD6zugWJt4RqnnqCjHAGq2qu2p3SqtHYJ1tCnoJzaNrnrj1Oklyi58dlIR5qv5495Ig+2ghOfg/lRELfZUjuDHoQv7e6E9olGtuDpQ7sqLW4emU/9+gdm6ebE7+V9nuHQA2JGpQcDpqvhbzokCkrn96Xfmvorw9g1fCR6Me0AcsbcMYuCbJJbPJ6iWEdc60PyetT7l68DFDtIIEev91exPUWDYiSQhLDREOoDtCaDyVwJPM4ZHPOgyDveKu02//CMBJMkmYwbm+SapJ9F7JOrQLORKlerTmpRg+pm2ZpzkUb13F545z1CNP+r0+GGWSuci+ALdG3stiFdLf7RF/xxZ5RzYNWyFw6yFt+yEMDHJbkv3yGRNjNK6pNLPlvAmmz76BINplk4NeKz0REffvnEF56MxjqUFr4WA6ieCGF00F+ECifW53cv38h7rP3DPmYSgY4YDAtXTblwkzMYCz8U0Ob4vJgIsPs6YpVN3/tCNI/21rdvYiSpP0wgKQvPt67KuFeVInaHTARjUK3/XZfd/qGNgkrl+TSWAvVvQlhkZTUlJqBvnt23PHnvy3qu5KiBwlu5l+hSUERNiqgBaA8cwd4nA=
27+
distributions: "sdist bdist_wheel"
28+
on:
29+
tags: true
30+
branch: master
31+
2132
after_success:
22-
- coveralls
33+
- coveralls

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ Installation
1212
============
1313

1414
```bash
15-
git clone https://github.com/napalm-automation/napalm-inspector
16-
cd napalm-inspector
17-
pip install .
15+
pip install napalm-inspector
1816
export FLASK_APP=napalm_inspector
1917
flask run
2018
```

setup.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
with open("requirements.txt", "r") as fs:
55
reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))]
66

7-
8-
__author__ = "Patrick Ogenstad <[email protected]>"
7+
with open("README.md", "r") as fs:
8+
long_description = fs.read()
99

1010
setup(
1111
name="napalm-inspector",
@@ -15,6 +15,8 @@
1515
author="Patrick Ogenstad",
1616
author_email="[email protected]",
1717
description="Web application to test NAPALM getters",
18+
long_description=long_description,
19+
long_description_content_type="text/markdown",
1820
classifiers=[
1921
"Topic :: Utilities",
2022
"Programming Language :: Python",

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tox]
22
envlist =
3+
py27
34
py36
45
black
56
pylama

0 commit comments

Comments
 (0)