Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pipenv #99

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -78,7 +78,7 @@ matrix:

# command to install dependencies
install:
- pip install -r requirements.txt
- make init

before_script:
- if [[ -n "$REPO" && -n "$BRANCH" ]]; then
Expand All @@ -91,7 +91,7 @@ script:
python3 -m kodi_addon_checker --branch=$BRANCH ../repo;
fi
- if [[ -z "$REPO" || -z "$BRANCH" ]]; then
py.test -v;
make test;
fi
- if [[ -z "$REPO" || -z "$BRANCH" ]]; then
pycodestyle . --max-line-length=120;
Expand Down
6 changes: 6 additions & 0 deletions Makefile
@@ -0,0 +1,6 @@
init:
pip install pipenv
pipenv install

test: init
pipenv run pytest tests/.
15 changes: 15 additions & 0 deletions Pipfile
@@ -0,0 +1,15 @@
[[source]]
url = "https://pypi.org/simple"
name = "pypi"
verify_ssl = true

[packages]
requests = "*"
radon = "*"
Pillow = "*"

[requires]
python_version = "3.5"

[dev-packages]

This comment was marked as spam.

pytest = "*"
230 changes: 230 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

5 changes: 1 addition & 4 deletions setup.py
Expand Up @@ -2,9 +2,6 @@
import setuptools


with open('requirements.txt') as f:
requirements = f.read().splitlines()

_ROOT = os.path.abspath(os.path.dirname(__file__))

with open(os.path.join(_ROOT, 'README.md')) as f:
Expand All @@ -20,7 +17,7 @@
url="https://github.com/xbmc/addon-check",
download_url="https://github.com/xbmc/addon-check/archive/master.zip",
packages=setuptools.find_packages(exclude=['script.test', 'tests*']),
install_requires=requirements,
install_requires=['pillow', 'requests', 'radon'],

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

setup_requires=['setuptools>=38.6.0'],
entry_points={'console_scripts': [
'kodi-addon-checker = kodi_addon_checker.__main__:main']},
Expand Down