Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop support for Django < 1.11 and add support for Python 3.7
- Loading branch information
Showing
43 changed files
with
108 additions
and
3,243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,60 @@ | ||
dist: xenial | ||
sudo: true | ||
language: python | ||
python: | ||
- 3.5 | ||
- 3.6 | ||
- 3.7 | ||
# See tox.ini for env list | ||
python: 3.5 # this is needed to fool travis to have python3.5 as well | ||
env: | ||
- TOXENV=checkmanifest | ||
- TOXENV=flake8-check | ||
- TOXENV=isort-check | ||
- TOXENV=py27-django110-tests-usetztrue | ||
- TOXENV=py27-django111-tests-usetzfalse | ||
- TOXENV=py27-django111-tests-usetztrue | ||
- TOXENV=py27-django16-tests-usetzfalse | ||
- TOXENV=py27-django16-tests-usetztrue | ||
- TOXENV=py27-django17-tests-usetztrue | ||
- TOXENV=py27-django18-tests-usetztrue | ||
- TOXENV=py27-django19-tests-usetztrue | ||
- TOXENV=py34-django110-tests-usetztrue | ||
- TOXENV=py34-django111-tests-usetztrue | ||
- TOXENV=py34-django16-tests-usetzfalse | ||
- TOXENV=py34-django16-tests-usetztrue | ||
- TOXENV=py34-django17-tests-usetztrue | ||
- TOXENV=py34-django18-tests-usetztrue | ||
- TOXENV=py34-django19-tests-usetztrue | ||
- TOXENV=py35-django110-tests-usetztrue | ||
- TOXENV=py35-django111-tests-usetzfalse | ||
- TOXENV=py35-django111-tests-usetztrue | ||
- TOXENV=py35-django19-tests-usetztrue | ||
- DJANGO=1.11 USETZ=True | ||
- DJANGO=1.11 USETZ=False | ||
- DJANGO=2.0 USETZ=True | ||
- DJANGO=2.0 USETZ=False | ||
- DJANGO=2.1 USETZ=True | ||
- DJANGO=2.1 USETZ=False | ||
- DJANGO=master USETZ=True | ||
- DJANGO=master USETZ=False | ||
|
||
matrix: | ||
include: | ||
- name: "Check manifest" | ||
python: "3.7" | ||
env: TOXENV=checkmanifest | ||
- name: "flake8" | ||
python: "3.7" | ||
env: TOXENV=flake8-check | ||
- name: "isort" | ||
python: "3.7" | ||
env: TOXENV=isort-check | ||
- python: "2.7" | ||
env: DJANGO=1.11 USETZ=True | ||
dist: trusty | ||
- python: "2.7" | ||
env: DJANGO=1.11 USETZ=False | ||
dist: trusty | ||
- python: "3.4" | ||
env: DJANGO=1.11 USETZ=True | ||
dist: trusty | ||
- python: "3.4" | ||
env: DJANGO=1.11 USETZ=False | ||
dist: trusty | ||
- python: "3.4" | ||
env: DJANGO=2.0 USETZ=True | ||
dist: trusty | ||
- python: "3.4" | ||
env: DJANGO=2.0 USETZ=False | ||
dist: trusty | ||
exclude: | ||
- python: "3.7" | ||
env: DJANGO=1.11 USETZ=True | ||
- python: "3.7" | ||
env: DJANGO=1.11 USETZ=False | ||
|
||
before_install: | ||
- sudo apt-get -qq update | ||
- sudo apt-get install -y libffi-dev python-dev libssl-dev | ||
install: | ||
- pip install tox>=2.1 | ||
- pip install tox>=2.1 tox-travis | ||
script: | ||
- tox | ||
sudo: true | ||
- tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,8 @@ | ||
Update the database | ||
=================== | ||
|
||
django-paypal uses South for migrations for Django < 1.7, and the built in | ||
Django migrations framework for Django >= 1.7. | ||
django-paypal uses the built in Django migrations framework. | ||
|
||
To update your database: | ||
|
||
* For Django < 1.7: | ||
|
||
* Ensure South is installed if it isn't already: | ||
|
||
* Do:: | ||
|
||
pip install 'South>=1.0.1' | ||
|
||
* Add 'south' to your `INSTALLED_APPS` setting. | ||
|
||
* Run the following to install South tables:: | ||
|
||
./manage.py syncdb | ||
|
||
* Then for each time you install or upgrade django-paypal, run:: | ||
|
||
./manage.py migrate | ||
|
||
|
||
* For Django >= 1.7:: | ||
|
||
./manage.py migrate | ||
|
||
|
||
Upgrading from very old versions | ||
-------------------------------- | ||
|
||
If you using Django < 1.7 and are upgrading from a very old version (before | ||
0.1.1) that wasn't using South, you will have to use ``--fake`` - see | ||
http://south.readthedocs.org/en/latest/commands.html?highlight=fake | ||
|
||
It will probably look something like:: | ||
|
||
./manage.py migrate ipn --fake --initial | ||
./manage.py migrate pdt --fake --initial | ||
./manage.py migrate pro --fake --initial | ||
./manage.py migrate ipn | ||
./manage.py migrate pdt | ||
./manage.py migrate pro | ||
|
||
depending on what apps you have installed. | ||
|
||
Please also see :doc:`release_notes`. | ||
|
||
Upgrading to Django 1.7 | ||
----------------------- | ||
|
||
If you installed django-paypal with an older version of Django, you will have | ||
been using South to handle database migrations. Due to the new built-in database | ||
migration framework in Django 1.7, the upgrade procedure is slightly | ||
complicated. | ||
|
||
The recommended upgrade procedure is: | ||
|
||
* Before upgrading to Django 1.7, first upgrade django-paypal to the latest | ||
version and run migrations as above (including deploying to your production | ||
environment and running migrations there). | ||
|
||
* Then upgrade Django to 1.7, and run the following as appropriate for your | ||
situation:: | ||
|
||
./manage.py migrate ipn --fake | ||
./manage.py migrate pdt --fake | ||
./manage.py migrate pro --fake | ||
|
||
In this way, you can avoid running equivalent migrations twice (the South versions | ||
and the Django built-in versions). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.