From patchwork Wed Oct 16 19:08:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1178085 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gcf7StT9"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46thgN582rz9sNx for ; Thu, 17 Oct 2019 06:09:36 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 523BD88407; Wed, 16 Oct 2019 19:09:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k1TusNeLMLpd; Wed, 16 Oct 2019 19:09:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 9CFAE88408; Wed, 16 Oct 2019 19:09:30 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 905931BF35F for ; Wed, 16 Oct 2019 19:09:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8DB7785693 for ; Wed, 16 Oct 2019 19:09:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tMQM4V426GFJ for ; Wed, 16 Oct 2019 19:09:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4020B8472A for ; Wed, 16 Oct 2019 19:09:24 +0000 (UTC) Received: by mail-pg1-f193.google.com with SMTP id p12so5507134pgn.6 for ; Wed, 16 Oct 2019 12:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+fLbGPtQ+avX5fsGuBWQWgM9UcksIRbiWPetKvGdfxU=; b=gcf7StT91a7XlOAQbuldmAsgai42adZ2PyEoVWT2+pRfMOwCv9djYmpyUpJRUey/2n raSc7/XLDJJ9Ao59vmskXL5YoFznwfidkZak83WQvAhlS2/fWqaykDOiQOEWrYzRvAnw 3gu9Wb8SXXSrE3WnwD5gvUE6nKJbi5eR5JtMX1dywal4YVWW2kXeHy58Gr8mS9xlB7KH PIW1liiRBVddiB8oldm1G8yYZF8KLx7Ikazh1SJ/y96wgfVXpyrHd35S8WW0MlOmhS9T whR2ZbZleeYWrrkXz5AEnUU9FjEUhjBgrNd3BKLzu7AMNoOrGWy8KDfNx9TtDUrydo6S z54w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+fLbGPtQ+avX5fsGuBWQWgM9UcksIRbiWPetKvGdfxU=; b=m7Wx7i1uva/ABz73688vQB1Sj1tsJ9i78W28OUVoLd16Z7Df5fmVpBRcsXIMbjdzBa Zii0JVql1XZzPAxYJux2qZgSUxK7mdH0u8VsRKBC+dPwDa1YF3VFK22LHuv/jwHjFSgi IC9C8pPG/lgqBJcH382N3IDkzSkBstHFmwcT15dm1Yyn05SdtPR8Qe7/nuaZbosfZm7G zJRbJ//yjJu1PRapaveUxyFbsXtiPPAwllsiZPpAUH2H9JPApStpGHqxxA+hb8ACUwdv aWxC1lfJWBjk97DNTlOiG7Cr2uGhzjfZpALh3Bd/c2dI52IpEH8M3N5cfxLCOkQJJb8r /LTw== X-Gm-Message-State: APjAAAVj4+UDyVgovzPxwsA6ZF3V4iHQ6/SwVM+1hBBsbuV6vS2gJE3Z A8BK+aD7deYM8ZhQ+yV0dhIZmUJpw+U= X-Google-Smtp-Source: APXvYqxYDclvm3PvWYGS1J8vKaL/jAbeZz9+pODsrVkflFt6TDrewC34i4e113i5Gg8w7W5xrd13qg== X-Received: by 2002:a63:c10:: with SMTP id b16mr48400238pgl.333.1571252963916; Wed, 16 Oct 2019 12:09:23 -0700 (PDT) Received: from localhost.localdomain (64-52-140-58.championbroadband.com. [64.52.140.58]) by smtp.gmail.com with ESMTPSA id o42sm3253107pjo.32.2019.10.16.12.09.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 12:09:23 -0700 (PDT) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Wed, 16 Oct 2019 12:08:59 -0700 Message-Id: <20191016190900.107501-1-aduskett@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/2] package/python-django: bump to version 2.2.6 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adam Duskett , Ricardo Martincoski , Oli Vogt , Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett Signed-off-by: Adam Duskett --- package/python-django/python-django.hash | 4 ++-- package/python-django/python-django.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package/python-django/python-django.hash b/package/python-django/python-django.hash index b89ee907d3..0e6b7b2c63 100644 --- a/package/python-django/python-django.hash +++ b/package/python-django/python-django.hash @@ -1,5 +1,5 @@ # md5, sha256 from https://pypi.org/pypi/django/json -md5 b32e396c354880742d85a7628a0bdd5a Django-2.2.4.tar.gz -sha256 16a5d54411599780ac9dfe3b9b38f90f785c51259a584e0b24b6f14a7f69aae8 Django-2.2.4.tar.gz +md5 796c175a2f94e938c60d84b4565216af Django-2.2.6.tar.gz +sha256 a8ca1033acac9f33995eb2209a6bf18a4681c3e5269a878e9a7e0b7384ed1ca3 Django-2.2.6.tar.gz # Locally computed sha256 checksums sha256 b846415d1b514e9c1dff14a22deb906d794bc546ca6129f950a18cd091e2a669 LICENSE diff --git a/package/python-django/python-django.mk b/package/python-django/python-django.mk index 7dbf7a38fd..1c810b8af7 100644 --- a/package/python-django/python-django.mk +++ b/package/python-django/python-django.mk @@ -4,10 +4,10 @@ # ################################################################################ -PYTHON_DJANGO_VERSION = 2.2.4 +PYTHON_DJANGO_VERSION = 2.2.6 PYTHON_DJANGO_SOURCE = Django-$(PYTHON_DJANGO_VERSION).tar.gz # The official Django site has an unpractical URL -PYTHON_DJANGO_SITE = https://files.pythonhosted.org/packages/19/11/3449a2071df9427e7a5c4dddee2462e88840dd968a9b0c161097154fcb0c +PYTHON_DJANGO_SITE = https://files.pythonhosted.org/packages/c7/2c/bbd0fddf6a08456c3100b8e8b230f3288d4511985aa4e2368b0d115b5aae PYTHON_DJANGO_LICENSE = BSD-3-Clause PYTHON_DJANGO_LICENSE_FILES = LICENSE PYTHON_DJANGO_SETUP_TYPE = setuptools From patchwork Wed Oct 16 19:09:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1178084 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aikhLism"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46thgJ38gWz9sNx for ; Thu, 17 Oct 2019 06:09:32 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A44198840B; Wed, 16 Oct 2019 19:09:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m1sg6eFaoHNf; Wed, 16 Oct 2019 19:09:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 7AA5E88400; Wed, 16 Oct 2019 19:09:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 2B4901BF35F for ; Wed, 16 Oct 2019 19:09:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 27B8820484 for ; Wed, 16 Oct 2019 19:09:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AzEW80JusLtc for ; Wed, 16 Oct 2019 19:09:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by silver.osuosl.org (Postfix) with ESMTPS id 465C2203AB for ; Wed, 16 Oct 2019 19:09:26 +0000 (UTC) Received: by mail-pf1-f173.google.com with SMTP id q7so15299928pfh.8 for ; Wed, 16 Oct 2019 12:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iyLO9ZXy/Nsg9rYxbKs/RGyXqZQcva6+/vS0MBYoXms=; b=aikhLism1YgJvNJ5ZCvNFnVb74vpcSTp7S9q9btwc8SFvF06btvVNTNjO4I08Dkq5t UqAyOFhDN0Xvr0uuKT9qLhFiSWGZnER1cBeH1N9w7Ys/IyprrwV5cd/OoDOO2bjaEXsJ BhUqQu7CAvybiWgFSfNONRjxAppMznKW8cDhLU5vvscTjRVk2XS0AA15PGK+OT0ZRSbU Nko+MMDzUxVCV9PNl4xQzS7MwZtYwcvRQRKw4KQ1QAtvlpZ92IV0NatLwNG1zCtvK+Rv mzlmWftguJr55wY/YhSHOYuWPiStcSdRwVG1QU8ICWv8ZnewrCQKXxVHEQGoWbXHicBc arbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iyLO9ZXy/Nsg9rYxbKs/RGyXqZQcva6+/vS0MBYoXms=; b=UtxsNNsgsd1j9JFA6IQUGzEp9Gq++BQsL9Niuas0p/fBzRQF5k2r499r5fwwKP0sgb fGKlUNFoeO1tkwqLSQQcp+ES+MDxVF90tJ9eRBlHi9I8SEK8Hhlzsl3ilU/E97Tabxbn 6pN+KgAtCOjlPgIPDb387u2nSEuv7amvPU3oOawf3qmOLGur0XEUOQWdye0JwQjQWN1S kGzJngjJl36nCMTuLPCXFdBGEFu4Hd+G6kTnvKLC9ipMS15KDvnuiPHdfqHS4LA0PyNY GTGDxNWj5ZRi/XlmJHMQb6rVJghCgXwy4NsT1nS+gXPKhNI+xQ7pkxK7no/jC5Ing/l3 Myvg== X-Gm-Message-State: APjAAAUQTBRI7XNXLKPwcXBPcW1opJSS9UPoJ+nW9uWcfWFovRzcQXoY EvciTrLnRmWDvmp05Xg6qPRrjkHSzuw= X-Google-Smtp-Source: APXvYqwp/ElqOaTABM/LXnjat3yDJ05YQ9hxWWbfyfBtglfAWPoq7EMF4+UQQXqZqr6JxaUzzcxK0Q== X-Received: by 2002:a17:90a:9306:: with SMTP id p6mr6829406pjo.68.1571252965162; Wed, 16 Oct 2019 12:09:25 -0700 (PDT) Received: from localhost.localdomain (64-52-140-58.championbroadband.com. [64.52.140.58]) by smtp.gmail.com with ESMTPSA id o42sm3253107pjo.32.2019.10.16.12.09.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 12:09:24 -0700 (PDT) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Wed, 16 Oct 2019 12:09:00 -0700 Message-Id: <20191016190900.107501-2-aduskett@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191016190900.107501-1-aduskett@gmail.com> References: <20191016190900.107501-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 2/2] support/testing: add python-django test X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adam Duskett , Ricardo Martincoski , Oli Vogt , Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett This test comprises of two simple steps: 1: Start a new simple project called testsite. 2: Run ./manage.py migrate on the new testsite. Reviewed-by: Ricardo Martincoski Signed-off-by: Adam Duskett --- Changes v1 -> v2: - Cleaned up flake8 warning. (Ricardo) - Used && instead of ; when changing directories (Ricardo) - Removed extra blank line (Ricardo) .gitlab-ci.yml | 1 + .../tests/package/sample_python_django.py | 1 + .../tests/package/test_python_django.py | 26 +++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 support/testing/tests/package/sample_python_django.py create mode 100644 support/testing/tests/package/test_python_django.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 59efd51340..a840bcba0e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -438,6 +438,7 @@ tests.package.test_python_constantly.TestPythonPy3Constantly: { extends: .runtim tests.package.test_python_crossbar.TestPythonPy3Crossbar: { extends: .runtime_test } tests.package.test_python_cryptography.TestPythonPy2Cryptography: { extends: .runtime_test } tests.package.test_python_cryptography.TestPythonPy3Cryptography: { extends: .runtime_test } +tests.package.test_python_django.TestPythonPy3Django: { extends: .runtime_test } tests.package.test_python_incremental.TestPythonPy2Incremental: { extends: .runtime_test } tests.package.test_python_incremental.TestPythonPy3Incremental: { extends: .runtime_test } tests.package.test_python_passlib.TestPythonPy2Passlib: { extends: .runtime_test } diff --git a/support/testing/tests/package/sample_python_django.py b/support/testing/tests/package/sample_python_django.py new file mode 100644 index 0000000000..c2bad566a7 --- /dev/null +++ b/support/testing/tests/package/sample_python_django.py @@ -0,0 +1 @@ +import django # noqa: F401 diff --git a/support/testing/tests/package/test_python_django.py b/support/testing/tests/package/test_python_django.py new file mode 100644 index 0000000000..6145d8be8f --- /dev/null +++ b/support/testing/tests/package/test_python_django.py @@ -0,0 +1,26 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonDjango(TestPythonPackageBase): + config = TestPythonPackageBase.config + sample_scripts = ["tests/package/sample_python_django.py"] + + def run_sample_scripts(self): + cmd = "cd /opt && /usr/bin/django-admin startproject testsite" + _, exit_code = self.emulator.run(cmd, timeout=30) + self.assertEqual(exit_code, 0) + cmd = "cd /opt/testsite && " + self.interpreter + " ./manage.py migrate" + output, exit_code = self.emulator.run(cmd, timeout=30) + self.assertIn("Operations to perform:", output[0]) + self.assertEqual(exit_code, 0) + + +class TestPythonPy3Django(TestPythonDjango): + __test__ = True + config = TestPythonDjango.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_DJANGO=y + BR2_PACKAGE_PYTHON_SQLPARSE=y + BR2_PACKAGE_PYTHON3_SQLITE=y + """