Skip to content

Commit

Permalink
Update TODO distribution notes
Browse files Browse the repository at this point in the history
  • Loading branch information
eliben committed Feb 19, 2025
1 parent d4ea35f commit 96d64eb
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,31 @@ New version
* Update setup.py
* Tag in git (v0.xx)

construct
---------

construct seems to be maintained again - they also backported my Python 3 fixes.
Theoretically, I can remove construct from pyelftools and use it as a dependency
instead. I don't really have time to play with this now, but may do so in the
future.

Preparing a new release
-----------------------

* Make sure new version was updated everywhere appropriate
* Run ``python3 setup.py build sdist bdist_wheel`` (no 'upload' yet)
* Run ``python3 setup.py build sdist bdist_wheel``
* Untar the created ``dist/pyelftools-x.y.tar.gz`` and make sure
everything looks ok
* Now build with upload to send it to PyPi
* Distribute (see below)
* Tag new version in git
* Test with pip install from some new virtualenv

Distribution
------------

1. First install Twine (https://packaging.python.org/tutorials/packaging-projects/)
into a venv, unless already done in ~/bin/venv/...
2. python3 -m twine upload dist/*, but make sure ``setup.py`` was already run
and the updated whl and tarbal are in dist/.
and the updated whl and tarball are in dist/.

Credentials for PyPI are stored in ~/.pypirc

construct
---------

construct seems to be maintained again - they also backported my Python 3 fixes.
Theoretically, I can remove construct from pyelftools and use it as a dependency
instead. I don't really have time to play with this now, but may do so in the
future.

0 comments on commit 96d64eb

Please sign in to comment.