-
-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Python 3.12 and drop 3.7 (#369)
* Need GIL for all thread deallocation * Use spawn for testing * Replace the deprecated build tool
- Loading branch information
1 parent
cb8934f
commit 65bfd55
Showing
16 changed files
with
74 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
include LICENSE | ||
include NOTICE | ||
include NOTICE.txt | ||
include README.md | ||
include setup.py | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "viztracer" | ||
authors = [{name = "Tian Gao", email = "[email protected]"}] | ||
description = "A debugging and profiling tool that can trace and visualize python code execution" | ||
dependencies = ["objprint>0.1.3"] | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
dynamic = ["version"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: MacOS", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: Microsoft :: Windows", | ||
"Topic :: Software Development :: Quality Assurance", | ||
"Topic :: Software Development :: Bug Tracking", | ||
"Topic :: System :: Logging", | ||
] | ||
|
||
[project.urls] | ||
HomePage = "https://github.com/gaogaotiantian/viztracer" | ||
Documentation = "https://viztracer.readthedocs.io" | ||
|
||
[project.optional-dependencies] | ||
full = ["rich", "orjson"] | ||
|
||
[project.scripts] | ||
viztracer = "viztracer:main" | ||
vizviewer = "viztracer:viewer_main" | ||
vdb = "viztracer:sim_main" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "viztracer.__version__"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Build Packages | ||
build | ||
setuptools | ||
wheel | ||
twine | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,20 +3,6 @@ | |
|
||
import setuptools | ||
|
||
with open("README.md") as f: | ||
long_description = f.read() | ||
|
||
with open("./src/viztracer/__init__.py") as f: | ||
for line in f.readlines(): | ||
if line.startswith("__version__"): | ||
# __version__ = "0.9" | ||
delim = '"' if '"' in line else "'" | ||
version = line.split(delim)[1] | ||
break | ||
else: | ||
print("Can't find version! Stop Here!") | ||
sys.exit(1) | ||
|
||
# Determine which attach binary to take into package | ||
package_data = { | ||
"viztracer": [ | ||
|
@@ -48,15 +34,7 @@ | |
]) | ||
|
||
setuptools.setup( | ||
name="viztracer", | ||
version=version, | ||
author="Tian Gao", | ||
author_email="[email protected]", | ||
description="A debugging and profiling tool that can trace and visualize python code execution", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/gaogaotiantian/viztracer", | ||
packages=setuptools.find_packages("src"), | ||
packages=setuptools.find_namespace_packages("src"), | ||
package_dir={"": "src"}, | ||
package_data=package_data, | ||
ext_modules=[ | ||
|
@@ -79,32 +57,4 @@ | |
extra_compile_args={"win32": []}.get(sys.platform, ["-Werror", "-std=c99"]), | ||
), | ||
], | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: MacOS", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: Microsoft :: Windows", | ||
"Topic :: Software Development :: Quality Assurance", | ||
"Topic :: Software Development :: Bug Tracking", | ||
"Topic :: System :: Logging", | ||
], | ||
python_requires=">=3.7", | ||
install_requires=["objprint>=0.1.3"], | ||
extras_require={ | ||
"full": ["rich", "orjson"], | ||
}, | ||
entry_points={ | ||
"console_scripts": [ | ||
"viztracer = viztracer:main", | ||
"vizviewer = viztracer:viewer_main", | ||
"vdb = viztracer:sim_main", | ||
], | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters