Skip to content

Commit

Permalink
ruff format pass
Browse files Browse the repository at this point in the history
  • Loading branch information
StanleySweet committed Aug 4, 2024
1 parent bbcc4c8 commit 8eb997f
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 204 deletions.
11 changes: 7 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
# SPDX-License-Identifier: GPL-2.0-or-later

import os
try:

try:
import tomllib
except ModuleNotFoundError:
except ModuleNotFoundError:
import pip._vendor.tomli as tomllib

import zipfile
Expand All @@ -19,11 +20,13 @@ def get_version():

def build_archive():
os.makedirs("dist", exist_ok=True)
with zipfile.ZipFile(os.path.join("dist", "io_scene_pyrogenesis-" + get_version() + ".zip"), mode="w") as archive:
with zipfile.ZipFile(
os.path.join("dist", "io_scene_pyrogenesis-" + get_version() + ".zip"), mode="w"
) as archive:
archive.write("io_scene_pyrogenesis/__init__.py")
archive.write("io_scene_pyrogenesis/blender_manifest.toml")
archive.write("LICENSE", arcname="io_scene_pyrogenesis/LICENSE")


if __name__ == '__main__':
if __name__ == "__main__":
build_archive()
Loading

0 comments on commit 8eb997f

Please sign in to comment.