-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Pip Package #21
Changes from 8 commits
3576bcf
ee21061
09657a4
67c7228
9f13064
fe9a409
307f269
72b453f
fdf4aea
6cfbeb3
ac50cbd
e40d4c8
286c527
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"scikit-build>=0.13", | ||
"cmake>=3.18", | ||
"ninja", | ||
] | ||
build-backend = "setuptools.build_meta" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from .rwkv_cpp_shared_library import * | ||
from .rwkv_cpp_model import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from skbuild import setup | ||
|
||
setup( | ||
name="rwkv_cpp_python", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess just There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good, I'll update this as well. I believe both alias to the same name on PyPI. |
||
description="A Python wrapper for rwkv.cpp", | ||
long_description_content_type="text/markdown", | ||
version="0.0.1", | ||
author="", | ||
author_email="", | ||
license="MIT", | ||
package_dir={"rwkv_cpp": "rwkv"}, | ||
packages=["rwkv_cpp"], | ||
install_requires=[ | ||
"numpy>=1.24.1", | ||
"torch>=2.0.0", | ||
"tokenizers>=0.13.3", | ||
], | ||
python_requires=">=3.7", | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
], | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.