1 |
commit: 0e722660f91cf2b5b7fe6941e397ca97909aa55d |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 1 12:25:07 2018 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 1 12:25:59 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e722660 |
7 |
|
8 |
dev-python/django: bump to 2.1.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
11 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
12 |
|
13 |
dev-python/django/Manifest | 1 + |
14 |
dev-python/django/django-2.1.2.ebuild | 87 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 88 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
18 |
index b811f76a821..8eaff3f2943 100644 |
19 |
--- a/dev-python/django/Manifest |
20 |
+++ b/dev-python/django/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST Django-1.11.15.tar.gz 7843843 BLAKE2B b7713de8136302d8d95929ed449ab01173e28c0d5d20529eaae9d6bd6d323f53b674a4fb6e8398da4b57a223f10ef63e7961accc8fd777313f18b4e2b0f225ed SHA512 4ea18c59f7c74d0b6deb9d292d5de068c6dcc53d9596f321f5a7e823ff5fe423cc8d69c88bf53e3acd9c36c4ecc4447148243a127d5114a4894b0fd4d449f37e |
23 |
DIST Django-2.0.8.tar.gz 7987343 BLAKE2B ab35f50ce1911cb9603c7ac85e7ab01e6019ce9a2dac4cd733b11f35722368946ff3a130c3c791da4d49cf609b5747b4c5de64e29e27a8e12abb7f9e29cd363b SHA512 ac3cc3f58cb977518c6f549834beb35677c2d5541cfb5723045b98165926e826178cb33737c52a0f999be24bc38b84dde489a5f91d1c8d51b8338aa611acb518 |
24 |
DIST Django-2.1.1.tar.gz 8595422 BLAKE2B b4d46162b8a48ada2e1321e6731afdfac8c6acbc394991178c33a374ea2d61d0b1f91ede6a56f9e88d20ba2ddbe6910fe452f79fc6cfb342fddc6222c454dad1 SHA512 e29180097cda0de35eb3dac77b7f7f3f31771257b9bfcd6d3fd37d421c572e1226bb1760635ccedee357cee7ca3dcb302de6126a771007a2cdef82970a596813 |
25 |
+DIST Django-2.1.2.tar.gz 8611286 BLAKE2B 5107fd04ee11ae4ded3d8914d840e323e26617b526ab877654de08caa6ce1cb6f053d3afbdbdbda17ab26b1ed1bcb158ef092a63ef14393b87ed98e612cf43aa SHA512 3510f872762e75c7e66987857616d958d15bef91ce2d9e1656abcf4e0221b1c6ff72c59fd29643aa0b0288118db76d58023cffe48f401e7cdcd03d71822a282d |
26 |
|
27 |
diff --git a/dev-python/django/django-2.1.2.ebuild b/dev-python/django/django-2.1.2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..89d87db8de4 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/django/django-2.1.2.ebuild |
32 |
@@ -0,0 +1,87 @@ |
33 |
+# Copyright 1999-2018 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
39 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
40 |
+ |
41 |
+inherit bash-completion-r1 distutils-r1 eutils |
42 |
+ |
43 |
+MY_PN="Django" |
44 |
+MY_P="${MY_PN}-${PV}" |
45 |
+ |
46 |
+DESCRIPTION="High-level Python web framework" |
47 |
+HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
48 |
+SRC_URI="https://www.djangoproject.com/m/releases/$(ver_cut 1-2)/${MY_P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="BSD" |
51 |
+# admin fonts: Roboto (media-fonts/roboto) |
52 |
+LICENSE+=" Apache-2.0" |
53 |
+# admin icons, jquery, xregexp.js |
54 |
+LICENSE+=" MIT" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
57 |
+IUSE="doc sqlite test" |
58 |
+ |
59 |
+RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]" |
60 |
+BDEPEND=" |
61 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
62 |
+ doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) |
63 |
+ test? ( |
64 |
+ $(python_gen_impl_dep sqlite) |
65 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
66 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
67 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
68 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
69 |
+ dev-python/mock[${PYTHON_USEDEP}] |
70 |
+ )" |
71 |
+ |
72 |
+S="${WORKDIR}/${MY_P}" |
73 |
+ |
74 |
+PATCHES=( |
75 |
+ "${FILESDIR}"/${PN}-2.0.7-bashcomp.patch |
76 |
+) |
77 |
+ |
78 |
+python_prepare_all() { |
79 |
+ # Prevent d'loading in the doc build |
80 |
+ sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die |
81 |
+ |
82 |
+ distutils-r1_python_prepare_all |
83 |
+} |
84 |
+ |
85 |
+python_compile_all() { |
86 |
+ use doc && emake -C docs html |
87 |
+} |
88 |
+ |
89 |
+python_test() { |
90 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
91 |
+ # and don't work with ${BUILD_DIR}/lib. |
92 |
+ PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \ |
93 |
+ || die "Tests fail with ${EPYTHON}" |
94 |
+} |
95 |
+ |
96 |
+python_install_all() { |
97 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
98 |
+ bashcomp_alias ${PN}-admin django-admin.py |
99 |
+ |
100 |
+ if use doc; then |
101 |
+ rm -fr docs/_build/html/_sources || die |
102 |
+ local HTML_DOCS=( docs/_build/html/. ) |
103 |
+ fi |
104 |
+ |
105 |
+ distutils-r1_python_install_all |
106 |
+} |
107 |
+ |
108 |
+pkg_postinst() { |
109 |
+ elog "Additional Backend support can be enabled via" |
110 |
+ optfeature "MySQL backend support" dev-python/mysqlclient |
111 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
112 |
+ echo "" |
113 |
+ elog "Other features can be enhanced by" |
114 |
+ optfeature "GEO Django" sci-libs/gdal[geos] |
115 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
116 |
+ optfeature "ImageField Support" dev-python/pillow |
117 |
+ optfeature "Password encryption" dev-python/bcrypt |
118 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
119 |
+} |