diff --git a/README.rst b/README.rst index 9475e52..c3776bf 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,12 @@ -.. image:: https://badge.fury.io/py/codepy.png - :target: http://pypi.python.org/pypi/codepy +.. image:: https://gitlab.tiker.net/inducer/codepy/badges/main/pipeline.svg + :alt: Gitlab Build Status + :target: https://gitlab.tiker.net/inducer/codepy/commits/main +.. image:: https://github.com/inducer/codepy/workflows/CI/badge.svg + :alt: Github Build Status + :target: https://github.com/inducer/codepy/actions?query=branch%3Amain+workflow%3ACI +.. image:: https://badge.fury.io/py/codepy.svg + :alt: Python Package Index Release Page + :target: https://pypi.org/project/codepy/ CodePy is a C/C++ metaprogramming toolkit for Python. It helps you compile source code and dynamically load it into the Python interpreter. diff --git a/codepy/cuda.py b/codepy/cuda.py index 7c9245b..c9b7b0d 100644 --- a/codepy/cuda.py +++ b/codepy/cuda.py @@ -89,7 +89,7 @@ def compile(self, host_toolchain, nvcc_toolchain, nvcc_toolchain, "gpu", device_code, "gpu.cu", object=True, **local_nvcc_kwargs) # The name of the shared lib depends on the hex checksums of both - # host and device code to prevent accidentially returned a cached + # host and device code to prevent accidentally returned a cached # module with wrong linkage mod_name = f"codepy.temp.{host_checksum}.{device_checksum}.module" diff --git a/codepy/jit.py b/codepy/jit.py index f466264..c1fcb87 100644 --- a/codepy/jit.py +++ b/codepy/jit.py @@ -233,7 +233,7 @@ def compile_from_string(toolchain, name, source_string, been compiled at some point in the past. Compiler and Python API versions as well as versions of include files are taken into account when examining the cache. If *cache_dir* is ``None``, a default location is assumed. If it - is ``False``, no caching is perfomed. Proper locking is performed on the + is ``False``, no caching is performed. Proper locking is performed on the cache directory. Simultaneous use of the cache by multiple processes works as expected, but may lead to delays because of locking. By default, a process waits for 1 second before reattempting to acquire the *cache_dir* diff --git a/codepy/toolchain.py b/codepy/toolchain.py index 4b662b7..e488cd0 100644 --- a/codepy/toolchain.py +++ b/codepy/toolchain.py @@ -132,7 +132,7 @@ def with_optimization_level(self, level, **extra): If a subclass doesn't understand an "extra" argument, it should simply ignore it. - Level may also be "debug" to specifiy a debug build. + Level may also be "debug" to specify a debug build. Implemented by subclasses. """ diff --git a/setup.cfg b/setup.cfg index 6050cd3..f1124f0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,6 @@ [flake8] ignore = E126,E127,E128,E123,E226,E241,E242,E265,W503,E402 max-line-length=85 -exclude=pyopencl/compyte/ndarray,pyopencl/compyte/array.py inline-quotes = " docstring-quotes = """ diff --git a/setup.py b/setup.py index 4b2278d..7ee2110 100644 --- a/setup.py +++ b/setup.py @@ -2,42 +2,40 @@ from setuptools import setup -setup(name="codepy", - version="2019.1", - description="Generate and execute native code at run time.", - long_description=open("README.rst").read(), - classifiers=[ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "Intended Audience :: Other Audience", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Natural Language :: English", - "Programming Language :: Python", - "Topic :: Scientific/Engineering", - "Topic :: Software Development :: Libraries", - "Topic :: Utilities", - ], - - author="Andreas Kloeckner", - url="http://mathema.tician.de/software/codepy", - author_email="inform@tiker.net", - license="MIT", - - packages=["codepy", "codepy.cgen"], - python_requires="~=3.6", - install_requires=[ - "pytools>=2015.1.2", - "numpy>=1.6", - "platformdirs>=2.2.0", - "cgen", - ], - - include_package_data=True, - package_data={ - "codepy": [ - "include/codepy/*.hpp", - ] - }, - - zip_safe=False) +setup( + name="codepy", + version="2019.1", + description="Generate and execute native code at run time.", + long_description=open("README.rst").read(), + classifiers=[ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Intended Audience :: Other Audience", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Programming Language :: Python", + "Topic :: Scientific/Engineering", + "Topic :: Software Development :: Libraries", + "Topic :: Utilities", + ], + author="Andreas Kloeckner", + url="http://mathema.tician.de/software/codepy", + author_email="inform@tiker.net", + license="MIT", + packages=["codepy", "codepy.cgen"], + python_requires="~=3.6", + install_requires=[ + "pytools>=2015.1.2", + "numpy>=1.6", + "platformdirs>=2.2.0", + "cgen", + ], + include_package_data=True, + package_data={ + "codepy": [ + "include/codepy/*.hpp", + ] + }, + zip_safe=False, +)