Skip to content
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

Add infrastructure for packaging as a wheel file #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
*.pyc

# Common IDE folders
.idea/
.vscode/
4 changes: 2 additions & 2 deletions ninjatracing
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def log_to_dicts(log, pid, options):
yield time_trace


def main(argv):
def main():
usage = __doc__
parser = optparse.OptionParser(usage)
parser.add_option('-a', '--showall', action='store_true', dest='showall',
Expand Down Expand Up @@ -187,4 +187,4 @@ def main(argv):


if __name__ == '__main__':
sys.exit(main(sys.argv[1:]))
sys.exit(main())
29 changes: 29 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "ninjatracing"
version = "0.1.0"
requires-python = ">=3.7"
authors = [
{name = "Nico Weber", email = "[email protected]"},
]
maintainers = [
{name = "Nico Weber", email = "[email protected]"},
]
description = "Convert .ninja_log files to chrome's about:tracing format."
readme = "README.md"
license = {file = "LICENSE"}
keywords = ["ninja", "C++", "clang"]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python"
]

[project.urls]
Repository = "https://github.com/nico/ninjatracing"
"Bug Tracker" = "https://github.com/nico/ninjatracing/issues"

[project.scripts]
ninjatracing = "ninjatracing:main"