- This is a package for LangChain-OpenTutorial.
- Install Dependency Packages (First Time Only)
- Ensure that
setuptoolsandwheelare up-to-date.
pip install --upgrade setuptools wheel- Create Package
- Move to the project root directory in the terminal and execute the following command:
python setup.py sdist bdist_wheel- This command generates distribution-ready package files (.tar.gz and .whl) in the
dist/directory.
- Test Package Installation
- Install the generated package locally for testing.
pip install dist/langchain_opentutorial-0.0.0-py3-none-any.whl- After local testing, upload the package to PyPI using
twine.
- Install
twine
- Install
twineto upload the package to PyPI.
pip install twine- Upload to PyPI
- Use
twineto upload the package to PyPI.
twine upload dist/*- A PyPI account is required, and login credentials will be needed.