Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create 9.4beta for 9.5 or 10.1 #1740

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions dist/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@
11. zip up documentation/build/html and get ready to upload/delete it.
Rename to music21.v.7.1.0-docs.zip (skip for Alpha/Beta)

12. Run "hatch build" -- requires hatch to be installed "brew install hatch"
12. From the music21 main folder (not the sub folder) run "hatch build" --
requires hatch to be installed "brew install hatch"

This builds the dist/music21-9.3.0.tar.gz and dist/music21-9.3.0-py3-none-any.whl
files. That used to be what *this* script did, but now hatch does it better!

Expand All @@ -67,15 +69,18 @@

17. Push tags: git push --tags (or git push upstream --tags if not on main branch)

18. Create a new release on GitHub and upload the TWO non-wheel files created here and docs.
18. Create a new release on GitHub (using the tag just created) and upload the
non-wheel files created here and docs.

Drag in this order: .tar.gz, -docs.zip, no-corpus.tar.gz

Finish this before doing the next step, even though it looks like it could be done in parallel.

19. Upload the new file to PyPI with "twine upload music21-7.3.5a2.tar.gz", and same for the
whl file (but NOT no corpus) [*]
19a. Upload the new file to PyPI with "twine upload music21-9.3.0.tar.gz" [*]

[*] Requires twine to be installed
19b. Do the same for the whl file (but not for the no-corpus file) [*]

[*] Requires twine to be installed and up-to-date (pip install --upgrade twine)

You will need a file called ~/.pypirc with

Expand All @@ -84,8 +89,13 @@
pypi

[pypi]
username:your_username
password:your_password
username:__token__
password:pypi-the_gibberish_generated_in_create_api_token_at_the_bottom_of_account_settings

FYI -- PyPI is apparently uninterested in having contributions from smaller projects
which haven't been following their internal security discussions for years. All of this
is super mysterious and not well documented. sigh. But they did mail out USB sticks to
the top 1% of projects in Python!

20. Delete the two .tar.gz files and .whl file in dist.

Expand Down
2 changes: 1 addition & 1 deletion music21/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
'''
from __future__ import annotations

__version__ = '9.3.0'
__version__ = '9.4.0b1'

def get_version_tuple(vv):
v = vv.split('.')
Expand Down
2 changes: 1 addition & 1 deletion music21/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<class 'music21.base.Music21Object'>

>>> music21.VERSION_STR
'9.3.0'
'9.4.0b1'

Alternatively, after doing a complete import, these classes are available
under the module "base":
Expand Down
Loading