[Django] #30160: Support more archive formats for app and project templates.

11 views
Skip to first unread message

Django

unread,
Feb 5, 2019, 4:47:26 PM2/5/19
to django-...@googlegroups.com
#30160: Support more archive formats for app and project templates.
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: assigned
Cleanup/optimization |
Component: Core | Version: master
(Management commands) | Keywords: startapp,
Severity: Normal | startproject, lzma, xz
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Python 3.3 added support for lzma compression and lzma-compressed
tarfiles.

In addition, there are other well-known extensions for some of the already
supported compression formats that Django currently doesn't recognise:
http://www.gnu.org/software/tar/manual/html_node/gzip.html#auto_002dcompress

--
Ticket URL: <https://code.djangoproject.com/ticket/30160>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 5, 2019, 5:03:47 PM2/5/19
to django-...@googlegroups.com
#30160: Support more archive formats for app and project templates.
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: startapp, | Triage Stage:
startproject, lzma, xz | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Nick Pope):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/10947 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/30160#comment:1>

Django

unread,
Feb 5, 2019, 8:18:47 PM2/5/19
to django-...@googlegroups.com
#30160: Support more archive formats (e.g. lmza) for app and project templates

-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: startapp, | Triage Stage: Accepted
startproject, lzma, xz |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/30160#comment:2>

Django

unread,
Feb 6, 2019, 4:11:28 PM2/6/19
to django-...@googlegroups.com
#30160: Support more archive formats (e.g. .tar.xz) for app and project templates

-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: startapp, | Triage Stage: Accepted
startproject, lzma, xz |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

--
Ticket URL: <https://code.djangoproject.com/ticket/30160#comment:3>

Django

unread,
Feb 13, 2019, 2:13:49 PM2/13/19
to django-...@googlegroups.com
#30160: Support more archive formats (e.g. .tar.xz) for app and project templates
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: startapp, | Triage Stage: Accepted
startproject, lzma, xz |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* needs_better_patch: 0 => 1


Comment:

Removing from review queue as per Nick's comment on the PR, "please don't
merge yet. I noticed
[https://docs.python.org/3/library/shutil.html#shutil.unpack_archive
shutil.unpack_archive()] and want to investigate replacing
`django.utils.archive`.

--
Ticket URL: <https://code.djangoproject.com/ticket/30160#comment:4>

Django

unread,
Jul 26, 2019, 7:26:32 PM7/26/19
to django-...@googlegroups.com
#30160: Support more archive formats (e.g. .tar.xz) for app and project templates
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: startapp, | Triage Stage: Accepted
startproject, lzma, xz |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Nick Pope):

* needs_better_patch: 1 => 0


Comment:

[https://github.com/django/django/pull/10947 PR] updated. Have abandoned
looking at `shutil.unpack_archive()` for now as the current implementation
does some fiddling related to permissions that is still required and
cannot currently be worked around.

--
Ticket URL: <https://code.djangoproject.com/ticket/30160#comment:5>

Django

unread,
Jul 30, 2019, 6:07:49 AM7/30/19
to django-...@googlegroups.com
#30160: Support more archive formats (e.g. .tar.xz) for app and project templates
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: startapp, | Triage Stage: Accepted
startproject, lzma, xz |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"0509148c2458a990cd0a7fd2d7cfbd45eb43e000" 0509148c]:
{{{
#!CommitTicketReference repository=""
revision="0509148c2458a990cd0a7fd2d7cfbd45eb43e000"
Refs #30160 -- Made destination path a required argument of extract().
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30160#comment:6>

Django

unread,
Jul 31, 2019, 4:21:03 AM7/31/19
to django-...@googlegroups.com
#30160: Support more archive formats (e.g. .tar.xz) for app and project templates
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: startapp, | Triage Stage: Accepted
startproject, lzma, xz |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"69a30f620eb46246c0b39cd40a0f7df57f2af8d0" 69a30f62]:
{{{
#!CommitTicketReference repository=""
revision="69a30f620eb46246c0b39cd40a0f7df57f2af8d0"
Refs #30160 -- Simplified archive extension map and added other aliases.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30160#comment:7>

Django

unread,
Jul 31, 2019, 4:21:04 AM7/31/19
to django-...@googlegroups.com
#30160: Support more archive formats (e.g. .tar.xz) for app and project templates
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: closed

Cleanup/optimization |
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution: fixed

Keywords: startapp, | Triage Stage: Accepted
startproject, lzma, xz |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"f618e033acd37d59b536d6e6126e6c5be18037f6" f618e033]:
{{{
#!CommitTicketReference repository=""
revision="f618e033acd37d59b536d6e6126e6c5be18037f6"
Fixed #30160 -- Added support for LZMA and XZ templates to
startapp/startproject management commands.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30160#comment:10>

Django

unread,
Jul 31, 2019, 4:21:04 AM7/31/19
to django-...@googlegroups.com
#30160: Support more archive formats (e.g. .tar.xz) for app and project templates
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: startapp, | Triage Stage: Accepted
startproject, lzma, xz |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"c95d063e776e849cf1a0bf616c654165cb89c706" c95d063]:
{{{
#!CommitTicketReference repository=""
revision="c95d063e776e849cf1a0bf616c654165cb89c706"
Refs #30160 -- Simplified and improved tests for django.utils.archive.

The file executable should have 0o775 permission not only u=x.
The file no_permissions should have 0o644 u=r.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30160#comment:9>

Django

unread,
Jul 31, 2019, 4:21:05 AM7/31/19
to django-...@googlegroups.com
#30160: Support more archive formats (e.g. .tar.xz) for app and project templates
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: startapp, | Triage Stage: Accepted
startproject, lzma, xz |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"1692f69e37ccf7985a1f62875babab91984b9773" 1692f69e]:
{{{
#!CommitTicketReference repository=""
revision="1692f69e37ccf7985a1f62875babab91984b9773"
Refs #30160 -- Doc'd startapp/startproject support for tarfile templates.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30160#comment:8>

Reply all
Reply to author
Forward
0 new messages