kitbash 1.10.0__tar.gz → 1.11.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {kitbash-1.10.0 → kitbash-1.11.0}/PKG-INFO +2 -2
  2. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/__init__.py +13 -1
  3. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/__main__.py +20 -26
  4. {kitbash-1.10.0 → kitbash-1.11.0}/pyproject.toml +2 -2
  5. kitbash-1.10.0/kitbash/install.py +0 -44
  6. {kitbash-1.10.0 → kitbash-1.11.0}/.gitignore +0 -0
  7. {kitbash-1.10.0 → kitbash-1.11.0}/LICENSE +0 -0
  8. {kitbash-1.10.0 → kitbash-1.11.0}/README.md +0 -0
  9. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/gui/__init__.py +0 -0
  10. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/gui/drumkit_widget.py +0 -0
  11. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/gui/kit_save_dialog.py +0 -0
  12. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/gui/main_window.py +0 -0
  13. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/gui/main_window.ui +0 -0
  14. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/jack_audio.py +0 -0
  15. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/res/empty.sfz +0 -0
  16. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/res/group_expanded.svg +0 -0
  17. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/res/group_hidden.svg +0 -0
  18. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/res/kitbash-icon.png +0 -0
  19. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/res/kitbash-icon.svg +0 -0
  20. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/res/save-sfz-icon.svg +0 -0
  21. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/scripts/bash_project.py +0 -0
  22. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/styles/light.css +0 -0
  23. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/styles/system.css +0 -0
  24. {kitbash-1.10.0 → kitbash-1.11.0}/kitbash/worker_threads.py +0 -0
  25. {kitbash-1.10.0 → kitbash-1.11.0}/tests/file_save_dialog.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kitbash
3
- Version: 1.10.0
3
+ Version: 1.11.0
4
4
  Summary: Provides universal settings, styles, cached icons, and pixmaps, and the base
5
5
  Author-email: Leon Dionne <ldionne@dridesign.sh.cn>
6
6
  Description-Content-Type: text/markdown
@@ -11,7 +11,7 @@ Requires-Dist: qt_liquid_pool >= 1.2.0
11
11
  Requires-Dist: recent_items_list >= 1.1.2
12
12
  Requires-Dist: sfzen >= 2.3.2
13
13
  Requires-Dist: soso_qt_extras >= 1.7.0
14
- Requires-Dist: xdg_soso >= 1.0.2
14
+ Requires-Dist: xdg_soso >= 1.1.0
15
15
  Project-URL: Home, https://github.com/Zen-Master-SoSo/kitbash
16
16
 
17
17
  # KitBash
@@ -28,8 +28,9 @@ from functools import lru_cache
28
28
  from PyQt5.QtCore import QSettings
29
29
  from PyQt5.QtWidgets import QApplication, QSplitter
30
30
  from qt_extras import DevilBox
31
+ from xdg_soso import XDGSetup
31
32
 
32
- __version__ = "1.10.0"
33
+ __version__ = "1.11.0"
33
34
 
34
35
  APPLICATION_NAME = "kitbash"
35
36
  PACKAGE_DIR = dirname(__file__)
@@ -132,4 +133,15 @@ class GeometrySaver:
132
133
  return f'{self.__class__.__name__}/{splitter.objectName()}/geometry'
133
134
 
134
135
 
136
+ class KitbashSetup(XDGSetup):
137
+
138
+ def __init__(self):
139
+ super().__init__('kitbash', 'Kitbash')
140
+ self._comment = "Bash together new .SFZ drumkits from pieces of existing ones."
141
+ self._vendor_name = 'zen_soso'
142
+ self._application_icon = join(dirname(__file__), 'res', 'kitbash-icon.svg')
143
+ self._categories = ['AudioVideo', 'Audio']
144
+ self._keywords = ['Audio', 'Sound', 'midi', 'SFZ', 'Drumkit']
145
+
146
+
135
147
  # end kitbash/kitbash/__init__.py
@@ -22,12 +22,12 @@ kitbash is a program you can use to combine parts of various SFZ files into a
22
22
  new SFZ with instruments "borrowed" from the originals.
23
23
  """
24
24
  import sys, logging
25
- from os import environ, getlogin
25
+ from os import environ
26
26
  from argparse import ArgumentParser
27
27
  from PyQt5.QtWidgets import QApplication
28
28
  from qt_extras import exceptions_hook
29
29
  from xdg_soso import is_xdg
30
- from kitbash.install import KitbashSetup
30
+ from kitbash import KitbashSetup
31
31
  from kitbash.gui.main_window import MainWindow
32
32
 
33
33
 
@@ -67,30 +67,24 @@ menu.""")
67
67
  format = log_format
