all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 9a764132d30cbb0a7a0815a6333b64157b61b58c 2179 bytes (raw)
name: gnu/packages/patches/mc2mt-add-packaging-support.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
 
From 84ebbd6001d7cde552dd5b9da5c0528e476ab53d Mon Sep 17 00:00:00 2001
From: AwesomeAdam54321 <adam.faiz@disroot.org>
Date: Fri, 30 Jun 2023 22:08:46 +0800
Subject: [PATCH] mc2mt: Add packaging support.

* MANIFEST.in: Add it.
* mc2mt.py -> mc2mtlib/mc2mt.py: Move mc2mt.py functionality here.
* pyproject.toml: Add project specification.
---
 MANIFEST.in                   |  1 +
 mc2mtlib/__init__.py          |  1 +
 mc2mt.py => mc2mtlib/mc2mt.py | 11 +++++++++--
 pyproject.toml                | 11 +++++++++++
 4 files changed, 22 insertions(+), 2 deletions(-)
 create mode 100644 MANIFEST.in
 rename mc2mt.py => mc2mtlib/mc2mt.py (90%)
 mode change 100755 => 100644
 create mode 100644 pyproject.toml

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..d5914df
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1 @@
+include mc2mtlib/mods/*.json
diff --git a/mc2mtlib/__init__.py b/mc2mtlib/__init__.py
index 047fcf2..315b5dc 100644
--- a/mc2mtlib/__init__.py
+++ b/mc2mtlib/__init__.py
@@ -1,4 +1,5 @@
 from . import argument_parser
+from . import mc2mt
 from . import minetest_world
 from . import blob_writer
 from . import block_functions
diff --git a/mc2mt.py b/mc2mtlib/mc2mt.py
old mode 100755
new mode 100644
similarity index 90%
rename from mc2mt.py
rename to mc2mtlib/mc2mt.py
index 938600b..67affff
--- a/mc2mt.py
+++ b/mc2mtlib/mc2mt.py
@@ -4,10 +4,17 @@ import time
 
 import anvil
 
-from mc2mtlib import *
+from mc2mtlib import argument_parser
+from mc2mtlib import minetest_world
+from mc2mtlib import blob_writer
+from mc2mtlib import block_functions
+from mc2mtlib import block_conversion
+from mc2mtlib import section_conversion
+
+parse_args = argument_parser.parser.parse_args
 
 # Main
-if __name__ == '__main__':
+def mc2mt():
 
     # Args
     args = parse_args()
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..cf9a70d
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,11 @@
+[build-system]
+requires = ['setuptools']
+build-backend = 'setuptools.build_meta'
+
+[project]
+name = 'mc2mt'
+version = '0.1'
+dependencies = ['anvil-parser']
+
+[project.scripts]
+mc2mt = 'mc2mtlib:mc2mt.mc2mt'
-- 
2.40.1


debug log:

solving 9a764132d3 ...
found 9a764132d3 in https://yhetil.org/guix/4244fe1a-4433-d220-877f-45b01e63f40f@disroot.org/

applying [1/1] https://yhetil.org/guix/4244fe1a-4433-d220-877f-45b01e63f40f@disroot.org/
diff --git a/gnu/packages/patches/mc2mt-add-packaging-support.patch b/gnu/packages/patches/mc2mt-add-packaging-support.patch
new file mode 100644
index 0000000000..9a764132d3

1:53: trailing whitespace.
 
1:55: trailing whitespace.
 
1:65: trailing whitespace.
 
1:69: trailing whitespace.
 
1:89: trailing whitespace.
-- 
Checking patch gnu/packages/patches/mc2mt-add-packaging-support.patch...
Applied patch gnu/packages/patches/mc2mt-add-packaging-support.patch cleanly.
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.

index at:
100644 9a764132d30cbb0a7a0815a6333b64157b61b58c	gnu/packages/patches/mc2mt-add-packaging-support.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.