Skip to content

Commit

Permalink
Refactor to use pipenv (#22)
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Devenney <brendan.devenney@cloudreach.com>
  • Loading branch information
devenney committed Jun 7, 2018
1 parent be02568 commit f9edc9d
Show file tree
Hide file tree
Showing 8 changed files with 747 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### node.js ###
node_modules/

### pytest ###
**/.pytest_cache

Expand Down
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
language: python
cache:
- "pip"
- "yarn"
python:
- "3.6"
install:
- "pip install coveralls nose2 prospector"
- "pip install -r requirements.txt"
- "pip install pipenv"
- "pipenv install --dev"
- "pipenv run yarn install"
script:
- "prospector"
- "nose2 --with-coverage"
- "pipenv check"
- "pipenv run prospector"
- "pipenv run nose2 --with-coverage"
after_success:
- "coveralls"
- "pipenv run coveralls"
16 changes: 16 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[dev-packages]
coveralls = "*"
nose2 = "*"
prospector = "*"

[packages]
dice = "==2.2.0"
requests = "==2.18.4"

[requires]
python_version = "3.6"
365 changes: 365 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

[![Build Status](https://travis-ci.org/oneirism/dicebot.svg?branch=master)](https://travis-ci.org/oneirism/dicebot)
[![Test Coverage](https://coveralls.io/repos/github/oneirism/dicebot/badge.svg?branch=master)](https://coveralls.io/github/oneirism/dicebot?branch=master)
[![Known Vulnerabilities](https://snyk.io/test/github/oneirism/dicebot/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/oneirism/dicebot?targetFile=requirements.txt)
[![Known Vulnerabilities](https://snyk.io/test/github/oneirism/dicebot/badge.svg?targetFile=package.json)](https://snyk.io/test/github/oneirism/dicebot?targetFile=package.json)
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "dicebot",
"version": "1.0.1",
"description": "Polyhedral Telegram Bot",
"repository": "https://github.com/oneirism/dicebot",
"author": "Brendan Devenney <brendan@devenney.io>",
"license": "MIT",
"dependencies": {
"serverless-domain-manager": "^2.4.0",
"serverless-python-requirements": "^4.0.4"
}
}
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

0 comments on commit f9edc9d

Please sign in to comment.