#!/bin/sh
#
# ===============================
# pywatchman pypi publishing tool
# ===============================
#
# this publishes the watchman python module to the pypi project
# index located at https://pypi.python.org/pypi/pywatchman. the
# metadata used for this process comes directly from setup.py.
#
# this requires write access to the pywatchman project on pypi
# as well as a ~/.pypirc of the following form:
#
#    [distutils]
#    index-servers = pypi
#
#    [pypi]
#    repository: https://pypi.python.org/pypi
#    username: <pypi_username>
#    password: <pypi_password>
#

python setup.py sdist upload -r pypi

#!/bin/sh
#
# ===============================
# pywatchman pypi publishing tool
# ===============================
#
# this publishes the watchman python module to the pypi project
# index located at https://pypi.python.org/pypi/pywatchman. the
# metadata used for this process comes directly from setup.py.
#
# this requires write access to the pywatchman project on pypi
# as well as a ~/.pypirc of the following form:
#
#    [distutils]
#    index-servers = pypi
#
#    [pypi]
#    repository: https://pypi.python.org/pypi
#    username: <pypi_username>
#    password: <pypi_password>
#

python setup.py sdist bdist_wheel upload -r pypi

Use a wheel format when publishing the watchman pypi package
Use a wheel format when publishing the watchman pypi package

Summary:
The Python wheel format is the preferred way of distributing Python packages with C extensions. This just adds the `bdist_wheel` step to the build script.

The `wheel` package needs to be installed on any development machine this is being run on.
Closes https://github.com/facebook/watchman/pull/502

Differential Revision: D5495066

Pulled By: sid0

fbshipit-source-id: 511c5dc692a1157aae6f2d0a83d73bc055aa471e
