Skip to content

Commit

Permalink
Merge pull request #1 from idealista/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
dortegau authored Aug 23, 2017
2 parents 42a0049 + 38c7afe commit 9d5b0fa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,7 @@ ENV/
/site

# mypy
.mypy_cache/
.mypy_cache/

# pypi config file
.pypirc
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include README.md
include LICENSE
include requirements.txt
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ Newer versions of _Prometheus/Python/pip_ should work but could also present iss

### Installing

prom2teams could be installed using pip:
prom2teams is present on (PyPI)[https://pypi.python.org/pypi/prom2teams], so could be installed using pip3:

```bash
$ pip install prom2teams
$ pip3 install prom2teams
```

## Usage
Expand Down
12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,26 @@ def read_requirements_file():


with open('README.md') as f:
readme = f.read()
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError) as error:
readme = open('README.md').read()


with open('LICENSE') as f:
license = f.read()


setup(name='prom2teams',
version='1.0',
version='1.0.0',
description='Project that redirects Prometheus Alert Manager '
'notifications to Microsoft Teams',
long_description=readme,
install_requires=read_requirements_file(),
setup_requires=[
'flake8'
'flake8',
'pypandoc'
],
scripts=['bin/prom2teams'],
url='http://github.com/idealista/prom2teams',
Expand Down

0 comments on commit 9d5b0fa

Please sign in to comment.