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

stripe-python 2.0.0 #386

Merged
merged 7 commits into from
Jul 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
source = stripe
omit =
stripe/six.py
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
exclude =
six.py
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.tox/
.coverage
.cache
.pytest_cache
nosetests.xml
coverage.xml
htmlcov/
28 changes: 5 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ sudo: false
language: python

python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
Expand All @@ -14,22 +12,14 @@ python:
- "pypy3"

cache:
apt: true
directories:
- stripe-mock
pip: false

env:
global:
- PYCURL_SSL_LIBRARY=gnutls
- STRIPE_MOCK_VERSION=0.19.0

addons:
apt:
packages:
- libcurl4-gnutls-dev
- librtmp-dev

before_install:
# Unpack and start stripe-mock so that the test suite can talk to it
- |
Expand All @@ -43,20 +33,12 @@ before_install:
STRIPE_MOCK_PID=$!

install:
- pip install -U setuptools pip
- pip install unittest2 mock pycurl flake8 tox-travis coveralls
- python setup.py clean --all
- python setup.py install
- pip install --upgrade pipenv
- pipenv install --dev

script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then flake8 stripe tests; fi
- python -W all -bb -W error::BytesWarning -m coverage.__main__ run setup.py test
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then make lint; fi
- make ci

after_success:
coveralls

matrix:
allow_failures:
- python: 3.7-dev
- python: pypy
- python: pypy3
make coveralls
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"python.linting.flake8Enabled": true,

// Tests
"python.unitTest.unittestEnabled": true,
"python.unitTest.pyTestEnabled": false,
"python.unitTest.unittestEnabled": false,
"python.unitTest.pyTestEnabled": true,
"python.unitTest.nosetestsEnabled": false
}
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include CHANGELOG.md LICENSE LONG_DESCRIPTION.rst README.md VERSION tox.ini
include .coveragerc .flake8 CHANGELOG.md LICENSE LONG_DESCRIPTION.rst README.md VERSION pytest.ini tox.ini
recursive-include tests *.py
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
test:
pipenv run detox

ci:
pipenv run pytest --cov=stripe -n 8

coveralls:
pipenv run coveralls

lint:
pipenv run tox -e lint
27 changes: 27 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"


[packages]

"stripe" = {path = ".", editable = true}


[dev-packages]

pytest = ">=3.4"
pytest-mock = ">=1.7"
pytest-xdist = ">=1.22"
pytest-cov = ">=2.5"
tox = "*"
detox = "*"
"flake8" = "*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does "flake8" need to be quoted?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question! I'm not entirely sure why pipenv wraps some package names in quotes, but I figure it knows what it's doing :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't need to be quoted (source: https://github.com/toml-lang/toml#keys), but pipenv's toml library (prettytoml) is a bit overzealous and quotes any package name with a digit in it.

coveralls = "*"


[requires]

python_version = "3.7"
Loading