-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also: * Install-by-source instructions is for python 3 * Adds initial python2->3 upgrade instructions * Initial adjustments to ckan/common.py for import in python3 I'm keen to do 'trunk based development' for python 3 work now. So python 3 is the default in the docs and requirements.txt. I realize that the devs who use master for other work might be a bit surprised/disrupted by these changes. However I think it is worth it because the focus now needs to be python3, and it's better to switch master's default now rather than just before release.
- Loading branch information
David Read
committed
Nov 8, 2019
1 parent
66effbd
commit 521f78a
Showing
11 changed files
with
209 additions
and
63 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
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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
================================================== | ||
Upgrading a CKAN install from Python 2 to Python 3 | ||
================================================== | ||
|
||
These instructions describe how to upgrade a source install of CKAN 2.9 from | ||
Python 2 to Python 3, which is necessary because Python 2 is end of life, as of | ||
January 1st, 2020. | ||
|
||
Preparation | ||
----------- | ||
|
||
* Backup your CKAN source, virtualenv and databases, just in case. | ||
* Upgrade to CKAN 2.9, if you've not done already. | ||
|
||
Upgrade | ||
------- | ||
|
||
You'll probably need to deactivate your existing virtual environment:: | ||
|
||
deactivate | ||
|
||
The existing setup has the virtual environment here: |virtualenv| | ||
and the CKAN source code underneath in `/usr/lib/ckan/default/src`. We'll move | ||
that aside in case we need to roll-back: | ||
|
||
.. parsed-literal:: | ||
sudo mv |virtualenv| /usr/lib/ckan/py2 | ||
From this doc: :doc:`/maintaining/installing/install-from-source` you need to | ||
do these sections: | ||
|
||
* 1. Install the required packages | ||
* 2. Install CKAN into a Python virtual environment | ||
* 6. Link to who.ini |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# The file contains the direct ckan requirements. | ||
# Use pip-compile to create a requirements.txt file from this | ||
alembic==1.0.0 | ||
Babel==2.3.4 | ||
bleach==3.0.2 | ||
click==6.7 | ||
fanstatic==0.12 | ||
Flask==1.1.1 | ||
Flask-Babel==0.11.2 | ||
Jinja2==2.10.1 | ||
Markdown==2.6.7 | ||
passlib==1.6.5 | ||
paste==1.7.5.1 | ||
PasteScript==2.0.2 | ||
polib==1.0.7 | ||
psycopg2==2.8.2 | ||
python-magic==0.4.15 | ||
pysolr==3.6.0 | ||
Pylons==0.9.7 | ||
python-dateutil>=1.5.0 | ||
pytz==2016.7 | ||
PyUtilib==5.7.1 | ||
pyyaml # needed by webassets. latest should be fine. | ||
repoze.who-friendlyform==1.0.8 | ||
repoze.who==2.3 | ||
requests==2.22.0 | ||
Routes==1.13 | ||
rq==1.0 | ||
simplejson==3.10.0 | ||
sqlalchemy-migrate==0.12.0 | ||
SQLAlchemy==1.3.5 | ||
sqlparse==0.2.2 | ||
tzlocal==1.3 | ||
unicodecsv>=0.9 | ||
webassets==0.12.1 | ||
WebHelpers==1.3 | ||
WebOb==1.0.8 | ||
WebTest==1.4.3 # need to pin this so that Pylons does not install a newer version that conflicts with WebOb==1.0.8 | ||
werkzeug==0.15.5 | ||
zope.interface==4.3.2 |
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# To update, run: | ||
# | ||
# pip-compile --output-file requirements=py2.txt requirements-py2.in | ||
# | ||
alembic==1.0.0 | ||
babel==2.3.4 | ||
beaker==1.10.1 # via pylons | ||
bleach==3.0.2 | ||
certifi==2019.3.9 # via requests | ||
chardet==3.0.4 # via requests | ||
click==6.7 | ||
decorator==4.4.0 # via pylons, sqlalchemy-migrate | ||
fanstatic==0.12 | ||
flask-babel==0.11.2 | ||
Flask==1.1.1 | ||
formencode==1.3.1 # via pylons | ||
funcsigs==1.0.2 # via beaker | ||
idna==2.8 # via requests | ||
itsdangerous==1.1.0 # via flask | ||
jinja2==2.10.1 | ||
mako==1.0.9 # via alembic, pylons | ||
markdown==2.6.7 | ||
markupsafe==1.1.1 # via jinja2, mako, webhelpers | ||
nose==1.3.7 # via pylons | ||
passlib==1.6.5 | ||
paste==1.7.5.1 | ||
pastedeploy==2.0.1 # via pastescript, pylons | ||
pastescript==2.0.2 | ||
pbr==5.2.0 # via sqlalchemy-migrate | ||
polib==1.0.7 | ||
psycopg2==2.8.2 | ||
pygments==2.3.1 # via weberror | ||
pylons==0.9.7 | ||
pysolr==3.6.0 | ||
python-dateutil==2.8.0 | ||
python-editor==1.0.4 # via alembic | ||
python-magic==0.4.15 | ||
pytz==2016.7 | ||
PyUtilib==5.7.1 | ||
pyyaml==5.1 | ||
redis==3.2.1 # via rq | ||
repoze.lru==0.7 # via routes | ||
repoze.who-friendlyform==1.0.8 | ||
repoze.who==2.3 | ||
requests==2.22.0 | ||
routes==1.13 | ||
rq==1.0 | ||
simplejson==3.10.0 | ||
six==1.12.0 # via bleach, pastescript, python-dateutil, pyutilib.component.core, sqlalchemy-migrate | ||
sqlalchemy-migrate==0.12.0 | ||
sqlalchemy==1.3.5 | ||
sqlparse==0.2.2 | ||
tempita==0.5.2 # via pylons, sqlalchemy-migrate, weberror | ||
tzlocal==1.3 | ||
unicodecsv==0.14.1 | ||
urllib3==1.25.2 # via requests | ||
webassets==0.12.1 | ||
webencodings==0.5.1 # via bleach | ||
weberror==0.13.1 # via pylons | ||
webhelpers==1.3 | ||
webob==1.0.8 | ||
webtest==1.4.3 | ||
werkzeug==0.15.5 | ||
zope.interface==4.3.2 |
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
Oops, something went wrong.