Skip to content

Commit 320d596

Browse files
committed
fix error(?) in bindings
1 parent 9a7ed7e commit 320d596

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include src/*.h
22
include src/*.cpp
3-
include src/*.c
3+
include src/*.c
4+
include README.md

setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
from pybind11.setup_helpers import Pybind11Extension, build_ext
33
import os
44

5+
long_description = ""
6+
possible_readmes = "README.md"
7+
for f in possible_readmes:
8+
if os.path.exists(f):
9+
with open(f, "r", encoding="utf-8") as file:
10+
long_description = file.read()
11+
break
12+
513
# Define the C++ extension
614
ext_modules = [
715
Pybind11Extension(
@@ -17,11 +25,11 @@
1725

1826
setup(
1927
name="libbbf",
20-
version="0.2.1",
28+
version="0.2.2",
2129
author="EF1500",
2230
author_email="rosemilovelockofficial@proton.me",
2331
description="Bound Book Format (BBF) tools and bindings",
24-
long_description=open("readme.md").read(),
32+
long_description=long_description,
2533
long_description_content_type="text/markdown",
2634
url="https://github.com/ef1500/libbbf",
2735

0 commit comments

Comments
 (0)