2019-12-04 17:38:47 +01:00
|
|
|
Testing
|
|
|
|
-------
|
|
|
|
In a Python 3 virtualenv:
|
|
|
|
|
|
|
|
~~~
|
|
|
|
pip install -e .
|
2020-01-30 19:06:42 +01:00
|
|
|
pip install -r requirements-test.txt
|
2019-12-04 17:38:47 +01:00
|
|
|
make test
|
|
|
|
~~~
|
|
|
|
|
2020-02-06 13:04:29 +01:00
|
|
|
Releasing
|
|
|
|
---------
|
2021-01-28 16:04:07 +01:00
|
|
|
* Update `ocrd-tool.json` version (the `setup.py` version is read from this)
|
2022-09-15 18:43:09 +02:00
|
|
|
* `git add` the `ocrd-tool.json` file and `git commit -m 'v<version>'`
|
2020-02-06 13:03:06 +01:00
|
|
|
* `git tag -m 'v<version>' 'v<version>'`
|
2022-02-23 14:33:37 +01:00
|
|
|
* `git push; git push --tags`
|
2022-09-15 18:43:09 +02:00
|
|
|
* Wait and check if tests on CircleCI are OK
|
2020-08-06 14:04:17 +02:00
|
|
|
* Do a release on GitHub
|
2019-12-02 18:32:33 +01:00
|
|
|
|
2020-02-06 13:04:29 +01:00
|
|
|
### Uploading to PyPI
|
2020-02-06 13:02:02 +01:00
|
|
|
* `rm -rf dist/` or backup if `dist/` exists already
|
|
|
|
* In the virtualenv: `python setup.py sdist bdist_wheel`
|
|
|
|
* `twine upload dist/ocrd_calamari-<version>*`
|