Skip to content

Commit

Permalink
[SW-485] Update instructions for a new PYPI.org (#333)
Browse files Browse the repository at this point in the history
* [SW-485] Update instructions for a new PYPI.org
  • Loading branch information
jakubhava committed Jun 29, 2017
1 parent a0591d6 commit 9be3f7c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 40 deletions.
40 changes: 0 additions & 40 deletions py/PUBLISHING_TO_PIPY.txt

This file was deleted.

50 changes: 50 additions & 0 deletions py/PUBLISHING_TO_PYPI.rst
@@ -0,0 +1,50 @@
This is tutorial how to publish PySparkling on PyPi
===================================================

1 - Build Sparkling Water. This is necessary step as the build process prepares additional packages which needs to be
in the python package

- sparkling_water package containing sparkling-water jar
- h2o package containing h2o python files

.. code:: bash
./gradlew build -x check
2 - Ensure you have ``.pypirc`` file in the ~ ( home) directory with the following content:

.. code:: xml
[distutils]
index-servers =
pypi
pypitest
[pypi]
username=your_username_to_pypi
password=your_password_to_pypi
[pypitest]
repository=https://test.pypi.org/legacy/
username=your_username_to_testpypi
password=your_password_to_testpypi
There are actually two servers - pypi and pypitest. Pypi is live server where the package needs to be uploaded
and pypitest is just for testing that our package uploads well on the server and has correct format.

3 - Go to ``py/build/pkg``

4 - Test that the package successfully uploads to pypi test by running:

.. code:: bash
python setup.py sdist upload -r pypitest
5 - If everything goes well, upload the package to pypi live:

.. code:: bash
python setup.py sdist upload -r pypi
6 - That's it!

0 comments on commit 9be3f7c

Please sign in to comment.