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

Merge master #118

Merged
merged 21 commits into from
Aug 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
684fa88
Fix get_form_kwargs example in connect docs
alasdairnicol May 1, 2018
980a1a4
Make sure the customer has no plan nor is charged
heliodor May 4, 2018
9af8c21
CircleCI: do not use unversioned cache
blueyed May 7, 2018
10392ee
Update django-ipware requirement
mcastle May 4, 2018
1b224f3
tox: use psycopg2-binary for postgres factor
blueyed May 7, 2018
9ba2769
Merge pull request #566 from blueyed/psycopg2-binary
paltman May 19, 2018
71ae9d7
Merge pull request #565 from blueyed/cache
paltman May 19, 2018
810d606
Merge pull request #564 from heliodor/patch-1
paltman May 19, 2018
893572e
Merge pull request #561 from alasdairnicol/patch-1
paltman May 19, 2018
aab7a18
Support stripe-python 2.0
blueyed Jul 11, 2018
e72ceac
Merge branch 'master' into stripe20-upstream
paltman Aug 4, 2018
2681cc5
Ignore pipenv files
paltman Aug 4, 2018
946e4d7
Start with fresh cache to trigger fresh install of deps
paltman Aug 4, 2018
bb25a05
Pin stripe to <2.0
paltman Aug 4, 2018
4c0922d
Only need a hotfix bump as this is really just a packaging tweak
paltman Aug 4, 2018
6ffb802
Merge pull request #580 from pinax/pin-stripe
paltman Aug 4, 2018
a236d0c
Merge pull request #574 from blueyed/stripe20-upstream
paltman Aug 4, 2018
4a3d19e
Pin to greater than 2.0 for python-stripe
paltman Aug 4, 2018
da4f8c0
Add link to PR in release notes
paltman Aug 4, 2018
06c2ec8
Merge pull request #581 from pinax/stripe-2.0
paltman Aug 4, 2018
6249b28
Merge remote-tracking branch 'origin/master' into merge-master
blueyed Aug 28, 2018
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
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ common: &common
- checkout
- restore_cache:
keys:
- v2-deps-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- v2-deps-
- v3-deps-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- run:
name: install dependencies
command: pip install --user tox
Expand All @@ -29,7 +28,7 @@ common: &common
- ~/.cache/pip
- ~/.local
- ./eggs
key: v2-deps-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
key: v3-deps-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}

jobs:
lint:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.DS_Store
Pipfile
Pipfile.lock

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
10 changes: 10 additions & 0 deletions docs/about/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release Notes

## 4.4.0 - 2018-08-04

* Pin `python-stripe` to `>2.0` after the merge of [PR 574](https://github.com/pinax/pinax-stripe/pull/574) which fixed compatibility. [PR 581](https://github.com/pinax/pinax-stripe/pull/581)


## 4.3.1 - 2018-08-04

* Pin `python-stripe` to `<2.0` as that major release broke things in `pinax-stripe` [PR 580](https://github.com/pinax/pinax-stripe/pull/580)


## 3.4.1 - 2017-04-21

This fixes a bug that was introduced in `3.4.0` with customer creation taking a `quantity` parameter.
Expand Down
8 changes: 3 additions & 5 deletions docs/user-guide/connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,10 @@ class CreateCustomAccountView(FormView):
form_class = InitialCustomAccountForm
template_name = '<path to your template>'

def get_form_kwargs(self, *args, **kwargs):
def get_form_kwargs(self):
form_kwargs = super(
CreateBankAccountView, self
).get_form_kwargs(
*args, **kwargs
)
CreateCustomAccountView, self
).get_form_kwargs()
initial = form_kwargs.pop('initial', {})
form_kwargs['request'] = self.request
form_kwargs['country'] = 'US'
Expand Down
2 changes: 1 addition & 1 deletion pinax/stripe/management/commands/init_customers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ class Command(BaseCommand):
def handle(self, *args, **options):
User = get_user_model()
for user in User.objects.filter(customer__isnull=True):
customers.create(user=user)
customers.create(user=user, charge_immediately=False)
self.stdout.write("Created customer for {0}\n".format(user.email))
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
version="4.3.0",
version="4.4.0",
license="MIT",
url=URL,
packages=find_packages(),
Expand All @@ -88,11 +88,11 @@
install_requires=[
"django-appconf>=1.0.1",
"jsonfield>=1.0.3",
"stripe>=1.7.9",
"stripe>=2.0",
"django>=1.8",
"pytz",
"six",
"django-ipware==1.1.6"
"django-ipware==2.1.0"
],
extras_require={
"pytest": ["pytest", "pytest-django"] + tests_require,
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ deps =
dj111: Django>=1.11a1,<2.0
dj20: Django<2.1
master: https://github.com/django/django/tarball/master
postgres: psycopg2
postgres: psycopg2-binary
extras =
pytest: pytest
usedevelop = True
Expand Down