68
68
  )
69
69
 
70
- if is_xdg() and (options.install or options.uninstall):
71
- installer = KitbashSetup()
72
- if options.install:
73
- installer.install()
74
- print(f'Successfully installed KitBash for {getlogin()} on this machine.')
75
- else:
76
- installer.uninstall()
77
- print(f'Successfully uninstalled KitBash for {getlogin()} on this machine.')
78
- return 0
79
-
80
- #-----------------------------------------------------------------------
81
- # Annoyance fix per:
82
- # https://stackoverflow.com/questions/986964/qt-session-management-error
83
- try:
84
- del environ['SESSION_MANAGER']
85
- except KeyError:
86
- pass
87
- #-----------------------------------------------------------------------
88
-
89
- app = QApplication([])
90
- sys.excepthook = exceptions_hook
91
- main_window = MainWindow(options)
92
- main_window.show()
93
- sys.exit(app.exec())
70
+ if options.install:
71
+ KitbashSetup().install()
72
+ elif options.uninstall:
73
+ KitbashSetup().uninstall()
74
+ else:
75
+ #-----------------------------------------------------------------------
76
+ # Annoyance fix per:
77
+ # https://stackoverflow.com/questions/986964/qt-session-management-error
78
+ try:
79
+ del environ['SESSION_MANAGER']
80
+ except KeyError:
81
+ pass
82
+ #-----------------------------------------------------------------------
83
+ app = QApplication([])
84
+ sys.excepthook = exceptions_hook
85
+ main_window = MainWindow(options)
86
+ main_window.show()
87
+ sys.exit(app.exec())
94
88
 
95
89
  if __name__ == "__main__":
96
90
  sys.exit(main())
@@ -12,7 +12,7 @@ dependencies = [
12
12
  "recent_items_list >= 1.1.2",
13
13
  "sfzen >= 2.3.2",
14
14
  "soso_qt_extras >= 1.7.0",
15
- "xdg_soso >= 1.0.2"
15
+ "xdg_soso >= 1.1.0"
16
16
  ]
17
17
 
18
18
  [project.urls]
@@ -27,7 +27,7 @@ requires = ["flit_core >=3.2,<4"]
27
27
  build-backend = "flit_core.buildapi"
28
28
 
29
29
  [bumpver]
30
- current_version = "1.10.0"
30
+ current_version = "1.11.0"
31
31
  version_pattern = "MAJOR.MINOR.PATCH"
32
32
  commit_message = "Bump version {old_version} -> {new_version}"
33
33
  commit = true
@@ -1,44 +0,0 @@
1
- # kitbash/kitbash/install.py
2
- #
3
- # Copyright 2026 Leon Dionne <ldionne@dridesign.sh.cn>
4
- #
5
- # This program is free software; you can redistribute it and/or modify
6
- # it under the terms of the GNU General Public License as published by
7
- # the Free Software Foundation; either version 2 of the License, or
8
- # (at your option) any later version.
9
- #
10
- # This program is distributed in the hope that it will be useful,
11
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- # GNU General Public License for more details.
14
- #
15
- # You should have received a copy of the GNU General Public License
16
- # along with this program; if not, write to the Free Software
17
- # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
- # MA 02110-1301, USA.
19
- #
20
- """
21
- Install phoney-dictate as an application on XDG-compliant systems (like gnome).
22
- """
23
- import logging
24
- from os.path import dirname, join
25
- from xdg_soso import XDGSetup
26
-
27
- class KitbashSetup(XDGSetup):
28
-
29
- def __init__(self):
30
- super().__init__('kitbash', 'Kitbash')
31
- self._comment = "Bash together new .SFZ drumkits from pieces of existing ones."
32
- self._vendor_name = 'zen_soso'
33
- self._application_icon = join(dirname(__file__), 'res', 'kitbash-icon.svg')
34
- self._categories = ['AudioVideo', 'Audio']
35
- self._keywords = ['Audio', 'Sound', 'midi', 'SFZ', 'Drumkit']
36
-
37
- if __name__ == '__main__':
38
- logging.basicConfig(level = logging.DEBUG,
39
- format = "[%(filename)24s:%(lineno)4d] %(levelname)-8s %(message)s")
40
- installer = KitbashSetup()
41
- installer.install()
42
-
43
-
44
- # end kitbash/kitbash/install.py
File without changes
File without changes
File without changes
File without changes
File without changes