maialib 1.6.0__cp311-cp311-macosx_10_15_universal2.whl → 1.6.1__cp311-cp311-macosx_10_15_universal2.whl

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.

Potentially problematic release.


This version of maialib might be problematic. Click here for more details.

@@ -1317,4 +1317,4 @@ C: ClefSign # value = <ClefSign.C: 2>
1317
1317
  F: ClefSign # value = <ClefSign.F: 1>
1318
1318
  G: ClefSign # value = <ClefSign.G: 0>
1319
1319
  P: ClefSign # value = <ClefSign.P: 3>
1320
- __version__: str = '"1.6.0"'
1320
+ __version__: str = '"1.6.1"'
maialib/maiapy/other.py CHANGED
@@ -1,9 +1,8 @@
1
1
  import os
2
- import pkg_resources
3
2
  from enum import Enum
4
- import platform
5
3
  import subprocess
6
4
  import maialib.maiacore as mc
5
+ import importlib.resources as pkg_resources
7
6
 
8
7
  __all__ = ["getSampleScorePath", "SampleScore",
9
8
  "setScoreEditorApp", "getScoreEditorApp", "openScore", "getXmlSamplesDirPath"]
@@ -29,7 +28,7 @@ def setScoreEditorApp(executableFullPath: str) -> None:
29
28
  """
30
29
  global _scoreEditorApp
31
30
 
32
- if (os.path.isfile(executableFullPath)):
31
+ if os.path.isfile(executableFullPath):
33
32
  _scoreEditorApp = executableFullPath
34
33
  else:
35
34
  raise ValueError('Invalid executable full path')
@@ -103,9 +102,9 @@ def getSampleScorePath(sampleEnum: SampleScore) -> str:
103
102
  SampleScore.Strauss_Also_Sprach_Zarathustra: "Strauss_Also_Sprach_Zarathustra.mxl"
104
103
  }[sampleEnum]
105
104
 
106
- xmlDir = pkg_resources.resource_filename("maialib", "xml-scores-examples")
105
+ xmlDir = pkg_resources.files("maialib").joinpath("xml-scores-examples")
107
106
  fileFullPath = os.path.join(xmlDir, xmlFileName)
108
- return fileFullPath
107
+ return str(fileFullPath)
109
108
 
110
109
 
111
110
  def getXmlSamplesDirPath() -> str:
@@ -127,5 +126,5 @@ def getXmlSamplesDirPath() -> str:
127
126
  >>> score = ml.Score(xmlDir + "Bach/cello_suite_1_violin.xml")
128
127
  >>> score.info()
129
128
  """
130
- xmlDir = pkg_resources.resource_filename("maialib", "xml-scores-examples")
131
- return xmlDir
129
+ xmlDir = pkg_resources.files("maialib").joinpath("xml-scores-examples")
130
+ return str(xmlDir)
maialib/maiapy/other.pyi CHANGED
@@ -8,13 +8,13 @@ def getScoreEditorApp() -> str: ...
8
8
  def openScore(score: mc.Score) -> None: ...
9
9
 
10
10
  class SampleScore(Enum):
11
- Bach_Cello_Suite_1: str
12
- Beethoven_Symphony_5th: str
13
- Chopin_Fantasie_Impromptu: str
14
- Dvorak_Symphony_9_mov_4: str
15
- Mahler_Symphony_8_Finale: str
16
- Mozart_Requiem_Introitus: str
17
- Strauss_Also_Sprach_Zarathustra: str
11
+ Bach_Cello_Suite_1 = 'Bach_Cello_Suite_1'
12
+ Beethoven_Symphony_5th = 'Beethoven_Symphony_5th'
13
+ Chopin_Fantasie_Impromptu = 'Chopin_Fantasie_Impromptu'
14
+ Dvorak_Symphony_9_mov_4 = 'Dvorak_Symphony_9_mov_4'
15
+ Mahler_Symphony_8_Finale = 'Mahler_Symphony_8_Finale'
16
+ Mozart_Requiem_Introitus = 'Mozart_Requiem_Introitus'
17
+ Strauss_Also_Sprach_Zarathustra = 'Strauss_Also_Sprach_Zarathustra'
18
18
 
19
19
  def getSampleScorePath(sampleEnum: SampleScore) -> str: ...
20
20
  def getXmlSamplesDirPath() -> str: ...
maialib/setup.py CHANGED
@@ -8,7 +8,7 @@ with open("LICENSE.txt", "r", encoding="utf-8") as fh:
8
8
  license_txt = fh.read()
9
9
 
10
10
  # Lê a versão do arquivo VERSION
11
- version_path = Path(__file__).parent / "VERSION"
11
+ version_path = Path(__file__).parent.parent / "VERSION"
12
12
  version = version_path.read_text().strip()
13
13
 
