semvec/pypi-packages huggingface dataset:
trovetde 0.1.5
Common code for Trove TDE
Requires Python: >=3.7

# tde-common-libary

Welcome to the new TDE Common Library.

This repo will house all the shared code that can be re-used across multiple projects and 
applications, i.e ETL scripts, EMR notebooks, ingestion functions, etc. 

## Note

Any changes to this repo needs to be thoroughly tested and reviewed by the team.
The blast radius of common functions can be large and unexpected, exercise caution when making changes. 

## How to use this repo

To make changes to the PyPi package, you will need to follow these steps:

### Step 1
Create an account on PyPi https://pypi.org/account/register/
Let me know (Sanjay here!) your username once you’ve done this, so I can give you access to the project on PyPi.
There will likely be another admin on the project who can do the same. 

### Editing the code

1. Clone https://github.com/trovemoney/tde-common-library
2. Create a venv and install requirements.txt
3. Make your changes to the common functions
4. Create a PR with the code changes. 
**IMPORTANT**: Hold off on the remaining steps until the PR is approved!
5. **Ensure the PR is approved**
6. Delete all the files inside the dist folder 
7. Change the version number in setup.py.
8. Run setup file python setup.py bdist_wheel. 
9. Create your token https://pypi.org/manage/account/#api-tokens
10. Note: If you've already added a token to your local home directory, skip to the next step. Otherwise, setup your token in terminal with 
```touch ~/.pypirc and edit the file to look like the following :
[pypi]
  username = __token__   <-------- LEAVE IT AS IS
  password = pypi-AgEIcHlwaS5vcmcCJDg3 <----- REPLACE WITH YOUR TOKEN 
```
11. Finally, upload only that dist file or run twine (if using) 
```
twine upload --skip-existing dist/*
```