Skip to content
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

Enable this to build with build isolation on #26

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Features:
- Support fp32, fp16, bf16.
- Kernel size 2, 3, 4.

## Installation

```bash
pip install causal-conv1d
```

## How to use

```
Expand Down
29 changes: 29 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[project]
name = "causal_conv1d"
readme = "README.md"
dynamic = ["version"]
authors = [
{ name = "Tri Dao", email = "tri@tridao.me" },
]
requires-python = ">= 3.7"
license = { file = "LICENSE" } # Include a LICENSE file in your repo
dependencies = [
"torch",
"einops",
"numpy",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests output a warning if numpy isn't installed.

]

[project.optional-dependencies]
dev = [
"pytest"
]

[build-system]
requires = [
"setuptools>=61.0.0",
"wheel",
"torch",
"packaging",
"ninja",
]
build-backend = "setuptools.build_meta"
7 changes: 1 addition & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,5 @@ def run(self):
else {
"bdist_wheel": CachedWheelsCommand,
},
python_requires=">=3.7",
install_requires=[
"torch",
"packaging",
"ninja",
],

)