-
Notifications
You must be signed in to change notification settings - Fork 55
Updated setup.py and pyproject.toml #279
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 | ||||
|---|---|---|---|---|---|---|
| @@ -1,13 +1,18 @@ | ||||||
| [project] | ||||||
| name = "NATTEN" | ||||||
| description = "Neighborhood Attention Extension" | ||||||
| dynamic = ["version"] | ||||||
| readme = {file = "docs/README_pypi.md", content-type = "text/markdown"} | ||||||
| license = "MIT" | ||||||
| license-files = ["LICENSE"] | ||||||
| requires-python = ">=3.9" | ||||||
| authors = [ | ||||||
| {name = "Ali Hassani"} | ||||||
| {name = "NATTEN Project", email="info@natten.org"} | ||||||
| ] | ||||||
| maintainers = [ | ||||||
| {name = "Ali Hassani"} | ||||||
| {name = "NATTEN Project", email="info@natten.org"} | ||||||
| ] | ||||||
|
|
||||||
| dynamic = ["version"] | ||||||
| keywords = [ | ||||||
| "attention", | ||||||
| "sparse attention", | ||||||
|
|
@@ -18,20 +23,39 @@ keywords = [ | |||||
| "artificial intelligence", | ||||||
| "ai", | ||||||
| ] | ||||||
| requires-python = ">=3.9" | ||||||
| readme = {file = "docs/README_pypi.md", content-type = "text/markdown"} | ||||||
|
|
||||||
| dependencies = [ | ||||||
| "torch>=2.8.0", | ||||||
| ] | ||||||
|
|
||||||
| # Classifiers for better searching pypi | ||||||
| # https://pypi.org/classifiers/ | ||||||
| classifiers = [ | ||||||
| "Development Status :: 4 - Beta", | ||||||
| "Environment :: GPU", | ||||||
| "Environment :: GPU :: NVIDIA CUDA", | ||||||
| "Intended Audience :: Science/Research", | ||||||
| "Intended Audience :: Developers", | ||||||
| "Operating System :: OS Independent", | ||||||
| "Programming Language :: Python", | ||||||
| "Programming Language :: Python :: 3", | ||||||
| "Topic :: Scientific/Engineering", | ||||||
| "Topic :: Scientific/Engineering :: Artificial Intelligence" | ||||||
| ] | ||||||
|
|
||||||
| [project.urls] | ||||||
| Homepage = "https://natten.org" | ||||||
| Documentation = "https://natten.org" | ||||||
| Repository = "https://github.com/SHI-Labs/NATTEN.git" | ||||||
| Changelog = "https://github.com/SHI-Labs/NATTEN/blob/main/CHANGELOG.md" | ||||||
| Issues = "https://github.com/SHI-Labs/NATTEN/issues" | ||||||
| Download = "https://whl.natten.org/" | ||||||
|
|
||||||
| [build-system] | ||||||
| requires = [ | ||||||
| "setuptools >= 64", | ||||||
| "torch >= 2.7", | ||||||
| "cmake >= 4.0", | ||||||
| "torch >= 2.8", | ||||||
|
Collaborator
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.
Suggested change
Same here. Let's accept any version of torch, and just raise warnings/errors in setup/cmake if it's unsupported... I really don't want to trust pypi to do the right thing here. |
||||||
| "cmake >= 3.2", | ||||||
|
Author
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. Note to review our versioning here |
||||||
| "build >= 1.3.0" | ||||||
| ] | ||||||
| build-backend = "setuptools.build_meta" | ||||||
|
|
||||||
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.
Can we relax this for now and just make it any version of torch?
Some pypi versions are stupid and will error out if the system constraints have locked the torch version.
The best part is that the version requirements are also met.
But anyway, we do technically support 2.7, even 2.6.
If folks aren't using Flex, we can probably go even as far back as 2.0. They'd have to compile it themselves of course.
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.
Added to local stage and placing comments for additional clarity