Skip to content

Instantly share code, notes, and snippets.

@nimasmi
Last active October 7, 2020 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nimasmi/50f8af297d8b375e38553e32a3179a71 to your computer and use it in GitHub Desktop.
Save nimasmi/50f8af297d8b375e38553e32a3179a71 to your computer and use it in GitHub Desktop.
Wagtail internationalisation dev builds

This is just a place to host builds of Wagtail on the in-development i18n-combined branch, and wagtail-localize on the beta branch.

Wagtail

This largely follows the CI process nightly-build at https://github.com/wagtail/wagtail/blob/7eeb44ad0408cf72060f19db577de2159859cd74/.circleci/config.yml#L49

  1. Check out the version of Wagtail with the corresponding features needed, currently https://github.com/kaedroho/wagtail/tree/i18n-combined
    git clone git@github.com:kaedroho/wagtail.git wagtail
    cd wagtail
    git checkout i18n-combined
  2. Build Wagtail static assets:
    mkvirtualenv --python=python3.8 wagtail
    pip install -e '.' -U
    nvm install
    npm install --no-save
    npm run build
    npm run dist
  3. Use the nightly version script to fake Wagtail's version, and build the wheel:
    python scripts/nightly/get_version.py > __init__.py
    mv __init__.py wagtail/__init__.py
    python setup.py bdist_wheel
    This should put a new wheel file in dist/wagtail-2.11.devYYYYMMDD-py3-none-any.whl, where YYYYMMDD is today's date.
  4. Upload to this gist:
    git clone git@gist.github.com:50f8af297d8b375e38553e32a3179a71.git
    cd 50f8af297d8b375e38553e32a3179a71
    cp path/to/dist/wagtail-2.11.dev20200814-py3-none-any.whl ./
    git add ./
    git commit
  5. To use the package in your app, get the URL of the file from the 'view raw' link, then:
    poetry add wagtail https://gist.github.com/nimasmi/50f8af297d8b375e38553e32a3179a71/raw/b8afab6d4bef0d7b0474dc8f38bfda87292b4289/wagtail-2.11.dev20200901-py3-none-any.whl
  6. To update the package later, edit pyproject.toml with the URL of the new file.

wagtail-localize

  1. Check out the required branch of wagtail-localize, currently https://github.com/wagtail/wagtail-localize/tree/beta

    git clone git@github.com:wagtail/wagtail-localize.git
    cd wagtail-localize
    git checkout beta
  2. Build wagtail-localize static assets:

    mkvirtualenv --python=python3.8 wagtail-localize
    nvm use 12
    make build
  3. Build the wheel:

    pip install wheel
    python setup.py bdist_wheel

    This should put a new wheel file in dist/wagtail_localize-0.4-py3-none-any.whl

  4. Upload to this gist:

    git clone git@gist.github.com:50f8af297d8b375e38553e32a3179a71.git
    cd 50f8af297d8b375e38553e32a3179a71
    cp path/to/dist/wagtail_localize-0.4-py3-none-any.whl ./
    git add ./
    git commit
  5. To use the package in your app, get the URL of the file from the 'view raw' link, then in pyproject.toml, add

    wagtail-localize = {url = "https://gist.github.com/nimasmi/50f8af297d8b375e38553e32a3179a71/raw/1bb0522cece4982cf660ba107ccdd4a3594ed5f4/wagtail_localize-0.4-py3-none-any.whl"}
  6. To update the package later, edit pyproject.toml with the URL of the new file.

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment