-
Notifications
You must be signed in to change notification settings - Fork 6
sinol-make file structure and run command #1
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
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
f2b03c5
sinol-make file structure and run command
MasloMaslane 3119b83
fix indentation, mention changes made in run
MasloMaslane ddee221
Update pyproject.toml
tonowak 9d1b07a
compilation without makefiles
MasloMaslane 30a6f20
Add GNU GPLv3 license
MasloMaslane 09f92da
remove measuring time with `time`
MasloMaslane ad0f9f0
check for oiejq only in ~/.local/bin
MasloMaslane 1cd1f0f
rename oiejq.sh to oiejq
MasloMaslane adf7091
default values for compiler flags
MasloMaslane 4c9c813
add missing checks for Windows/Cygwin
MasloMaslane ebc5c61
Update readme
MasloMaslane d25f2b9
remove trailing new lines and spaces
MasloMaslane 8453f36
refactor program compiling
MasloMaslane 0f98fd0
change 'not in project' error message
MasloMaslane 636c08e
change error message when oiejq download failed
MasloMaslane c17ac32
Change names of compiler flags
MasloMaslane ef9d92c
fix errors when oiejq is not installed
MasloMaslane a481261
fix oiejq errors, add missing exit
MasloMaslane f13e098
remove verbose flag
MasloMaslane bc89098
change behaviour of show_memory flag
MasloMaslane ac0acca
change schema of subtasks in config
MasloMaslane 63ac565
suggest subtask configuration when none found
MasloMaslane 946dbf7
Revert "lasta two commits"
MasloMaslane 273e79e
refactor
MasloMaslane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
.venv | ||
dist | ||
*.egg-info | ||
build | ||
build | ||
.vscode |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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,7 @@ | ||
# sinol-make | ||
CLI tool for creating sio2 task packages. \ | ||
Currently in development and not yet ready to be used. | ||
|
||
## Installing from source | ||
`pip3 install .` | ||
|
This file contains hidden or 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,33 @@ | ||
[build-system] | ||
requires = ["setuptools>=67.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "sinol-make" | ||
version = "0.0.1" | ||
authors = [ | ||
{ name="Mateusz Masiarz", email="[email protected]" } | ||
] | ||
maintainers = [ | ||
{ name="Tomasz Nowak", email="[email protected]" } | ||
] | ||
description = "CLI tool for creating sio2 task packages" | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = [ | ||
"argparse", | ||
"requests", | ||
"PyYAML", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/sio2project/sinol-make" | ||
"Bug Tracker" = "https://github.com/sio2project/sinol-make/issues" | ||
|
||
[project.scripts] | ||
sinol-make = "sinol_make:main" |
This file contains hidden or 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,28 @@ | ||
import argparse | ||
from sinol_make.util import get_commands | ||
|
||
def main(): | ||
parser = argparse.ArgumentParser( | ||
prog='sinol-make', | ||
description='Tool for creating and testing sio2 tasks', | ||
) | ||
subparsers = parser.add_subparsers( | ||
title='commands', | ||
description='sinol-make commands', | ||
dest='command', | ||
) | ||
subparsers.required = False | ||
|
||
commands = get_commands() | ||
|
||
for command in commands: | ||
command.configure_subparser(subparsers) | ||
|
||
args = parser.parse_args() | ||
|
||
for command in commands: | ||
if command.get_name() == args.command: | ||
command.run(args) | ||
exit(0) | ||
|
||
parser.print_help() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.