Skip to content

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 24 commits into from
Apr 30, 2023
Merged
Show file tree
Hide file tree
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 Apr 18, 2023
3119b83
fix indentation, mention changes made in run
MasloMaslane Apr 19, 2023
ddee221
Update pyproject.toml
tonowak Apr 19, 2023
9d1b07a
compilation without makefiles
MasloMaslane Apr 19, 2023
30a6f20
Add GNU GPLv3 license
MasloMaslane Apr 19, 2023
09f92da
remove measuring time with `time`
MasloMaslane Apr 19, 2023
ad0f9f0
check for oiejq only in ~/.local/bin
MasloMaslane Apr 19, 2023
1cd1f0f
rename oiejq.sh to oiejq
MasloMaslane Apr 19, 2023
adf7091
default values for compiler flags
MasloMaslane Apr 20, 2023
4c9c813
add missing checks for Windows/Cygwin
MasloMaslane Apr 20, 2023
ebc5c61
Update readme
MasloMaslane Apr 20, 2023
d25f2b9
remove trailing new lines and spaces
MasloMaslane Apr 26, 2023
8453f36
refactor program compiling
MasloMaslane Apr 26, 2023
0f98fd0
change 'not in project' error message
MasloMaslane Apr 26, 2023
636c08e
change error message when oiejq download failed
MasloMaslane Apr 26, 2023
c17ac32
Change names of compiler flags
MasloMaslane Apr 26, 2023
ef9d92c
fix errors when oiejq is not installed
MasloMaslane Apr 26, 2023
a481261
fix oiejq errors, add missing exit
MasloMaslane Apr 26, 2023
f13e098
remove verbose flag
MasloMaslane Apr 26, 2023
bc89098
change behaviour of show_memory flag
MasloMaslane Apr 26, 2023
ac0acca
change schema of subtasks in config
MasloMaslane Apr 26, 2023
63ac565
suggest subtask configuration when none found
MasloMaslane Apr 26, 2023
946dbf7
Revert "lasta two commits"
MasloMaslane Apr 28, 2023
273e79e
refactor
MasloMaslane Apr 29, 2023
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.venv
dist
*.egg-info
build
build
.vscode
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions README.md
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 .`

33 changes: 33 additions & 0 deletions pyproject.toml
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"
28 changes: 28 additions & 0 deletions src/sinol_make/__init__.py
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()
Loading