Skip to content

Commit dd16bc5

Browse files
committed
fix: add pyproject.toml for proper package metadata
- Add pyproject.toml with all required metadata fields (Name, Version) - Update MANIFEST.in to include CHANGELOG.md and pyproject.toml - Fixes InvalidDistribution error when publishing to PyPI - Uses modern Python packaging standards with PEP 621
1 parent f5c561c commit dd16bc5

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Include the license and readme
22
include LICENSE
33
include README.md
4+
include CHANGELOG.md
45

56
# Include requirements
67
include requirements.txt
8+
include pyproject.toml
79

810
# Include test configuration
911
include pytest.ini

pyproject.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "personaflow"
7+
version = "0.1.3"
8+
description = "A lightweight Python library for managing dynamic multi-persona interactions with LLMs."
9+
readme = "README.md"
10+
requires-python = ">=3.12"
11+
license = {text = "MIT"}
12+
authors = [
13+
{name = "Zhiyong (Justin) He", email = "justin.he814@gmail.com"}
14+
]
15+
classifiers = [
16+
"Programming Language :: Python :: 3",
17+
"License :: OSI Approved :: MIT License",
18+
"Operating System :: OS Independent",
19+
"Development Status :: 3 - Alpha",
20+
"Intended Audience :: Developers",
21+
"Topic :: Software Development :: Libraries :: Python Modules",
22+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
23+
]
24+
dependencies = [
25+
"torch",
26+
"transformers>=4.45.0",
27+
"accelerate",
28+
"typing-extensions",
29+
]
30+
31+
[project.urls]
32+
Homepage = "https://github.com/Ate329/PersonaFlow"
33+
Repository = "https://github.com/Ate329/PersonaFlow"
34+
Issues = "https://github.com/Ate329/PersonaFlow/issues"
35+
36+
[tool.setuptools.packages.find]
37+
where = ["."]
38+
include = ["personaflow*"]
39+
exclude = ["tests*"]
40+

0 commit comments

Comments
 (0)