From a16d770a594c06c625f4006ac8e8d9db92a46f57 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Sat, 25 Nov 2023 15:43:21 -0800 Subject: [PATCH] push to pypi --- .gitignore | 3 +++ push_pypi.sh | 5 +++++ setup.py | 11 +++++++++++ 3 files changed, 19 insertions(+) create mode 100644 .gitignore create mode 100755 push_pypi.sh create mode 100644 setup.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b5ff08e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build +dist +gpuctypes.egg-info diff --git a/push_pypi.sh b/push_pypi.sh new file mode 100755 index 0000000..f0de55d --- /dev/null +++ b/push_pypi.sh @@ -0,0 +1,5 @@ +#!/bin/bash -e +rm -rf build dist +python3 setup.py sdist bdist_wheel +twine upload dist/* + diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..8085a07 --- /dev/null +++ b/setup.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +from setuptools import setup +setup(name='gpuctypes', + version='0.1.0', + description='ctypes wrappers for HIP, CUDA, and OpenCL', + author='George Hotz', + license='MIT', + packages = ['gpuctypes'], + python_requires='>=3.8', + include_package_data=True) +