Suiteáil ó fhoinsí

  1. Lean na treoracha suiteála le do chóras ar dtús suas go dtí suiteáil Weblate:

  2. Faigh na foinsí Weblate is déanaí ag baint úsáide as Git (nó íoslódáil tarball agus díphacáil sin):

    git clone https://github.com/WeblateOrg/weblate.git weblate-src
    

    Nó is féidir leat cartlanna eisithe a úsáid. Is féidir leat iad a íoslódáil ónár suíomh Gréasáin <https://weblate.org/>. Tá na híoslódálacha sin sínithe go cripteagrafach, féach Verifying release artifacts.

  3. Suiteáil cód reatha Weblate isteach sa timpeallacht Python:

    . ~/weblate-env/bin/activate
    uv pip install -e 'weblate-src[all]'
    

    Más mian leat an tsraith tástála a rith ón tseiceáil amach foinseach, suiteáil na spleáchais forbartha mar a thuairiscítear i Tástáil áitiúil ar Weblate.

  4. Cóipeáil weblate/settings_example.py chuig weblate/settings.py.

  5. Coigeartaigh na luachanna sa chomhad nua settings.py de réir do thaitneamh. Beidh ort dintiúir bunachar sonraí agus eochair rúnda Django a sholáthar ar a laghad, ach beidh níos mó athruithe ag teastáil uait maidir le socrú táirgeachta, féach Cumraíocht a choigeartú.

  6. Cruthaigh an bunachar sonraí a úsáideann Weblate, féach Socrú bunachar sonraí le haghaidh Weblate.

  7. Tóg táblaí Django, comhaid statacha agus sonraí tosaigh (féach An bunachar sonraí a líonadh agus Comhaid statacha a sheirbheáil):

    weblate migrate
    weblate collectstatic
    weblate compress
    

    Note

    Ba cheart an chéim seo a dhéanamh arís nuair a nuashonraíonn tú an stór.

Packaging Weblate for distributions

The dependency versions in pyproject.toml describe the runtime environment tested by the Weblate project. They are intentionally strict for installs from PyPI and for the Weblate release process, because Weblate cannot validate every dependency-version combination covered by wider version ranges.

Distribution packages can replace those Python packages with versions from the distribution package set. When doing so, run Weblate's test suite against the packaged dependency set and treat passing tests as the compatibility signal for the distribution package.

Keep Weblate's tightly coupled companion packages in sync with the Weblate release:

Mismatched versions of these packages are more likely to break at runtime or during tests than other Python dependency substitutions.

See also

See Tástáil áitiúil ar Weblate for test setup and Timthriall scaoilte for Weblate's release cadence.