Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Prep for 0.7.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pydanny committed Sep 22, 2015
1 parent fc45c11 commit 05b3be7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
9 changes: 6 additions & 3 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
History
=======

0.7.0 (2015-08-??)
0.7.0 (2015-09-22)
---------------------
* dj-stripe now responds to the invoice.created event (Thanks @wahuneke)
* dj-stripe now cancels subscriptions and purges customers during sync if they were deleted from the stripe dashboard (Thanks @unformatt)
* dj-stripe now checks for an active stripe subscription in the ``update_plan_quantity`` call (Thanks @ctrengove)
* Event processing is now handled by "event handlers" - functions outside of models that respond to various event types and subtypes. Documentation on how to tie into the event handler system coming soon. (Thanks @wahuneke)
* Experimental Python 3.5 support
* Support for Django 1.6 and lower is now officially gone.
* Much, much more!

0.6.0 (2015-07-12)
---------------------
Expand Down Expand Up @@ -80,7 +83,7 @@ History
* Clarify documentation for redirects on app_name.
* If settings.DEBUG is True, then django-debug-toolbar is exempt from redirect to subscription form.
* Use collections.OrderedDict to ensure that plans are listed in order of price.
* Add ``ordereddict`` library to support Python 2.6 users.
* Add ``ordereddict`` library to support Python 2.6 users.
* Switch from ``__unicode__`` to ``__str__`` methods on models to better support Python 3.
* Add ``python_2_unicode_compatible`` decorator to Models.
* Check for PY3 so the ``unicode(self.user)`` in models.Customer doesn't blow up in Python 3.
Expand Down Expand Up @@ -141,7 +144,7 @@ History
0.2.6 (2013-08-20)
----------------------

* Changed name of division tag to djdiv.
* Changed name of division tag to djdiv.
* Added ``safe_setting.py`` module to handle edge cases when working with custom user models.
* Added cookbook page in the documentation.

Expand Down
6 changes: 3 additions & 3 deletions djstripe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__summary__ = "Django + Stripe Made Easy"
__uri__ = "https://github.com/pydanny/dj-stripe/"

__version__ = "0.7.0-dev"
__version__ = "0.7.0"

__author__ = "Daniel Greenfeld"
__email__ = "[email protected]"
Expand All @@ -17,7 +17,7 @@
__copyright__ = "Copyright 2015 Daniel Greenfeld"

if get_django_version() <= '1.6.x':
msg = "dj-stripe deprecation notice: Django 1.6 and lower are deprecated\n" \
"and will be removed in dj-stripe 0.6.0.\n" \
msg = "dj-stripe deprecation notice: Django 1.6 and lower are no longer\n" \
"supported. Please upgrade to Django 1.7 or higher.\n" \
"Reference: https://github.com/pydanny/dj-stripe/issues/173"
warnings.warn(msg)
4 changes: 2 additions & 2 deletions djstripe/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def post(self, request, *args, **kwargs):
if PRORATION_POLICY_FOR_UPGRADES:
current_subscription_amount = customer.current_subscription.amount
selected_plan_name = form.cleaned_data["plan"]
selected_plan = next( # pragma: no cover
(plan for plan in PLAN_LIST if plan["plan"] == selected_plan_name) # pragma: no cover
selected_plan = next(
(plan for plan in PLAN_LIST if plan["plan"] == selected_plan_name)
)
selected_plan_price = selected_plan["price"] / decimal.Decimal("100")

Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
zip_safe=False,
keywords='stripe django',
classifiers=[
'Development Status :: 3 - Alpha',
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.7',
Expand All @@ -65,6 +65,7 @@
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4'
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5'
],
)
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tox]
envlist = py27, py34
envlist = py27, py34, py35

[testenv:py27, py34]
[testenv:py27, py34, py35]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/dj-stripe

commands = python runtests.py
deps =
-r{toxinidir}/requirements_test.txt
-r{toxinidir}/requirements_test.txt

0 comments on commit 05b3be7

Please sign in to comment.