Commit a5becad9 authored by Florian Apolloner's avatar Florian Apolloner Committed by Jannis Leidel
Browse files

Fixed #19252 -- Added support for wheel packages.

parent ce45240d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -10,7 +10,9 @@ recursive-include docs *
recursive-include scripts *
recursive-include extras *
recursive-include tests *
recursive-include django/conf/app_template *
recursive-include django/conf/locale *
recursive-include django/conf/project_template *
recursive-include django/contrib/*/locale *
recursive-include django/contrib/admin/templates *
recursive-include django/contrib/admin/static *

django/bin/__init__.py

deleted100644 → 0
+0 −0

Empty file deleted.

+8 −5
Original line number Diff line number Diff line
@@ -175,13 +175,13 @@ OK, this is the fun part, where we actually push out a release!

#. Make sure you have an absolutely clean tree by running ``git clean -dfx``.

#. Run ``python setup.py sdist`` to generate the release package. This will
   create the release package in a ``dist/`` directory.
#. Run ``make -f extras/Makefile`` to generate the release packages. This will
   create the release packages in a ``dist/`` directory.

#. Generate the hashes of the release package::
#. Generate the hashes of the release packages::

        $ md5sum dist/Django-<version>.tar.gz
        $ sha1sum dist/Django-<version>.tar.gz
        $ md5sum dist/Django-*
        $ sha1sum dist/Django-*

   *FIXME: perhaps we should switch to sha256?*

@@ -221,6 +221,9 @@ Now you're ready to actually put the release out there. To do this:
        $ mktmpenv
        $ pip install https://www.djangoproject.com/m/releases/1.5/Django-1.5.1.tar.gz
        $ deactivate
        $ mktmpenv
        $ pip install https://www.djangoproject.com/m/releases/1.5/Django-1.5.1-py2.py3-none-any.whl
        $ deactivate

   This just tests that the tarballs are available (i.e. redirects are up) and
   that they install correctly, but it'll catch silly mistakes.

extras/Makefile

0 → 100644
+9 −0
Original line number Diff line number Diff line
all: sdist bdist_wheel

sdist:
	python setup.py sdist

bdist_wheel:
	python -c "import setuptools;__file__='setup.py';exec(compile(open(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))" bdist_wheel

.PHONY : sdist bdist_wheel
+5 −0
Original line number Diff line number Diff line
@@ -2,3 +2,8 @@
doc_files = docs extras AUTHORS INSTALL LICENSE README.rst
install-script = scripts/rpm-install.sh

[metadata]
license-file = LICENSE

[wheel]
universal = 1 #  use py2.py3 tag for pure-python dist
Loading