How to release DjangoLink to this heading

Míníonn an doiciméad seo conas Django a scaoiltear.

** Coinnigh na treoracha seo cothrom le dáta má dhéanann tú athruithe! ** Is é an pointe anseo a bheith tuairisciúil, gan oiriúnaitheach, mar sin bíodh leisce ort athruithe a shruthlíniú nó a dhéanamh ar shlí eile, ach**nuashonrú an doiciméad seo dá réir sin! **

ForbhreathnúLink to this heading

Tá trí chineál eisiúintí ann a d'fhéadfadh go mbeadh ort a dhéanamh:

  • Scaoiltí slándála: leochaileacht a nochtadh agus a shocrú De ghnáth beidh dhá nó trí eisiúint chomhuaineach i gceist leis seo - m.sh. 3.2.x, 4.0.x, agus, ag brath ar an uainiú, b'fhéidir 4.1.x.

  • Eisiúintí leagan rialta: scaoileadh deiridh (m.sh. 4.1) nó nuashonrú bugfix (m.sh. 4.1.1).

  • Réamh-eisiúintí: m.sh. 4.2 alfa, béite, nó rc.

Is é an leagan gairid de na céimeanna atá i gceist ná:

  1. Más scaoileadh slándála é seo, déan an liosta dáilte slándála réamh-fógra seachtain roimh an eisiúint iarbhír.

  2. Cruthléigh na nótaí scaoilte, ag lorg earráidí eagraíochta agus scríbhneoireachta. Blagphost agus fógra ríomhphoist a dhréachtú.

  3. Update version numbers and create the release artifacts.

  4. Create the new Release in the admin on djangoproject.com.

    1. Set the proper date but ensure the flag is_active is disabled.

    2. Upload the artifacts (tarball, wheel, and checksums).

  5. Fíoraigh sínithe pacáiste/na pacáistí, seiceáil an féidir iad a shuiteáil, agus cinntigh íosta feidhmiúlacht.

  6. Uaslódáil an leagan/na leaganacha nua chuig PyPi.

  7. Enable the is_active flag for each release in the admin on djangoproject.com.

  8. Postáil iontráil an bhlag agus seol amach na fógraí ríomhphoist.

  9. Update version numbers post-release in stable branch(es).

  10. Add stub release notes for the next patch release in main and backport.

Tá go leor sonraí ann, mar sin léigh ar aghaidh le do thoil.

RiachtanaisLink to this heading

