Explorar o código

allow for uploading to pypi

Phil Wang %!s(int64=2) %!d(string=hai) anos
pai
achega
b0eac3297f
Modificáronse 4 ficheiros con 39 adicións e 2 borrados
  1. 21 0
      .gitignore
  2. 7 0
      MANIFEST.in
  3. 9 0
      Makefile
  4. 2 2
      setup.py

+ 21 - 0
.gitignore

@@ -0,0 +1,21 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+
+# C extensions
+*.so
+
+# Distribution / packaging
+bin/
+build/
+develop-eggs/
+dist/
+eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+*.egg-info/
+.installed.cfg
+*.egg

+ 7 - 0
MANIFEST.in

@@ -0,0 +1,7 @@
+recursive-include csrc *.cu
+recursive-include csrc *.h
+recursive-include csrc *.cpp
+
+recursive-include flash_attn *.cu
+recursive-include flash_attn *.h
+recursive-include flash_attn *.cpp

+ 9 - 0
Makefile

@@ -0,0 +1,9 @@
+
+clean_dist:
+	rm -rf dist/*
+
+create_dist: clean_dist
+	python setup.py sdist
+
+upload_package: create_dist
+	twine upload dist/*

+ 2 - 2
setup.py

@@ -164,8 +164,8 @@ setup(
     url="https://github.com/HazyResearch/flash-attention",
     classifiers=[
         "Programming Language :: Python :: 3",
-        "License :: Apache 2.0",
-        "Operating System :: Linux",
+        "License :: OSI Approved :: Apache Software License",
+        "Operating System :: Unix",
     ],
     ext_modules=ext_modules,
     cmdclass={"build_ext": BuildExtension} if ext_modules else {},