Skip to content

Commit e3ad9db

Browse files
authored
Merge pull request #620 from pinax/5.x
pinax-stripe-light - A new version with less bells and whistles
2 parents 78473e1 + af2723d commit e3ad9db

File tree

126 files changed

+1717
-13184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+1717
-13184
lines changed

.circleci/config.yml

Lines changed: 0 additions & 236 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Lints and Tests
2+
on: [push]
3+
jobs:
4+
lint:
5+
name: Linting
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: pinax/linting@v2
10+
11+
check-migrations:
12+
name: Check Migrations
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup Python
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: 3.9
21+
22+
- run: pip install .
23+
- run: ./check-migrations.sh
24+
25+
test:
26+
name: Testing
27+
runs-on: ubuntu-latest
28+
strategy:
29+
matrix:
30+
python: [3.6, 3.7, 3.8, 3.9, "3.10"]
31+
django: [3.2.*]
32+
33+
steps:
34+
- uses: pinax/testing@v6
35+
with:
36+
python: ${{ matrix.python }}
37+
django: ${{ matrix.django }}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Here is an example of these rules applied:
9898
from django.db import models
9999
from django.urls import reverse
100100
from django.utils import timezone
101-
from django.utils.translation import ugettext_lazy as _
101+
from django.utils.translation import gettext_lazy as _
102102

103103
# third set of imports are external apps (if applicable)
104104
from tagging.fields import TagField