14
14
  setup(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: maialib
3
- Version: 1.6.0
3
+ Version: 1.6.1
4
4
  Summary: A C++/Python library to manipulate sheet music data
5
5
  Home-page: https://github.com/nyckmaia/maialib
6
6
  Author: Nycholas Maia
@@ -1,5 +1,5 @@
1
1
  maialib/__init__.py,sha256=qiIEL1ZDvpDK0bkGUdZRib3bG973EtKQDFYPFfvJKQA,122
2
- maialib/setup.py,sha256=1sbcm6moCbaRB4UrnsTRoRwJDek6uXBJKlq_lzBJRmU,2161
2
+ maialib/setup.py,sha256=1Cbv0DfEUNK1EQHb64-1B0rwbRrsTSnJBY8fVn8gtbU,2168
3
3
  maialib/xml-scores-examples/Mahler_Symphony_8_Finale.mxl,sha256=F2-QBKNYjBv_sWT-z4LWi1rX84-P3msxtl-g6joA2FQ,229034
4
4
  maialib/xml-scores-examples/Mozart_Requiem_Introitus.mxl,sha256=_wc4hMaPhtgocUoL94uVzfVN3TGb08z8Xa2BL4SHfgA,91112
5
5
  maialib/xml-scores-examples/Dvorak_Symphony_9_mov_4.mxl,sha256=s7FGUEmFmgcIdmkZ-bv4sOGGj5HYKc2nc760V79DMtM,261438
@@ -9,18 +9,18 @@ maialib/xml-scores-examples/Strauss_Also_Sprach_Zarathustra.mxl,sha256=nOQra05RH
9
9
  maialib/xml-scores-examples/Bach_Cello_Suite_1.mxl,sha256=0XGNlcW8o0W7kkeG8j2V_M4eggdOnrxvvvCkpf6x_z4,29622
10
10
  maialib/maiacore/__init__.pyi,sha256=cJfflEKHJ6BPUTlDQt95xZmi2N3zwHJkHEXy27fBd5c,1282
11
11
  maialib/maiacore/__init__.py,sha256=IW7E0LuzAttsn0b37SEthCA0LKuzSgkepSpq8DWExYQ,77
12
- maialib/maiacore/maiacore.cpython-311-darwin.so,sha256=LoQ3c7xi0CCDuXtpVofNRFRsJH0mU68AG4Q3kPH1UGc,8287472
13
- maialib/maiacore/maiacore.pyi,sha256=ab_lG8voFeM81Cy5BZR4a5GdUK86bLFAk2XA2y_CX6k,43395
14
- maialib/maiapy/other.pyi,sha256=5QOvpxb7l9TlDVCn0ACeFgjI14c_7CW0gUb7GoI3gn8,684
12
+ maialib/maiacore/maiacore.cpython-311-darwin.so,sha256=Wfrx4DlPeSwdpEZEY1tH4rXI3--oC9rDgLm8NqG2B2A,8287648
13
+ maialib/maiacore/maiacore.pyi,sha256=IoVUJYogP4VGrxvj3RcCe-AXMQ2MHWhP0x-bPVQsMrY,43395
14
+ maialib/maiapy/other.pyi,sha256=KmvytsOd9WJpb7VPXJE76tIvTqb2C1MZtrGScy6RYTE,851
15
15
  maialib/maiapy/__init__.pyi,sha256=L8YtZYJMw_9TrdejcKs2c5xTbu5WMRwlHhKz6Qzulf8,77
16
16
  maialib/maiapy/__init__.py,sha256=L8YtZYJMw_9TrdejcKs2c5xTbu5WMRwlHhKz6Qzulf8,77
17
- maialib/maiapy/other.py,sha256=6IpzBGQIxCzcfqkFiuMp84GBF-YOmcrxYkevxEBpG6A,4033
17
+ maialib/maiapy/other.py,sha256=5o2zXcm1quM-9jfUhzzzuKrj2qTBaNheA6Z05Ux9H_g,4042
18
18
  maialib/maiapy/sethares_dissonance.py,sha256=uRQLTQN55dk74hIFpzu9RlTWP0ZhRpVT3yTLI-su1ww,12830
19
19
  maialib/maiapy/plots.pyi,sha256=7zchTew8-uvIvo0TmJXRd_SRlIX9w1AyOSplbL5YGNM,619
20
20
  maialib/maiapy/plots.py,sha256=laAt68-IiZ4vNLFPKcGCf4IcMDIIZ1uavJpROrS8tqs,23153
21
21
  maialib/maiapy/sethares_dissonance.pyi,sha256=DMZtrHTGSAaJwcBWX_G-sHF15_eETp1OeRr2L5vwdF0,1171
22
- maialib-1.6.0.dist-info/RECORD,,
23
- maialib-1.6.0.dist-info/WHEEL,sha256=cmqgZJT-wl8odQLbaAdVByS3eAZ_hucjJRZ2nGzKhHk,115
24
- maialib-1.6.0.dist-info/top_level.txt,sha256=sZWQaa-Up2ba00WpAxBhOLKM6qQYTpUKJMXgSE0Nc48,17
25
- maialib-1.6.0.dist-info/LICENSE.txt,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
26
- maialib-1.6.0.dist-info/METADATA,sha256=Dui53TSrBFruNn-cd8YlalGB4pjGKTfc7RK5aNt40tI,6926
22
+ maialib-1.6.1.dist-info/RECORD,,
23
+ maialib-1.6.1.dist-info/WHEEL,sha256=HRtDzy_NxGN0mdOAyWjqgV7zwLFG0AvcubJrT08WewY,115
24
+ maialib-1.6.1.dist-info/top_level.txt,sha256=sZWQaa-Up2ba00WpAxBhOLKM6qQYTpUKJMXgSE0Nc48,17
25
+ maialib-1.6.1.dist-info/LICENSE.txt,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
26
+ maialib-1.6.1.dist-info/METADATA,sha256=dnJv1NuCDKbjtn4NrsOrV78tXnuqADoSHmHknU8tUr4,6926
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (71.0.1)
2
+ Generator: setuptools (72.2.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp311-cp311-macosx_10_15_universal2
5
5