Skip to contentSkip to conversation

python3-django: add recipe for 3.1.1

PATCH Superseded Trevor Gamblin 3 participants 5 messages Sep 11, 2020 – Sep 12, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-django: add recipe for 3.1.1

meta-python only contains a recipe for django 2.2.x, so add a recipe file for the newest branch.

---
 .../recipes-devtools/python/python3-django_3.1.1.bb      | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-django_3.1.1.bb
meta-python/recipes-devtools/python/python3-django_3.1.1.bb new file +9 -0
new file mode 100644
index 000000000..b36cfb699
@@ -0,0 +1,9 @@
+require python-django.inc
+inherit setuptools3
+
+SRC_URI[md5sum] = "d5e894fb3c46064e84e9dc68a08a46d0"
+SRC_URI[sha256sum] = "59c8125ca873ed3bdae9c12b146fbbd6ed8d0f743e4cf5f5817af50c51f1fc2f"
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-sqlparse \
+"
Signature · 1 line
2.26.2
#1 lore raw

The reason for Django 2.2 is it is LTS. This version will now override unless the user sets PREFERRED_VERSION. The thrash on non-LTS Django is a PITA to support...

Quoted 60 lines · Trevor Gamblin

meta-python only contains a recipe for django 2.2.x, so

add a recipe file for the newest branch.

---

 .../recipes-devtools/python/python3-django_3.1.1.bb      | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/

python3-django_3.1.1.bb

meta-python/recipes-devtools/python/python3-django_3.1.1.bb +0 -0

new file mode 100644

index 000000000..b36cfb699

--- /dev/null

+++ b/meta-python/recipes-devtools/python/python3-django_3.1.1.bb

meta-python/recipes-devtools/python/python3-django_3.1.1.bb +5 -0
@@ -0,0 +1,9 @@
 
+require python-django.inc
 
+inherit setuptools3
 
+
 
+SRC_URI[md5sum] = "d5e894fb3c46064e84e9dc68a08a46d0"
 
+SRC_URI[sha256sum] =

"59c8125ca873ed3bdae9c12b146fbbd6ed8d0f743e4cf5f5817af50c51f1fc2f"

meta-python/recipes-devtools/python/python3-django_3.1.1.bb +4 -1
+
 
+RDEPENDS_${PN} += "\
 
+    ${PYTHON_PN}-sqlparse \
 
+"
 
--

2.26.2

#2 lore raw
Quoted 1 line · Tim Orling

The reason for Django 2.2 is it is LTS. This version will now override unless the user sets PREFERRED_VERSION. The thrash on non-LTS Django is a PITA to support...

Alright, let's hold off on merging this one then. I'll revisit it some time in the future.

Quoted 69 lines · On Fri, Sep 11, 2020 at 7:26 AM Trevor Gamblin <[email protected]…
    meta-python only contains a recipe for django 2.2.x, so

    add a recipe file for the newest branch.



    Signed-off-by: Trevor Gamblin <[email protected]
    <mailto:[email protected]>>

    ---

     .../recipes-devtools/python/python3-django_3.1.1.bb
    <http://python3-django_3.1.1.bb>     | 9 +++++++++

     1 file changed, 9 insertions(+)

     create mode 100644
    meta-python/recipes-devtools/python/python3-django_3.1.1.bb
    <http://python3-django_3.1.1.bb>



    diff --git
    a/meta-python/recipes-devtools/python/python3-django_3.1.1.bb
    <http://python3-django_3.1.1.bb>
    b/meta-python/recipes-devtools/python/python3-django_3.1.1.bb
    <http://python3-django_3.1.1.bb>

    new file mode 100644

    index 000000000..b36cfb699

    --- /dev/null

    +++ b/meta-python/recipes-devtools/python/python3-django_3.1.1.bb
    <http://python3-django_3.1.1.bb>

    @@ -0,0 +1,9 @@

    +require python-django.inc

    +inherit setuptools3

    +

    +SRC_URI[md5sum] = "d5e894fb3c46064e84e9dc68a08a46d0"

    +SRC_URI[sha256sum] =
    "59c8125ca873ed3bdae9c12b146fbbd6ed8d0f743e4cf5f5817af50c51f1fc2f"

    +

    +RDEPENDS_${PN} += "\

    +    ${PYTHON_PN}-sqlparse \

    +"

    -- 

    2.26.2
