first commit
This commit is contained in:
parent
909352209a
commit
703fe1e60a
|
@ -1,3 +1,3 @@
|
|||
# {name}
|
||||
# PythonSDK Mod Manager
|
||||
|
||||
{description}
|
||||
Manage the installed mods for compatible PythonSDK games
|
||||
|
|
37
generate.py
37
generate.py
|
@ -1,37 +0,0 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
readme = Path('README.md')
|
||||
setup = Path('setup.cfg')
|
||||
|
||||
|
||||
def main(args):
|
||||
try:
|
||||
name = args[1]
|
||||
|
||||
except IndexError:
|
||||
print('Missing name')
|
||||
return 1
|
||||
|
||||
try:
|
||||
description = ' '.join(args[2:])
|
||||
|
||||
except IndexError:
|
||||
print('Missing description')
|
||||
return 1
|
||||
|
||||
for file in {readme, setup}:
|
||||
file.write_text(file.read_text().format(
|
||||
name = name,
|
||||
description = description or 'na'
|
||||
))
|
||||
|
||||
Path('generate.py').unlink()
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
sys.exit(main(sys.argv))
|
14
setup.cfg
14
setup.cfg
|
@ -1,10 +1,10 @@
|
|||
[metadata]
|
||||
name = {name}
|
||||
name = PythonSDK Mod Manager
|
||||
version = 0.0.1
|
||||
author = Izalia Mae
|
||||
author_email = izalia@barkshark.xyz
|
||||
url = https://git.barkshark.xyz/barkshark/{name}
|
||||
description = {description}
|
||||
url = https://git.barkshark.xyz/barkshark/PythonSDK Mod Manager
|
||||
description = Manage the installed mods for compatible PythonSDK games
|
||||
license = CNPL 7+
|
||||
license_file = LICENSE.md
|
||||
platform = any
|
||||
|
@ -20,15 +20,15 @@ classifiers =
|
|||
Programming Language :: Python :: 3.10
|
||||
Topic :: Software Development :: Libraries :: Python Modules
|
||||
project_urls =
|
||||
Bug Tracker = https://git.barkshark.xyz/barkshark/{name}/issues
|
||||
Documentation = https://git.barkshark.xyz/barkshark/{name}/wiki
|
||||
Source Code = https://git.barkshark.xyz/barkshark/{name}
|
||||
Bug Tracker = https://git.barkshark.xyz/barkshark/PythonSDK Mod Manager/issues
|
||||
Documentation = https://git.barkshark.xyz/barkshark/PythonSDK Mod Manager/wiki
|
||||
Source Code = https://git.barkshark.xyz/barkshark/PythonSDK Mod Manager
|
||||
|
||||
[options]
|
||||
include_package_data = true
|
||||
python_requires = >= 3.7, <3.11
|
||||
packages =
|
||||
{name}
|
||||
PythonSDK Mod Manager
|
||||
setup_requires =
|
||||
setuptools >= 38.3.0
|
||||
|
||||
|
|
Loading…
Reference in a new issue