Beidh cúpla rud ag teastáil uait sula dtosaíonn tú. Más é seo do chéad eisiúint, beidh ort comhordú a dhéanamh le scaoilteoir eile chun na rudaí seo go léir a líneáil suas, agus scríobh chuig liosta seoltaí Ops ag iarraidh an rochtain agus na ceadanna riachtanacha.

  • Timpeallacht Unix leis na huirlisí seo suiteáilte (in ord aibítre):

    • bash

    • git

    • GPG

    • déanamh

    • fear

    • uirlisí hashing (de ghnáth md5sum ``, `sha1sum, agus sha256sum ar Linux, nó md5 agus shasum` ar macOS)

    • python

  • Péire eochair GPG. Cinntigh go bhfuil an chuid príobháideach den eochair seo stóráilte go daingean. Ní mór an chuid poiblí a uaslódáil chuig do chuntas GitHub, agus chuig freastalaí Jenkins a reáchtáil an post “scaoileadh deimhnithe”.

  • A clean Python virtual environment (Python 3.9+) to build artifacts, with these required Python packages installed:

    Shell
    $ python -m pip install build twine
    
  • < https://pypi.org/help/#yanked>Rochtain ar thionscadal `Django ar Pypi`_ chun dénártha < https://pypi.org/project/Django/> a uaslódáil, go hidéalach le ceadanna breise chun `scaoileadh a dhéanamh `_ más gá. Cruthaigh comhartha scóip tionscadail tar éis an `doiciméadú oifigiúil`_ agus cu< https://pypi.org/help/#apitoken> ir ar bun do chomhad $HOME/.pypirc mar seo:

    ~/.pypirc
    Ini
    [distutils]
      index-servers =
        pypi
        django
    
    [pypi]
      username = __token__
      password = # User-scoped or project-scoped token, to set as the default.
    
    [django]
      repository = https://upload.pypi.org/legacy/
      username = __token__
      password = # A project token.
    
  • Rochtain ar thionscadal `Django ar Transifex`_ < https://app.transifex.com/django/django/>, le ról Bainisteora. Ginigh Comhartha API sa rannán socrú úsáideora `_ agus cu< https://app.transifex.com/user/settings/api/> ir ar bun do chomhad ``$HOME/.transifexRC` mar seo:

    ``~/.transifexrc ``
    Ini
    [https://www.transifex.com]
      rest_hostname = https://rest.api.transifex.com
      token = # API token
    
  • Rochtain ar riarachán Django ar djangoproject.com mar “cothabhálaí láithreáin”.

  • Access to create a post in the Django Forum - Announcements category and to send emails to the django-announce mailing list.

  • Rochtain ar an repo `` django-security`` i GitHub. I measc rudaí eile, soláthraíonn sé seo rochtain ar an liosta dáileacháin réamhfhógraí (a theastaíonn le haghaidh tascanna ullmhúcháin um scaoileadh slándála).

  • Access to the Django project on Read the Docs.

Tascanna réamhscaoilteLink to this heading

Ní mór aire a thabhairt do chúpla earra sula dtosaíonn tú fiú leis an bpróiseas scaoilte. Tosaíonn an stuif seo thart ar sheachtain roimh an scaoileadh; is féidir an chuid is mó de a dhéanamh am ar bith chun an scaoileadh iarbhír.

10 lá (nó níos mó) roimh scaoileadh slándálaLink to this heading

  1. Iarr na `ID CVE`_ maidir leis na saincheisteanna slán< https://cveform.mitre.org/> dála atá á scaoileadh. Aitheantas CVE amháin in aghaidh na heisiúna, a iarrtar le Díoltóir: djangoproject agus Táirge: django.

  2. Ginigh an paiste/paistí (príobháideacha) ábhartha ag baint úsáide as git format-patch, ceann don bhrainse príom agus ceann do gach brainse chobhsaí atá á phaiteáil.

Seachtain roimh scaoileadh slándálaLink to this heading

  1. Seol réamh-fhógra amach go díreach seachtain roimh an scaoileadh slándála. Tá an teimpléad don ríomhphost sin agus liosta de na faighteoirí sa wiki príobháideach django-slándála` `GitHub. BCC na faighteoirí réamhfhógra agus cinnte go gcuirfidh na ID CVE ábhartha san áireamh. Ceangail na paistí ábhartha go léir (ag díriú ar ``main agus na brainsí cobhsaí) agus sínigh an téacs ríomhphoist leis an eochair a úsáidfidh tú chun an scaoileadh, le ordú mar:

    Shell
    $ gpg --clearsign --digest-algo SHA256 prenotification-email.txt
    
  2. Notify django-announce of the upcoming security release with a general message such as:

    Text
    Notice of upcoming Django security releases (3.2.24, 4.2.10 and 5.0.2)
    
    Django versions 5.0.2, 4.2.10, and 3.2.24 will be released on Tuesday,
    February 6th, 2024 around 1500 UTC. They will fix one security defect
    with severity "moderate".
    
    For details of severity levels, see:
    https://docs.djangoproject.com/en/dev/internals/security/#how-django-discloses-security-issues
    

Cúpla lá roimh aon scaoileadhLink to this heading

  1. As the release approaches, watch Trac to make sure no release blockers are left for the upcoming release. Under exceptional circumstances, such as to meet a pre-determined security release date, a release could still go ahead with an open release blocker. The releaser is trusted with the decision to release with an open release blocker or to postpone the release date of a non-security release if required.

  2. Seiceáil leis na cumaisc eile chun a chinntiú nach bhfuil aon athruithe neamhthiomanta acu don scaoileadh.

  3. Léigh na nótaí scaoilte, lena n-áirítear féachaint ar an leagan ar líne chó:ref: `gabháil aon naisc bhriste <documentation-link-check>`nó earráidí REST, agus déan cinnte go bhfuil an dáta ceart sna nótaí scaoilte.

  4. Seiceáil faoi dhó go luann na nótaí scaoilte amlínte míshuaimseartha d'aon APIs a tugadh faoi deara mar atá díscothaithe, agus go luann siad aon athruithe i dtacaíocht leagan Python.

  5. Seiceáil faoi dhó go bhfuil nasc ag an innéacs nótaí scaoilte leis na nótaí don eisiúint nua; beidh sé seo i docs/releases/index.txt`.

  6. Más a: téarma é seo: scaoileadh gnéit, déan cinnte go bhfuil aistriúcháin ó Transifex comhtháite. De ghnáth déanann bainisteoir aistriúcháin ar leithligh é seo seachas an scaoilteoir, ach seo na céimeanna. Tá an próiseas seo beagán fada mar sin bí cinnte 4-10 uair an chloig a chur ar leataobh chun é seo a dhéanamh, agus go hidéalach pleanáil don tasc seo lá nó dhó roimh an lá scaoilte.

    Chomh maith le cuntas Transifex cumraithe a bheith agat, ba chóir go mbeadh an tx CLI ar fáil i do < https://developers.transifex.com/docs/cli> PATH`. Ansin, is féidir leat na haistriúcháin go léir a fháil trí rith:

    Shell
    $ python scripts/manage_translations.py fetch
    

    Tógann an t-ordú seo roinnt ama le rith. Nuair a dhéantar é, iniúchadh cúramach ar an aschur le haghaidh earráidí agus/nó rabhaidh Má tá roinnt ann, beidh ort iad a dhífhabhtú agus a réiteach ar bhonn cás ar chás.

    Teastaíonn coigeartú láimhe ó na haistriúcháin a fuarthas le Ar an gcéad dul síos, caithfear na luachanna Po-Revision-Date ``a bhualadh de láimh le go mbeidh siad níos déanaí ná ``Pot-Creation-Date`. Is féidir leat ordú cosúil leis seo a úsáid chun na comhaid `.po ``go léir a nuashonrú mórchóir (comparáid idir an diff i gcoinne an bhrainse chobhsaí ábhartha):

    Shell
    $ git diff --name-only stable/5.0.x | grep "\.po"  | xargs sed -ri "s/PO-Revision-Date: [0-9\-]+ /PO-Revision-Date: $(date -I) /g"
    

    Ba chóir na comhaid nua .po a iniúchadh de láimh agus go cúramach chun athrú a sheachaint ar chomhad gan aon aistriúcháin nua a sheachaint. Chomh maith leis sin, níor chóir go mbeadh aon athruithe sna “foirmeacha iolra”: má tá aon athruithe ann (athruithe tuarascálacha na Spáinne agus na Fraince de ghnáth) beidh gá leo siúd a chur ar ais.

    < https://github.com/django/django/pull/16715>Ar deireadh, déan na comhaid athraithe/breise (.po agus .mo` araon) a cheangal agus cruthaigh PR nua atá dírithe ar bhrainse chobhsaí an eisiúint chomhfhreagrach (sampla `PR ag nuashonrú aistriúcháin do 4.2`_).

  7. <django-admin-manpage>:ref: `Nuashonraigh an leathanach lámhleabhar django-admin `:

    Shell
    $ cd docs
    $ make man
    $ man _build/man/django-admin.1  # do a quick sanity check
    $ cp _build/man/django-admin.1 man/django-admin.1
    

    agus ansin an leathanach fear athraithe a thiomnú.

  8. < https://github.com/django/django-docs-translations>Más é seo an scaoileadh “dot nialas” de shraith nua, cruthaigh brainse nua ón mbrainse cobhsaí reatha sa stór django-docs-translations. Mar shampla, agus Django 4.2 á scaoileadh:

    Shell
    $ git checkout -b stable/4.2.x origin/stable/4.1.x
    $ git push origin stable/4.2.x:stable/4.2.x
    
  9. Scríobh an bhlagphost fógra don scaoileadh. Is féidir leat é a iontráil isteach sa riarachán ag am ar bith agus é a mharcáil mar neamhghníomhach. Seo cúpla sampla: `sampla fógra scaoilte slándála `__, `sampla fógra scaoilte rialta `__, `fógra réamh-scaoilte sampla`__.

A few days before a feature freezeLink to this heading

In preparation for the alpha release, the directory /home/www/www/media/releases/A.B must be created on the djangoproject server.

Before the feature freeze, a branch targeting main must be created to prepare for the next feature release. It should be reviewed and approved a few days before the freeze, allowing it to be merged after the stable branch is cut. The following items should be addressed in this branch:

  1. Update the VERSION tuple in django/__init__.py, incrementing to the next expected release (example commit).

  2. Create a stub release note for the next feature release. Use the stub from the previous feature release or copy the contents from the current version and delete most of the contents leaving only the headings (example commit).

  3. Remove .. versionadded:: and .. versionchanged:: annotations in the documentation from two releases ago, as well as any remaining older annotations. For example, in Django 5.1, notes for 4.2 will be removed (example commit).

  4. Remove features that have reached the end of their deprecation cycle, including their docs and the .. deprecated:: annotation. Each removal should be done in a separate commit for clarity. In the commit message, add a Refs #XXXXX -- prefix linking to the original ticket where the deprecation began if possible. Make sure this gets noted in the removed features section in the release notes (example commit).

  5. Increase the default PBKDF2 iterations in django.contrib.auth.hashers.PBKDF2PasswordHasher by about 20% (pick a round number). Run the tests, and update the 3 failing hasher tests with the new values. Make sure this gets noted in the release notes (example commit).

Concrete examples for past feature release bootstrap branches: 5.2 bootstrap, 5.1 bootstrap, 5.0 bootstrap.

Feature freeze tasksLink to this heading

  1. Remove empty sections from the release notes (example commit).

  2. Build the release notes locally and read them. Make any necessary change to improve flow or fix grammar (example commit).

  3. Create a new stable branch from main. For example, when feature freezing Django 5.2:

    Shell
    $ git checkout -b stable/5.2.x upstream/main
    $ git push upstream -u stable/5.2.x:stable/5.2.x
    

    At the same time, update the django_next_version variable in docs/conf.py on the stable release branch to point to the new development version. For example, when creating stable/5.2.x, set django_next_version to '6.0' on the new stable branch (example commit).

  4. Go to the `Add release page in the admin`__, create a Release object for the final release, ensuring that the Release date field is blank, thus marking it as unreleased. For example, when creating stable/5.2.x, create 5.2 with the Release date field blank. If the release is part of an LTS branch, mark it so.

  5. Go to the `Add document release page in the admin`__, create a new DocumentRelease object for the English language for the newly created Release object. Do not mark this as default.

  6. Cuir an brainse nua leis `Léigh na Doc< https://readthedocs.org/projects/django/> s`_. < https://github.com/readthedocs/readthedocs.org/issues/5537>Ós rud é go bhfuil difríocht idir na hainmneacha leagan a ghintear go huathoibríoch (“Stable-A.B.X”) ó na hainmneacha leagan a úsáidtear in Read the Docs (“A.b.x”), `cruthaigh ticéad`_ ag iarraidh an leagan nua.

  7. Request the new classifier on PyPI. For example Framework :: Django :: 5.2.

  8. Create a roadmap page for the next release on Trac. To create a new page on the Wiki, navigate to the URL of where you wish to create the page and a "Create this page" button will be available.

  9. < https://code.djangoproject.com/#Djangoreleaseprocess>Nuashonraigh an brainse reatha atá faoi fhorbairt ghníomhach agus cuir brainse réamh-scaoilte leis sa `próiseas scaoilte Django `_ ar Trac.

  10. Update the docs/fixtures/doc_releases.json JSON fixture for djangoproject.com, so people without access to the production DB can still run an up-to-date copy of the docs site (example PR). This will be merged after the final release.

I ndáiríre an scaoilteLink to this heading

Ceart go leor, is é seo an chuid spraíúil, áit a bhrúimid scaoileadh amach i ndáiríre! Má tá tú ag eisiúint ileisiúint, déan na céimeanna seo arís do gach scaoileadh.

  1. Seiceáil go bhfuil `Jenkins `__ glas don leagan/na leaganacha atá tú ag cur amach. Is dócha nár cheart duit scaoileadh a eisiúint go dtí go mbeidh sé glas, agus ba cheart duit a chinntiú go gcuimsíonn an rith glas is déanaí na hathruithe atá á scaoileadh agat.

  2. Glan na nótaí scaoilte don eisiúint seo. Déan na hathruithe seo i príom agus backport chuig gach brainse ina bhfuil na nótaí scaoilte do leagan áirithe suite.

    1. <1994a2643881a9e3f9fa8d3e0794c1a9933a1831>Le haghaidh scaoileadh gné, bain an ceannteideal UNDER DEVELOPMENT ag barr na nótaí scaoilte, bain an réimír ``Táthas ag súil leis ``agus nuashonraigh an dáta scaoilte, más gá (:commit: `example commit `).

    2. <34a503162fe222033a1cd3249bccad014fcd1d20>Le haghaidh scaoileadh paiste, bain an réimír ``Táim ag súil leis ``agus nuashonraigh an dáta scaoilte do gach eisiúint, más gá (:commit: `example commit `).

  3. Tosaíonn scaoileadh i gcónaí ó bhrainse scaoilte, mar sin ba cheart duit a chinntiú go bhfuil tú ar bhrainse cobhsaí cothro Chomh maith leis sin, ba cheart go mbeadh timpeallacht fhíorúil glan tiomnaithe ar fáil agat in aghaidh an leagan atá Mar shampla:

    Shell
    $ git checkout stable/4.1.x
    $ git pull
    
  4. Más scaoileadh slándála é seo, cumaisc na paistí cuí ó django-slándáil `. Athbhunaigh na paistí seo de réir mar is gá chun tiomantas simplí a dhéanamh ar gach ceann ar an mbrainse scaoilte seachas tiomantas cumaisc. Chun é seo a chinntiú, déan iad a chumasc leis an bhratach --ff-only; mar shampla:

    Shell
    $ git checkout stable/4.1.x
    $ git merge --ff-only security/4.1.x
    

    (Glacann sé leis seo gur brainse sa repo django-slándála ina bhfuil na paistí slándála riachtanacha don chéad eisiúint eile sa tsraith 4.1 é slándálaí/4.1.x`.)

    Má dhiúltaíonn git cumasc le --ff-only, aistrigh go dtí an brainse paiste slándála agus athbhunaigh é ar an mbrainse atá ar tí é a chumasc isteach (git checkout security/4.1.x; git rebase stable/4.1.x) agus ansin athraigh ar ais agus déan an cumaisc. Déan cinnte go míníonn an teachtaireacht tiomanta do gach socrú slándála gur socrú slándála é an tiomantas agus go leanfaidh fógra (:commit: example security commit <bf39978a53f117ca02e9a0c78b76664a41a54745>).

  5. Nuashonraigh an uimhir leagan i django/__init__.py don scaoileadh. <2719a7f8c161233f45d34b624a9df9392c86cc1b>Féach le do thoil nótaí maidir le feadán VERSION a shocraí thíos le haghaidh sonraí faoi VERSION` (:commit: `example commit `).

    1. If this is a pre-release package also update the "Development Status" trove classifier in pyproject.toml to reflect this. An rc pre-release should not change the trove classifier (example commit for alpha release, example commit for beta release).

    2. Seachas sin, déan cinnte go bhfuil an aicmitheoir socraithe go Stádas Forbartha:: 5 - Táirgeacht/Cobhsa.

Building the artifactsLink to this heading

  1. Clibeáil an scaoileadh ag baint úsáide as git tag. Mar shampla:

    Shell
    $ git tag --sign --message="Tag 4.1.1" 4.1.1
    

    <tag>Is féidir leat do chuid oibre a sheiceáil ag rith ``git tag --verify ``.

  2. Déan cinnte go bhfuil crann go hiomlán glan agat trí git clean -dfx` a reáchtáil.

  3. Run python -m build to generate the release packages. This will create the release artifacts (tarball and wheel) in a dist/ directory. For Django 5.0 or older, you need to run make -f extras/Makefile instead.

  4. Ginigh hashes na bpacáistí scaoilte:

    Shell
    $ cd dist
    $ md5sum *
    $ sha1sum *
    $ sha256sum *
    
  5. Cruthaigh comhad “checksums”, Django- <<VERSION> > .checksum.txt ina bhfuil na hashes agus scaoil faisnéis. Tosaigh leis an teimpléad seo agus cuir isteach an leagan ceart, an dáta, an ID eochair GPG (ó gpg --list-keys --keyid-format LONG `), ainm úsáideora GitHub bainisteora scaoilte, URL scaoilte, agus seicsuimeanna:

    Text
    This file contains MD5, SHA1, and SHA256 checksums for the source-code
    tarball and wheel files of Django <<VERSION>>, released <<DATE>>.
    
    To use this file, you will need a working install of PGP or other
    compatible public-key encryption software. You will also need to have
    the Django release manager's public key in your keyring. This key has
    the ID ``XXXXXXXXXXXXXXXX`` and can be imported from GitHub, for example,
    if using the open-source GNU Privacy Guard implementation of PGP:
    
        curl https://github.com/<<RELEASE MANAGER GITHUB USERNAME>>.gpg | gpg --import -
    
    Once the key is imported, verify this file:
    
        gpg --verify <<THIS FILENAME>>
    
    Once you have verified this file, you can use normal MD5, SHA1, or SHA256
    checksumming applications to generate the checksums of the Django
    package and compare them to the checksums listed below.
    
    Release packages
    ================
    
    https://www.djangoproject.com/download/<<VERSION>>/tarball/
    https://www.djangoproject.com/download/<<VERSION>>/wheel/
    
    MD5 checksums
    =============
    
    <<MD5SUM>>  <<RELEASE TAR.GZ FILENAME>>
    <<MD5SUM>>  <<RELEASE WHL FILENAME>>
    
    SHA1 checksums
    ==============
    
    <<SHA1SUM>>  <<RELEASE TAR.GZ FILENAME>>
    <<SHA1SUM>>  <<RELEASE WHL FILENAME>>
    
    SHA256 checksums
    ================
    
    <<SHA256SUM>>  <<RELEASE TAR.GZ FILENAME>>
    <<SHA256SUM>>  <<RELEASE WHL FILENAME>>
    
  6. <version>Sínigh an comhad seiceála (gpg --clearsign --digest-algo SHA256 Django- .checksum.txt). <version>Gineann sé seo doiciméad sínithe, Django- <version>.checksum.txt.asc ar féidir leat a fhíorú ansin ag baint úsáide as gpg --verify Django- .checksum.txt.asc.

An scaoileadh (í) a chur ar fáil don phobalLink to this heading

Anois tá tú réidh chun an scaoileadh a chur amuigh ansin i ndáiríre. Chun seo a dhéanamh:

  1. Create a new Release entry in the djangoproject.com's admin. If this is a security release, this should be done 15 minutes before the announced release time, no sooner:

    Leagan

    Must match the version number as defined in the tarball (django-<version>.tar.gz). For example: "5.2", "4.1.1", or "4.2rc1".

    Is active

    Set to False until the release is fully published (last step).

    LTS

    Enable if the release is part of an LTS branch.

    Dates

    Set the release date to today. This release will not be published until is_active is enabled.

    Artifacts

    Upload the tarball (django-<version>.tar.gz), wheel (django-<version>-py3-none-any.whl), and checksum (django-<version>.checksum.txt.asc) files created earlier.

  2. Test that the release packages install correctly using pip. Here's one simple method (this just tests that the binaries are available, that they install correctly, and that migrations and the development server start, but it'll catch silly mistakes): https://code.djangoproject.com/wiki/ReleaseTestNewVersion.

  3. Rith an tógáil `confirm-release`__ ar Jenkins chun an comhad (í) seicsum a fhíorú (m.sh. bain úsáid as 4.2rc1` le haghaidh https://media.djangoproject.com/pgp/Django-4.2rc1.checksum.txt).

  4. Uaslódáil na pacáistí scaoilte chuig PyPi (le haghaidh réamh-eisiúintí, uaslódáil ach an comhad roth):

    Shell
    $ twine upload --repository django dist/*
    
  5. Update the newly created Release in the admin in djangoproject.com and enable the is_active flag.

  6. Brúigh do chuid oibre agus an chlib nua:

    Shell
    $ git push
    $ git push --tags
    
  7. Déan an blag post ag fógairt an scaoileadh beo.

  8. Le haghaidh scaoileadh leagan nua (m.sh. 4.1, 4.2), nuashonraigh an leagan cobhsaí réamhshocraithe de na doiciméid tríd an bhratach is_default a fhilleadh go True` ar an réad cuí DocumentRelease` sa bhunachar sonraí docs.djangoproject.com (déanfaidh sé seo go huathoibríoch go False` do gach duine eile).

    Cruthaigh rudaí nua DocumentRelease do gach teanga a bhfuil iontráil aige don eisiúint roimhe seo. Nuashonraigh comhad `robots.docs.txt`__ djangoproject.com tríd an toradh a ghintear ón ordú manage_translations.py robots_txt` a reáchtáil sa bhrainse chobhsaí reatha ón stóras `django-docs-translationy`__. Mar shampla, agus Django 4.2 á scaoileadh:

    Shell
    $ git checkout stable/4.2.x
    $ git pull
    $ python manage_translations.py robots_txt
    
  9. Post the release announcement to the django-announce mailing list and the Django Forum. This should include a link to the announcement blog post.

  10. Más scaoileadh slándála é seo, seol ríomhphost ar leithligh chuig oss-security@lists.openwall.com. Cuir ábhar tuairisciúil ar fáil, mar shampla, “Django” móide teideal an eisiúna ó na nótaí scaoilte (lena n-áirítear ID CVE). Ba chóir go mbeadh na sonraí leochaileachta san áireamh sa chomhlacht teachtaireachta, mar shampla, téacs blag an bhlag Cuir nasc leis an bpost blag fógra san áireamh.

Iar-scaoileadhLink to this heading

Tá tú beagnach déanta! Níl le déanamh anois ach:

  1. If this is not a pre-release, update the VERSION tuple in django/__init__.py again, incrementing to whatever the next expected release will be. For example, after releasing 4.1.1, update VERSION to VERSION = (4, 1, 2, 'alpha', 0) (example commit).

  2. Cuir an scaoileadh i liosta leaganacha Trac `_ más gá (agus déan é an réamhshocraithe tríd an socrú ``default_version` a athrú i `trac.ini`__ an code.djangoproject.com, más scaoileadh deiridh é). Ba chóir an leagan nua X.Y a chur leis tar éis an scaoileadh alfa agus ba chóir an leagan réamhshocraithe a nuashonrú tar éis scaoileadh “dot nialas”.

  3. Más scaoileadh deiridh é seo:

    1. < https://code.djangoproject.com/#Djangoreleaseprocess>Nuashonraigh an brainse cobhsaí reatha agus bain an brainse réamh-scaoilte sa phróiseas scaoilte `Django `_ ar Trac.

    2. < https://github.com/django/djangoproject.com/pull/1444>Nuashonraigh leathanach íoslódála djangoproject.com (`sampla PR`__).

  4. Más scaoileadh slándála a bhí ann, déan nuashonraithe:doc: `/releases/security `le sonraí na saincheisteanna a ndearnadh aghaidh orthu.

  5. If this was a pre-release, the translation catalogs need to be updated:

    1. Make a new branch from the recently released stable branch:

      Shell
      git checkout stable/A.B.x
      git checkout -b update-translations-catalog-A.B.x
      
    2. Ensure that the release's dedicated virtual environment is enabled and run the following:

      Shell
      $ cd django
      $ django-admin makemessages -l en --domain=djangojs --domain=django
      processing locale en
      
    3. Review the diff before pushing and avoid committing changes to the .po files without any new translations (example commit).

    4. Make a pull request against the corresponding stable branch and merge once approved.

    5. Forward port the updated source translations to the main branch (example commit).

  6. If this was an rc pre-release, call for translations for the upcoming release in the Django Forum - Internationalization category.

Nótaí maidir leis an tuple VERSION a shocrúLink to this heading

Tá tuairisciú leagan Django á rialú ag an tuipéal VERSION i django/__init__.py`. Is tuple cúig ghné é seo, a bhfuil a n-eilimintí:

  1. Leagan mór.

  2. Leagan mion.

  3. Leagan micrea-leagan.

  4. Stádas - is féidir a bheith ar cheann de “alfa”, “béite”, “rc” nó “críochnaitheach”.

  5. Uimhir an tsraith, le haghaidh pacáistí alpha/beta/RC a ritheann i seicheamh (ag ceadú, mar shampla, “béita 1", “béite 2", srl.).

Le haghaidh scaoileadh deiridh, bíonn an stádas “deiridh” i gcónaí agus is é uimhir na sraithe i gcónaí 0. Tuairiscítear uimhir shraith 0 le stádas “alfa” mar “réamh-alfa”.

Roinnt samplaí:

  • (4, 1, 1, “deiridh”, 0) → “4.1.1"

  • (4, 2, 0, “alfa”, 0) → “4.2 réamh-alfa”

  • (4, 2, 0, “béite”, 1) → “4.2 béite 1"