img2pdf/HACKING

33 lines
625 B
Text
Raw Permalink Normal View History

2018-08-04 12:37:38 +00:00
Running img2pdf from source
---------------------------
img2pdf can be run directly from the cloned git repository:
$ python3 src/img2pdf.py img.jpg -o out.pdf
Running the testsuite
---------------------
$ pytest
2018-08-04 12:37:38 +00:00
Making a new release
--------------------
- CHANGES.rst: Add a new entry
- setup.py: Bump VERSION
- src/img2pdf.py: Bump __version__
2018-08-04 12:37:38 +00:00
- Commit:
$ git add CHANGES.rst setup.py src/img2pdf.py
2018-08-04 12:37:38 +00:00
$ git commit -m "release version X.Y.Z"
- Add git tag:
$ git tag X.Y.Z -m X.Y.Z
2018-08-04 12:37:38 +00:00
- Build and upload to pypi:
$ rm dist/*
$ python3 setup.py sdist
2018-08-04 12:37:38 +00:00
$ twine upload --sign dist/*