diff --git a/.github/workflows/publish_on_pypi.yml b/.github/workflows/publish_on_pypi.yml index 9cd7841..200424d 100644 --- a/.github/workflows/publish_on_pypi.yml +++ b/.github/workflows/publish_on_pypi.yml @@ -6,7 +6,6 @@ on: jobs: deploy: - runs-on: ubuntu-latest steps: @@ -14,16 +13,20 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.x' - - name: Install dependencies + python-version: '3.x' + + - name: Install build dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish + pip install build twine + + - name: Build the package + run: | + python -m build + + - name: Publish the package env: TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{secrets.PYPI_API_KEY}} + TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }} run: | - git fetch --all --tags - python setup.py sdist bdist_wheel - twine upload dist/* \ No newline at end of file + twine upload dist/* diff --git a/setup.cfg b/setup.cfg index e9bfe00..cfa7135 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,8 +25,8 @@ install_requires = langchain_openai==0.0.8 neo4j==5.12.0 numpy==1.24.4 - openai - openpyxl + openai==1.35.7 + openpyxl==3.1.5 pandas==2.0.3 pydantic_settings == 2.2.1 scikit_learn==1.3.2