Skip to content

Commit 781a818

Browse files
authored
Merge pull request #1833 from cuthbertLab/random-2025-10
Random small changes in October
2 parents 2f7fcf5 + c2f9f15 commit 781a818

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

dist/dist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@
6666
then don't change anything until the next step is done. Merge to main/master
6767
(.gitignore will avoid uploading the large files created here.)
6868
69-
15. Switch back to master/main branch
69+
15. Switch back to master/main branch (or whatever main version we are releasing)
7070
7171
16. Tag the commit: git tag -a vX.Y.Z -m "music21 vX.Y.Z"
7272
Don't forget the "v" in the release tag.
7373
Sanity check that the correct commit was tagged: git log
7474
75-
17. Push tags: git push --tags (or git push upstream --tags if not on main branch)
75+
17. Push tags: git push --tags
7676
7777
18. Create a new release on GitHub (using the tag just created) and upload the
7878
non-wheel files created here and docs.

music21/test/testRunner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ def testHello(self):
242242
if ('importPlusRelative' in testClasses
243243
or 'importPlusRelative' in sys.argv
244244
or bool(keywords.get('importPlusRelative', False))):
245+
# allow things like volpiano.py's function "fromStream"
246+
# to be called in doctests as "fromStream" and not just "volpiano.fromStream"
245247
globs.update(inspect.stack()[1][0].f_globals)
246248

247249
try:

music21/volpiano.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from __future__ import annotations
2121

2222
import enum
23-
import unittest
2423

2524
from music21 import bar
2625
from music21 import base
@@ -460,14 +459,8 @@ def setAccFromPitch(dist, setNatural=False):
460459
return ''.join(volpianoTokens)
461460

462461

463-
464-
class Test(unittest.TestCase):
465-
pass
466-
467-
def testNoteNames(self):
468-
pass
469-
470-
471462
if __name__ == '__main__':
472463
import music21
473-
music21.mainTest(Test, 'importPlusRelative')
464+
# allow things like "fromStream" to be called in doctests as "fromStream"
465+
# and not just "volpiano.fromStream"
466+
music21.mainTest('importPlusRelative')

0 commit comments

Comments
 (0)