Metadata-Version: 2.1
Name: pangeamt-nlp
Version: 1.0.19
Summary: h1 align="center">
Home-page: UNKNOWN
Author: Pangeamt
License: UNKNOWN
Description: <h1 align="center">
            PANGEAMT NLP
        </h1>
        
        <p align="left">
            <a href="http://52.16.81.128:5019/blue/organizations/jenkins/pangeamt-nlp/activity">
                <img alt="Jenkins tests" src="https://img.shields.io/jenkins/tests?compact_message&failed_label=failed%F0%9F%A4%A6%E2%80%8D%E2%99%80%EF%B8%8F&jobUrl=http%3A%2F%2F52.16.81.128%3A5019%2Fjob%2Fpangeamt-nlp%2Fjob%2Fmaster%2F&passed_label=passed%20%20%F0%9F%91%8D">
            </a>
            <a href="https://pypi.org/project/pangeamt-nlp/">
                <img alt="GitHub release" src="https://img.shields.io/pypi/v/pangeamt-nlp">
            </a>
        </p>
        
        ### How to update and upload to PyPi
        
        1. In the terminal go to the pangeamt_nlp directory.
        
        2. Switch to the branch that made the PR:
        ```
        git checkout <source_branch>
        git pull
        ```
        3. Activate the virtual env:
        ```
        source venv/bin/activate
        ```
        4. Remove the previous packages created:
        ```
        rm -r dist
        ```
        5. Create the package source distribution:
        ```
        python setup.py sdist
        ```
        6. Install the new distribution:
        ```
        pip install dist/*
        ```
        7. Test the changes:
        ```
        cd tests
        ```
        ```
        python -m unittest
        ```
        7. You can now test it inside the docker:
        ```
        sudo docker run -it -p 8081:8081 -v <absolute path to dist folder>:/nlp_dist enginestore.pangeamt.com/corporate/<engine_image> /bin/bash
        ```
        8. Now, inside the docker install the new distribution:
        ```
        pip install /nlp_dist/*
        ```
        9. Start the server:
        ```
        python start_server.py
        ```
        10. Test the model with the changed package from another terminal:
        ```
        curl -X POST -d '{"srcs": ["some testing segment"]}' 0.0.0.0:8081/translate
        ```
        11. If it passes the tests accept the PR in github webpage.
        
        12. Change to the master branch:
        ```
        git checkout master
        git pull
        ```
        13. Increment version number:
        ```
        vim pangeamt_nlp/__init__.py
        git add pangeamt_nlp/__init__.py
        git commit -m "Update version number"
        git push
        ```
        14. Delete older distributions:
        ```
        rm -r dist/*
        ```
        15. Create source and binary distributions:
        ```
        python setup.py sdist bdist_wheel
        ```
        16. Upload distributions to PyPi:
        ```
        twine upload dist/*
        ```
Platform: UNKNOWN
Description-Content-Type: text/markdown