MANIFEST.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 16 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
![](http://pinaxproject.com/pinax-design/patches/pinax-stripe.svg)
22

3-
# Pinax Stripe
3+
# Pinax Stripe (Light)
44

5-
[![](https://img.shields.io/pypi/v/pinax-stripe.svg)](https://pypi.python.org/pypi/pinax-stripe/)
6-
[![](https://img.shields.io/badge/license-MIT-blue.svg)](https://pypi.python.org/pypi/pinax-stripe/)
5+
[![](https://img.shields.io/pypi/v/pinax-stripe-light.svg)](https://pypi.python.org/pypi/pinax-stripe-light/)
6+
[![](https://img.shields.io/badge/license-MIT-blue.svg)](https://pypi.python.org/pypi/pinax-stripe-light/)
77

8-
[![Codecov](https://img.shields.io/codecov/c/github/pinax/pinax-stripe.svg)](https://codecov.io/gh/pinax/pinax-stripe)
9-
[![CircleCI](https://circleci.com/gh/pinax/pinax-stripe.svg?style=svg)](https://circleci.com/gh/pinax/pinax-stripe)
10-
![](https://img.shields.io/github/contributors/pinax/pinax-stripe.svg)
11-
![](https://img.shields.io/github/issues-pr/pinax/pinax-stripe.svg)
12-
![](https://img.shields.io/github/issues-pr-closed/pinax/pinax-stripe.svg)
8+
[![Codecov](https://img.shields.io/codecov/c/github/pinax/pinax-stripe-light.svg)](https://codecov.io/gh/pinax/pinax-stripe-light)
9+
[![Build](https://github.com/pinax/pinax-stripe-light/actions/workflows/ci.yaml/badge.svg)](https://github.com/pinax/pinax-stripe-light/actions)
10+
![](https://img.shields.io/github/contributors/pinax/pinax-stripe-light.svg)
11+
![](https://img.shields.io/github/issues-pr/pinax/pinax-stripe-light.svg)
12+
![](https://img.shields.io/github/issues-pr-closed/pinax/pinax-stripe-light.svg)
1313

1414
[![](http://slack.pinaxproject.com/badge.svg)](http://slack.pinaxproject.com/)
1515

1616
This app was formerly called `django-stripe-payments` and has been renamed to
17-
avoid namespace collisions and to have more consistency with Pinax.
17+
avoid namespace collisions and to have more consistency with Pinax. It has once
18+
[more been renamed](https://github.com/pinax/pinax-stripe-light/discussions/644)
19+
to `pinax-stripe-light` (package name, though it retains the `pinax.stripe.*`
20+
Python namespace).
1821

1922
## Pinax
2023

@@ -24,62 +27,11 @@ This collection can be found at http://pinaxproject.com.
2427
This app was developed as part of the Pinax ecosystem but is just a Django app and can be used independently of other Pinax apps.
2528

2629

27-
## pinax-stripe
30+
## pinax-stripe-light
2831

29-
`pinax-stripe` is a payments Django app for Stripe.
30-
31-
This app allows you to process one off charges as well as signup users for
32-
recurring subscriptions managed by Stripe.
33-
34-
To bootstrap your project, we recommend you start with:
35-
https://pinax-stripe.readthedocs.org/en/latest/user-guide/getting-started/
36-
37-
## Development
38-
39-
`pinax-stripe` supports a variety of Python and Django versions. It's best if you test each one of these before committing. Our [Travis CI Integration](https://travis-ci.org/pinax/pinax-stripe) will test these when you push but knowing before you commit prevents from having to do a lot of extra commits to get the build to pass.
40-
41-
### Environment Setup
42-
43-
In order to easily test on all these Pythons and run the exact same thing that Travis CI will execute you'll want to setup [pyenv](https://github.com/yyuu/pyenv) and install the Python versions outlined in [tox.ini](tox.ini).
44-
45-
If you are on the Mac, it's recommended you use [brew](http://brew.sh/). After installing `brew` run:
46-
47-
```
48-
$ brew install pyenv pyenv-virtualenv pyenv-virtualenvwrapper
49-
```
50-
51-
Then:
52-
53-
```
54-
$ CFLAGS="-I$(xcrun --show-sdk-path)/usr/include -I$(brew --prefix openssl)/include" \
55-
LDFLAGS="-L$(brew --prefix openssl)/lib" \
56-
pyenv install 2.7.14 3.4.7 3.5.4 3.6.3
57-
58-
$ pyenv virtualenv 2.7.14
59-
$ pyenv virtualenv 3.4.7
60-
$ pyenv virtualenv 3.5.4
61-
$ pyenv virtualenv 3.6.3
62-
$ pyenv global 2.7.14 3.4.7 3.5.4 3.6.3
63-
64-
$ pip install detox
65-
```
66-
67-
To run test suite:
68-
69-
Make sure you are NOT inside a `virtualenv` and then:
70-
71-
```
72-
$ detox
73-
```
74-
75-
This will execute the testing matrix in parallel as defined in the `tox.ini`.
76-
77-
78-
## Documentation
79-
80-
The `pinax-stripe` documentation is available at http://pinax-stripe.readthedocs.org/en/latest/.
81-
The Pinax documentation is available at http://pinaxproject.com/pinax/.
82-
We recently did a Pinax Hangout on pinax-stripe, you can read the recap blog post and find the video [here](http://blog.pinaxproject.com/2016/01/27/recap-january-pinax-hangout/).
32+
`pinax-stripe-light` is a Django app for integrating Stripe webhooks into your
33+
project. It also includes from lightweight utilities like template tags to make
34+
working with Stripe a bit easier.
8335

8436

8537
## Contribute
@@ -88,8 +40,6 @@ See [this blog post](http://blog.pinaxproject.com/2016/02/26/recap-february-pina
8840

8941
In case of any questions we recommend you [join our Pinax Slack team](http://slack.pinaxproject.com) and ping us there instead of creating an issue on GitHub. Creating issues on GitHub is of course also valid but we are usually able to help you faster if you ping us in Slack.
9042

91-
We also highly recommend reading our [Open Source and Self-Care blog post](http://blog.pinaxproject.com/2016/01/19/open-source-and-self-care/).
92-
9343

9444
## Code of Conduct
9545

0 commit comments

Comments
 (0)