Compare commits
No commits in common. "545030c0a7ef38d9c82894638dc34b99153d939d" and "e4c5c8b475d7da11d7eb7ab089b70d9d58e18f3c" have entirely different histories.
545030c0a7
...
e4c5c8b475
8 changed files with 48 additions and 56 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -1,9 +1,7 @@
|
||||||
*.spec
|
|
||||||
*.swo
|
*.swo
|
||||||
*.swp
|
*.swp
|
||||||
__pycache__
|
|
||||||
build
|
build
|
||||||
|
venv
|
||||||
|
__pycache__
|
||||||
dcc.egg-info
|
dcc.egg-info
|
||||||
dist
|
dist
|
||||||
poetry.lock
|
|
||||||
venv
|
|
||||||
|
|
7
LICENSE
7
LICENSE
|
@ -1,7 +0,0 @@
|
||||||
Copyright 2025 yrriban
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
@ -1,3 +0,0 @@
|
||||||
# Doom Command Center
|
|
||||||
|
|
||||||
Doom Command Center is an all-in-one tool for automating the process of obtaining Doom WADs, recording demos, producing videos, and anything else Doom-related you may want to do.
|
|
|
@ -1 +0,0 @@
|
||||||
__version__ = "0.0.1"
|
|
|
@ -8,8 +8,7 @@ import time
|
||||||
class RIB(dcc.doom_base.WadMap):
|
class RIB(dcc.doom_base.WadMap):
|
||||||
def get_parser(self, prog_name):
|
def get_parser(self, prog_name):
|
||||||
parser = super().get_parser(prog_name)
|
parser = super().get_parser(prog_name)
|
||||||
parser.add_argument("-s", "--secs_before", type=int, default=10)
|
parser.add_argument("-s", "--secs_before", default=10)
|
||||||
parser.add_argument("-a", "--attempt")
|
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
# TODO: the root path should probably be configurable.
|
# TODO: the root path should probably be configurable.
|
||||||
|
@ -26,11 +25,7 @@ class RIB(dcc.doom_base.WadMap):
|
||||||
demodir = demodir.joinpath(w.stem.lower())
|
demodir = demodir.joinpath(w.stem.lower())
|
||||||
demodir = demodir / "failed_demos"
|
demodir = demodir / "failed_demos"
|
||||||
|
|
||||||
glob = f"*map{self.map}*"
|
for f in demodir.glob(f"*map{self.map}*", case_sensitive=False):
|
||||||
if parsed_args.attempt is not None:
|
|
||||||
glob += f"{parsed_args.attempt}*"
|
|
||||||
|
|
||||||
for f in demodir.glob(glob, case_sensitive=False):
|
|
||||||
st = os.stat(f)
|
st = os.stat(f)
|
||||||
if st.st_mtime > dt:
|
if st.st_mtime > dt:
|
||||||
demo = f
|
demo = f
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Thumb(dcc.doom_base.WadMap):
|
||||||
|
|
||||||
if parsed_args.index:
|
if parsed_args.index:
|
||||||
with wand.image.Image(
|
with wand.image.Image(
|
||||||
filename=self.fabricate.joinpath("doomed_index.png")
|
filename=self.output.joinpath("doomed_index.png")
|
||||||
) as di:
|
) as di:
|
||||||
di.border(tc, 1, 1)
|
di.border(tc, 1, 1)
|
||||||
bi.composite(di, gravity="north_east")
|
bi.composite(di, gravity="north_east")
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
[project]
|
|
||||||
name = "dcc"
|
|
||||||
version = "0.1.0"
|
|
||||||
description = "Doom Command Center"
|
|
||||||
authors = [
|
|
||||||
{name = "yrriban",email = "yrriban@gmail.com"}
|
|
||||||
]
|
|
||||||
license = {text = "MIT"}
|
|
||||||
readme = "README.md"
|
|
||||||
requires-python = ">=3.12"
|
|
||||||
dependencies = [
|
|
||||||
"av (>=15.0.0,<16.0.0)",
|
|
||||||
"boto3 (>=1.40.9,<2.0.0)",
|
|
||||||
"cliff (>=4.10.0,<5.0.0)",
|
|
||||||
"numpy (>=2.3.2,<3.0.0)",
|
|
||||||
"omgifol (>=0.5.1,<0.6.0)",
|
|
||||||
"tomlkit (>=0.13.3,<0.14.0)",
|
|
||||||
"wand (>=0.6.13,<0.7.0)",
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
[build-system]
|
|
||||||
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
|
||||||
build-backend = "poetry.core.masonry.api"
|
|
||||||
|
|
||||||
[project.scripts]
|
|
||||||
dcc = "dcc.main:main"
|
|
||||||
|
|
||||||
[tool.poetry-pyinstaller-plugin.scripts]
|
|
||||||
dcc = { source = "dcc/main.py", type = "onefile" }
|
|
||||||
|
|
||||||
[tool.poetry-pyinstaller-plugin.collect]
|
|
||||||
all = ["dcc"]
|
|
43
setup.py
Normal file
43
setup.py
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
from setuptools import find_packages
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
|
PROJECT = "dcc"
|
||||||
|
|
||||||
|
VERSION = "0.0.1"
|
||||||
|
|
||||||
|
long_description = ""
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name=PROJECT,
|
||||||
|
version=VERSION,
|
||||||
|
description="Doom Command Center",
|
||||||
|
long_description=long_description,
|
||||||
|
author="yrriban",
|
||||||
|
author_email="yrriban@gmail.com",
|
||||||
|
platforms=["Any"],
|
||||||
|
install_requires=["cliff"],
|
||||||
|
packages=find_packages(),
|
||||||
|
include_package_data=True,
|
||||||
|
entry_points={
|
||||||
|
"console_scripts": ["dcc=dcc.main:main"],
|
||||||
|
"dcc": [
|
||||||
|
"play = dcc.play:Play",
|
||||||
|
"record = dcc.record:Record",
|
||||||
|
"rib = dcc.rib:RIB",
|
||||||
|
"fabricate = dcc.fabricate:Fabricate",
|
||||||
|
"put = dcc.put:Put",
|
||||||
|
"pb = dcc.pb:PB",
|
||||||
|
"ss = dcc.ss:SS",
|
||||||
|
"extract = dcc.extract:Extract",
|
||||||
|
"fetch = dcc.fetch:Fetch",
|
||||||
|
"text = dcc.text:Text",
|
||||||
|
"thumb = dcc.thumb:Thumb",
|
||||||
|
"dsda = dcc.dsda:DSDA",
|
||||||
|
"eureka = dcc.eureka:Eureka",
|
||||||
|
"ls = dcc.ls:List",
|
||||||
|
"configure = dcc.configure:Configure",
|
||||||
|
"concat = dcc.concat:Concat",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
zip_safe=False,
|
||||||
|
)
|
Loading…
Add table
Add a link
Reference in a new issue