h1 align="center">
Project description
PANGEAMT NLP
How to update and upload to PyPi
-
In the terminal go to the pangeamt_nlp directory.
-
Switch to the branch that made the PR:
git checkout <source_branch>
git pull
- Activate the virtual env:
source venv/bin/activate
- Remove the previous packages created:
rm -r dist
- Create the package source distribution:
python setup.py sdist
- Install the new distribution:
pip install dist/*
- Test the changes:
cd tests
python -m unittest
- 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
- Now, inside the docker install the new distribution:
pip install /nlp_dist/*
- Start the server:
python start_server.py
- Test the model with the changed package from another terminal:
curl -X POST -d '{"srcs": ["some testing segment"]}' 0.0.0.0:8081/translate
-
If it passes the tests accept the PR in github webpage.
-
Change to the master branch:
git checkout master
git pull
- Increment version number:
vim pangeamt_nlp/__init__.py
git add pangeamt_nlp/__init__.py
git commit -m "Update version number"
git push
- Delete older distributions:
rm -r dist/*
- Create source and binary distributions:
python setup.py sdist bdist_wheel
- Upload distributions to PyPi:
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pangeamt-nlp-1.0.26.tar.gz
(14.6 MB
view details)
Built Distribution
File details
Details for the file pangeamt-nlp-1.0.26.tar.gz
.
File metadata
- Download URL: pangeamt-nlp-1.0.26.tar.gz
- Upload date:
- Size: 14.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c306dc0be228e0ac6ae81af15e3f48aa525e341017a266a19865c02410fba71 |
|
MD5 | 2de48b68500fb29cb0a9d2293c132205 |
|
BLAKE2b-256 | 60d7e889a80aee4a4482faea8ae29b14fc5049040aa9c678730fb31fba7f28c5 |
File details
Details for the file pangeamt_nlp-1.0.26-py3-none-any.whl
.
File metadata
- Download URL: pangeamt_nlp-1.0.26-py3-none-any.whl
- Upload date:
- Size: 15.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e12b039ecf414fdcca8f0160fb05ce186ee16d0e7cf63aa80aa0502570833a8e |
|
MD5 | 549e5502c5f7e85a4fadf8a01501b85b |
|
BLAKE2b-256 | 74f415fd6fbe69da5246a7833e8860f569a0924db8db5891199a427ab8ab4a22 |