Skip to content

Commit 5ddfaac

Browse files
figelbrinkfigelbrink
authored andcommitted
preparations for pypi release
1 parent 3c796a1 commit 5ddfaac

4 files changed

Lines changed: 26 additions & 12 deletions

File tree

MANIFEST.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
include optix/*.pxd
1+
include optix/*.pxd
2+
include optix/*.pyx
3+
include optix/*.h
4+
exclude optix/*.cpp

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Python-OptiX
22

3-
Python wrapper for the OptiX 7.3 ray tracing engine by Nvidia.
3+
Python wrapper for the OptiX 7.3 raytracing engine by Nvidia.
44

55
Python-OptiX wraps the OptiX C++ API using Cython and provides a simplified
6-
interface to the original C-like API using the [CuPy](https://cupy.dev) module.
6+
interface to the original C-like API using mainly the
7+
[CuPy](https://cupy.dev) package.
78

89
### Supported Platforms
910

@@ -22,7 +23,7 @@ and the [OptiX 7.3.0 SDK](https://developer.nvidia.com/optix/downloads/7.3.0/lin
2223

2324
Make sure the CUDA header files are installed as well
2425

25-
*Note*: Add the locations of CUDA and OptiX to the system PATH variable if necessary.
26+
Add the locations of CUDA and OptiX to the system `PATH` variable if necessary.
2627

2728
### Using pip
2829
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "Cython>=0.30"]
2+
requires = ["setuptools", "wheel", "Cython>=0.29.22,<3"]
33
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from setuptools import setup, Extension
1+
from setuptools import setup, Extension, find_packages
22
from Cython.Build import cythonize
33

44

@@ -30,6 +30,7 @@ def import_module_from_path(path):
3030
raise RuntimeError("Cuda or optix not found in the system")
3131

3232
extensions = [Extension("*", ["optix/*.pyx"], include_dirs=[cuda_include_path, optix_include_path])]
33+
extensions = cythonize(extensions, language_level="3")
3334

3435
with open("README.md", "r", encoding="utf-8") as fh:
3536
long_description = fh.read()
@@ -41,26 +42,35 @@ def import_module_from_path(path):
4142
version=version,
4243
author="Felix Igelbrink",
4344
author_email="felix.igelbrink@uni-osnabrueck.de",
44-
description="Python bindings to the optiX raytracing framework by nvidia",
45+
description="Python bindings to the OptiX raytracing engine by nvidia",
4546
long_description=long_description,
46-
long_descriptiopn_content_type="text/markdown",
47+
long_description_content_type="text/markdown",
4748
url="https://github.com/mortacious/python-optix",
4849
project_urls={
4950
"Bug Tracker": "https://github.com/mortacious/python-optix/issues",
5051
},
51-
ext_modules=cythonize(extensions, language_level="3"),
52+
packages=find_packages(exclude=['tests', 'examples']),
53+
ext_modules=extensions,
5254
install_requires=[
5355
'numpy',
5456
'cupy>=9.0'
5557
],
5658
license="MIT",
5759
classifiers=[
58-
"Programming Language :: Python :: 3",
60+
"Programming Language :: Python :: 3.8",
61+
"Programming Language :: Python :: 3.9",
5962
"License :: OSI Approved :: MIT License",
60-
"Operating System :: Linux",
63+
"Operating System :: POSIX :: Linux",
64+
"Environment :: GPU :: NVIDIA CUDA",
65+
"Development Status :: 4 - Beta",
66+
"Intended Audience :: Science/Research",
67+
"Intended Audience :: Developers",
68+
"Topic :: Scientific/Engineering",
69+
"Topic :: Software Development",
6170
],
6271
extras_require={
6372
'examples': ["pillow"]
6473
},
65-
python_requires=">=3.8"
74+
python_requires=">=3.8",
75+
zip_safe=False
6676
)

0 commit comments

Comments
 (0)