Skip to content

Commit

Permalink
build: migrate from setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin De Matos <vltn.dematos@gmail.com>
  • Loading branch information
Thytu committed Dec 23, 2024
1 parent 987993e commit fa89a85
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 23 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to PyPI

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build

- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m twine upload dist/*
27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "agentarium"
version = "0.1.1"
authors = [
{ name = "thytu" },
]
description = "A framework for managing and orchestrating AI agents"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"openai>=1.57.2",
"faker>=33.1.0",
"PyYAML>=6.0.1",
"boto3>=1.35.86",
]

[project.urls]
Homepage = "https://github.com/thytu/Agentarium"
23 changes: 0 additions & 23 deletions setup.py

This file was deleted.

0 comments on commit fa89a85

Please sign in to comment.