Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SW-485] Update instructions for a new PYPI.org #333

Merged
merged 3 commits into from Jun 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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!