Skip to content

Commit

Permalink
Add PyPI publishing workflow and configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
lairgiyassir committed Jul 16, 2024
1 parent 04d8629 commit e74ec55
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish_on_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Upload Python Package

on:
release:
types: [published]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{secrets.PYPI_API_KEY}}
run: |
git fetch --all --tags
python setup.py sdist bdist_wheel
twine upload dist/*
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
37 changes: 37 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[metadata]
name = itext2kg
version = 0.0.1
author = Auvalab - Yassir LAIRGI
author_email = <[email protected]>
description = Incremental Knowledge Graphs Constructor Using Large Language Models
long_description = file: README.md
long_description_content_type = text/markdown
keywords = kg construction, llms, neo4j, graphs
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Developers
Programming Language :: Python :: 3
Operating System :: Unix
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows

[options]
packages = find:
zip_safe = True
include_package_data = True
install_requires =
langchain==0.1.10
langchain_core==0.1.28
langchain_openai==0.0.8
neo4j==5.12.0
numpy==1.24.4
openai
openpyxl
pandas==2.0.3
pydantic_settings == 2.2.1
scikit_learn==1.3.2
pypdf==4.2.0
pytest==8.2.2

[options.package_data]
example = *.txt, * = README.md

0 comments on commit e74ec55

Please sign in to comment.