-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PyPI publishing workflow and configuration files
- Loading branch information
1 parent
04d8629
commit e74ec55
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |