8000 Some random cleanup by alexfikl · Pull Request #30 · inducer/codepy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Some random cleanup #30

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

Merged
merged 4 commits into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion codepy/cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion codepy/jit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
2 changes: 1 addition & 1 deletion codepy/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -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 = """
Expand Down
76 changes: 37 additions & 39 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
0