Skip to content

Commit ff2e15b

Browse files
committed
Reformat and exclude some python files
1 parent c6d987b commit ff2e15b

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

fuzzer/runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
import glob
33
import subprocess
44

5+
56
def main():
67
for g in glob.glob("../tests/afl/id*"):
78
print(g)
8-
9+
910
cmd = ["../a.out", g]
1011

1112
proc = subprocess.Popen(cmd)

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ build-backend = "setuptools.build_meta"
1616
line-length = 140
1717
force-exclude = '''
1818
(
19-
^deps/.*$
20-
| ^tests/kuroga.py$
19+
/deps/.*$
20+
| /kuroga.py$
21+
| /config-msvc.py$
22+
| /config-posix.py$
2123
| ^python/build/.*$
2224
| ^python/dist/.*$
2325
| ^python/tinyobjloader.egg-info/.*$

setup.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Adapted from https://github.com/pybind/python_example/blob/master/setup.py
22
import sys
33

4-
#from pybind11 import get_cmake_dir
4+
# from pybind11 import get_cmake_dir
55
# Available at setup time due to pyproject.toml
6-
from pybind11.setup_helpers import Pybind11Extension#, build_ext
6+
from pybind11.setup_helpers import Pybind11Extension # , build_ext
77
from setuptools import setup
88

99
try:
@@ -22,26 +22,27 @@
2222
# reproducible builds (https://github.com/pybind/python_example/pull/53)
2323

2424
ext_modules = [
25-
Pybind11Extension("tinyobjloader",
25+
Pybind11Extension(
26+
"tinyobjloader",
2627
sorted(["python/bindings.cc", "python/tiny_obj_loader.cc"]),
2728
# Example: passing in the version to the compiled code
28-
define_macros = [('VERSION_INFO', __version__)],
29+
define_macros=[("VERSION_INFO", __version__)],
2930
cxx_std=11,
30-
),
31+
),
3132
]
3233

3334
setup(
3435
name="tinyobjloader",
35-
packages=['python'],
36-
#version=__version__,
36+
packages=["python"],
37+
# version=__version__,
3738
author="Syoyo Fujita",
3839
author_email="syoyo@lighttransport.com",
3940
url="https://github.com/tinyobjloader/tinyobjloader",
40-
#project_urls={
41+
# project_urls={
4142
# "Issue Tracker": "https://github.com/tinyobjloader/tinyobjloader/issues",
42-
#},
43+
# },
4344
description="Tiny but powerful Wavefront OBJ loader",
44-
long_description_content_type='text/markdown',
45+
long_description_content_type="text/markdown",
4546
classifiers=[
4647
"Development Status :: 5 - Production/Stable",
4748
"Intended Audience :: Developers",
@@ -56,10 +57,10 @@
5657
"Programming Language :: Python :: 3",
5758
],
5859
ext_modules=ext_modules,
59-
#extras_require={"test": "pytest"},
60+
# extras_require={"test": "pytest"},
6061
# Currently, build_ext only provides an optional "highest supported C++
6162
# level" feature, but in the future it may provide more features.
6263
# cmdclass={"build_ext": build_ext},
63-
#zip_safe=False,
64-
#python_requires=">=3.6",
64+
# zip_safe=False,
65+
# python_requires=">=3.6",
6566
)

0 commit comments

Comments
 (0)