Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.gitignore
README.md
generate-upgrade-json.py
requirements.txt
update.sh

README.md

Upgrade JSON generator

The Python script in this folder generates the upgrade JSON blobs that ClassicPress uses to determine upgrade paths.

Development

The script runs on Python 2.7 and uses a virtualenv to isolate its dependencies from the rest of the system.

Assuming that your system's default Python version is 2.7 or higher (but not 3.x as the script is untested there), here is how to set up the development environment:

cd v1-upgrade-generator/
virtualenv .
. bin/activate
pip install -r requirements.txt

The script relies on a couple of git repositories being in place:

cd v1-upgrade-generator/
git clone https://github.com/ClassyBot/ClassicPress-nightly ClassicPress-nightly
git clone https://github.com/ClassicPress/ClassicPress-release ClassicPress-release

Once the above setup is done, you can run the script as follows:

python generate-upgrade-json.py

The resulting files will be placed in the v1/upgrade/ folder in the root of this repository.

See also update.sh in this folder, which will fetch from the ClassicPress git repositories and then run the Python script.

You can’t perform that action at this time.