#3 lore raw
Quoted 28 lines · Trevor Gamblin

On 9/11/20 5:02 PM, Tim Orling wrote:

The reason for Django 2.2 is it is LTS. This

version will now override unless the user sets

PREFERRED_VERSION. The thrash on non-LTS Django is a PITA to

Quoted 9 lines

support...

Alright, let's hold off on merging this one then. I'll revisit it

some time in the future.

I’m not steadfastly against this, it just cannot be the default. Prior experience has been a lot of pain. Every single YP/OE Django app we currently have is brittle with Django version, although I believe David Reyna got Toaster to work with Django 3. The next LTS will be Django 3.2, starting in April 2021.

I am open to other ideas, but the default must remain the current LTS version.

Quoted 208 lines

On Fri, Sep 11, 2020 at 7:26

AM Trevor Gamblin <[email protected]>

wrote:

meta-python

Quoted 177 lines

only contains a recipe for django 2.2.x, so

add a recipe file for the newest branch.

---

.../recipes-devtools/python/python3-django_3.1.1.bb

    | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/

python3-django_3.1.1.bb

(quoted diff) +0 -0

b/meta-python/recipes-devtools/python/python3-django_3.1.1.bb

new file mode 100644

index 000000000..b36cfb699

--- /dev/null

+++ b/meta-python/recipes-devtools/python/python3-django_3.1.1.bb

(quoted diff) +5 -0
@@ -0,0 +1,9 @@
 
 
 
 
 
+require python-django.inc
 
 
 
 
 
+inherit setuptools3
 
 
 
 
 
+
 
 
 
 
 
+SRC_URI[md5sum] = "d5e894fb3c46064e84e9dc68a08a46d0"
 
 
 
 
 
+SRC_URI[sha256sum] =

"59c8125ca873ed3bdae9c12b146fbbd6ed8d0f743e4cf5f5817af50c51f1fc2f"

(quoted diff) +4 -1
+
 
 
 
 
 
+RDEPENDS_${PN} += "\
 
 
 
 
 
+    ${PYTHON_PN}-sqlparse \
 
 
 
 
 
+"
 
 
 
 
 
--

2.26.2

#4 lore raw
In reply to Tim Orling
Quoted 3 lines · Tim Orling

The reason for Django 2.2 is it is LTS. This version will now override unless the user sets PREFERRED_VERSION. The thrash on non-LTS Django is a PITA to support...

If we want to keep LTS as default but still offer newer releases as second options, we can use DEFAULT_PREFERENCE = "-1" in newer releases which folks can override in their custom layers.

Quoted 73 lines

On Fri, Sep 11, 2020 at 7:26 AM Trevor Gamblin <[email protected] <mailto:[email protected]>> wrote:

    meta-python only contains a recipe for django 2.2.x, so

    add a recipe file for the newest branch.



    Signed-off-by: Trevor Gamblin <[email protected]
    <mailto:[email protected]>>

    ---

     .../recipes-devtools/python/python3-django_3.1.1.bb
    <http://python3-django_3.1.1.bb>      | 9 +++++++++

     1 file changed, 9 insertions(+)

     create mode 100644
    meta-python/recipes-devtools/python/python3-django_3.1.1.bb
    <http://python3-django_3.1.1.bb>



    diff --git
    a/meta-python/recipes-devtools/python/python3-django_3.1.1.bb
    <http://python3-django_3.1.1.bb>
    b/meta-python/recipes-devtools/python/python3-django_3.1.1.bb
    <http://python3-django_3.1.1.bb>

    new file mode 100644

    index 000000000..b36cfb699

    --- /dev/null

    +++ b/meta-python/recipes-devtools/python/python3-django_3.1.1.bb
    <http://python3-django_3.1.1.bb>

    @@ -0,0 +1,9 @@

    +require python-django.inc

    +inherit setuptools3

    +

    +SRC_URI[md5sum] = "d5e894fb3c46064e84e9dc68a08a46d0"

    +SRC_URI[sha256sum] =
    "59c8125ca873ed3bdae9c12b146fbbd6ed8d0f743e4cf5f5817af50c51f1fc2f"

    +

    +RDEPENDS_${PN} += "\

    +    ${PYTHON_PN}-sqlparse \

    +"

    -- 

    2.26.2