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

pinax-stripe-light - A new version with less bells and whistles #620

Merged
merged 50 commits into from
Nov 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
be18c8c
Initial pass at moving away from previous model
paltman Oct 20, 2018
101d6bc
Add migrations to remove all the models
paltman Jan 20, 2019
6e3ba8d
Update version
paltman Apr 21, 2019
3424868
Update handling of webhooks
paltman Apr 22, 2019
a13c0fb
Bump
paltman Apr 22, 2019
909ecda
Not ready for 3.0 yet
paltman Feb 22, 2020
aec2080
Upgrade to latest supported Django+Python matrix
paltman Apr 29, 2020
d254318
NullBooleanField is deprecated now
paltman Aug 15, 2020
bf2610b
Fix deprecations
paltman Apr 24, 2021
0ecec0f
No longer needed in Django 3.2
paltman Apr 25, 2021
d860ddf
Update CI
paltman Nov 25, 2021
0a2a1e6
Clean up warnings
paltman Nov 25, 2021
f833139
Clean up / out more unsupported things
paltman Nov 25, 2021
d8c2359
Lint
paltman Nov 25, 2021
1a1d989
Bump version of action
paltman Nov 25, 2021
ce660ff
Bump version of action
paltman Nov 25, 2021
41fc933
Fix imports
paltman Nov 25, 2021
0c64eea
Install self before tests
paltman Nov 25, 2021
699ff95
Add pytest-cov
paltman Nov 25, 2021
20810fd
Drop jsonfield
paltman Nov 26, 2021
9b4686f
Bump action
paltman Nov 26, 2021
c51d68c
Drop Django 2.2 support -- end of life is April 2022 anyway
paltman Nov 26, 2021
dcea093
Drop Django 2.2 support -- end of life is April 2022 anyway
paltman Nov 26, 2021
79f781e
More updates
paltman Nov 26, 2021
3662b74
Add test coverage
paltman Nov 26, 2021
8dd7bbc
Add more tests and drop unused code
paltman Nov 26, 2021
0b105e6
More test coverage
paltman Nov 26, 2021
8cfb9c8
Updates docs
paltman Nov 26, 2021
771652d
Change package name
paltman Nov 26, 2021
f59af2e
Merge branch 'master' into 5.x
paltman Nov 26, 2021
210389e
Fix missing import
paltman Nov 26, 2021
78ef672
Update package ref
paltman Nov 26, 2021
1d0c8f6
Collapse migrations
paltman Nov 26, 2021
880acce
Reset migrations
paltman Nov 26, 2021
408c3f3
Set app info
paltman Nov 27, 2021
9c18816
Fix configure
paltman Nov 27, 2021
1398496
Add test to validate inheritance override in registry
paltman Nov 27, 2021
52d6d26
Break up webhooks
paltman Nov 27, 2021
232463e
Add generated webhooks
paltman Nov 27, 2021
d9bdaf7
Add script to generate webhooks
paltman Nov 27, 2021
bca0b59
Update to latest version of API
paltman Nov 27, 2021
0d6da79
Use signature verification to validate webhooks
paltman Nov 27, 2021
7033922
Add unregister
paltman Nov 27, 2021
1c06b7a
Isort
paltman Nov 27, 2021
891fc4d
Update badge
paltman Nov 27, 2021
33415e7
Update docs
paltman Nov 28, 2021
5795455
Fix ci
paltman Nov 28, 2021
4ff489e
Fix script
paltman Nov 28, 2021
e6548d9
Update history
paltman Nov 28, 2021
af2723d
Update settings for checking migrations
paltman Nov 28, 2021
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
236 changes: 0 additions & 236 deletions .circleci/config.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Lints and Tests
on: [push]
jobs:
lint:
name: Linting
runs-on: ubuntu-latest

steps:
- uses: pinax/linting@v2

check-migrations:
name: Check Migrations
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9

- run: pip install .
- run: ./check-migrations.sh

test:
name: Testing
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.6, 3.7, 3.8, 3.9, "3.10"]
django: [3.2.*]

steps:
- uses: pinax/testing@v6
with:
python: ${{ matrix.python }}
django: ${{ matrix.django }}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Here is an example of these rules applied:
from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

# third set of imports are external apps (if applicable)
from tagging.fields import TagField
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

82 changes: 16 additions & 66 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
![](http://pinaxproject.com/pinax-design/patches/pinax-stripe.svg)

# Pinax Stripe
# Pinax Stripe (Light)

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

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

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

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

## Pinax

Expand All @@ -24,62 +27,11 @@ This collection can be found at http://pinaxproject.com.
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.


## pinax-stripe
## pinax-stripe-light

`pinax-stripe` is a payments Django app for Stripe.

This app allows you to process one off charges as well as signup users for
recurring subscriptions managed by Stripe.

To bootstrap your project, we recommend you start with:
https://pinax-stripe.readthedocs.org/en/latest/user-guide/getting-started/

## Development

`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.

### Environment Setup

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).

If you are on the Mac, it's recommended you use [brew](http://brew.sh/). After installing `brew` run:

```
$ brew install pyenv pyenv-virtualenv pyenv-virtualenvwrapper
```

Then:

```
$ CFLAGS="-I$(xcrun --show-sdk-path)/usr/include -I$(brew --prefix openssl)/include" \
LDFLAGS="-L$(brew --prefix openssl)/lib" \
pyenv install 2.7.14 3.4.7 3.5.4 3.6.3

$ pyenv virtualenv 2.7.14
$ pyenv virtualenv 3.4.7
$ pyenv virtualenv 3.5.4
$ pyenv virtualenv 3.6.3
$ pyenv global 2.7.14 3.4.7 3.5.4 3.6.3

$ pip install detox
```

To run test suite:

Make sure you are NOT inside a `virtualenv` and then:

```
$ detox
```

This will execute the testing matrix in parallel as defined in the `tox.ini`.


## Documentation

The `pinax-stripe` documentation is available at http://pinax-stripe.readthedocs.org/en/latest/.
The Pinax documentation is available at http://pinaxproject.com/pinax/.
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/).
`pinax-stripe-light` is a Django app for integrating Stripe webhooks into your
project. It also includes from lightweight utilities like template tags to make
working with Stripe a bit easier.


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

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.

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/).


## Code of Conduct

Expand Down
Loading