|
| 1 | +# NMRforMD - developer section |
| 2 | + |
| 3 | +<a href="webp"> |
| 4 | + <img src="../docs/source/figures/logo/logo-b.png" align="right" width="30%"/> |
| 5 | +</a> |
| 6 | + |
| 7 | +## How to |
| 8 | + |
| 9 | +If you intend to make modification to the code, please raise an issue or send me an email |
| 10 | +first. Then, fork the repository, apply your changes, then make a pull request |
| 11 | +that will be reviewed. |
| 12 | + |
| 13 | +## Build the documentation |
| 14 | + |
| 15 | +Clone the repository as follow: |
| 16 | + |
| 17 | +``` bash |
| 18 | + git clone https://github.com/simongravelle/nmrformd.git --recurse-submodule |
| 19 | +``` |
| 20 | + |
| 21 | +Build the documentation locally from the [docs](docs/) folder by typing: |
| 22 | + |
| 23 | +``` bash |
| 24 | + pip3 install -r requirements.txt |
| 25 | + make clean |
| 26 | + make html |
| 27 | +``` |
| 28 | + |
| 29 | +## Publish new pip version (1) |
| 30 | + |
| 31 | +Publish a new pip version by following those |
| 32 | +[instructions](https://gist.github.com/arsho/fc651bfadd8a0f42be72156fd21bd8a9). |
| 33 | + |
| 34 | +1 - if necessary, update *docs/source/conf.py*, *CITATION.cff*, and *setup.py* |
| 35 | + |
| 36 | +2 - Create source distribution using |
| 37 | + |
| 38 | +``` bash |
| 39 | + python3 setup.py sdist |
| 40 | +``` |
| 41 | + |
| 42 | +3 - Create a new release on Github using the generated tar.gz file located in dist/ |
| 43 | + |
| 44 | +4 - Update the link in setup.py |
| 45 | + |
| 46 | +5 - Create wheel using: |
| 47 | + |
| 48 | +``` bash |
| 49 | + python3 setup.py bdist_wheel |
| 50 | +``` |
| 51 | + |
| 52 | +6 - Upload to pypi using (with the appropriate number): |
| 53 | + |
| 54 | +``` bash |
| 55 | + twine upload dist/nmrformd-0.1.0* |
| 56 | +``` |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | +## Publish new pip version (2) |
| 62 | + |
| 63 | +This instruction are from [this page](https://gist.github.com/arsho/fc651bfadd8a0f42be72156fd21bd8a9). |
| 64 | + |
| 65 | +Install last version using |
| 66 | + |
| 67 | +```bash |
| 68 | + pip install -e . |
| 69 | +``` |
| 70 | + |
| 71 | +1 - Update version in conf.py |
| 72 | + |
| 73 | +2 - Update CITATION.cff |
| 74 | + |
| 75 | +3 - Update setup.py |
| 76 | + |
| 77 | +4 - Update CHANGELOG |
| 78 | + |
| 79 | +5 - Create source distribution using python3 setup.py sdist |
| 80 | + |
| 81 | +6 - Create a new release on Github using the generated tar.gz file |
| 82 | + |
| 83 | +7 - Update the link in setup.py |
| 84 | + |
| 85 | +8 - Create wheel using python3 setup.py bdist_wheel |
| 86 | + |
| 87 | +9 - Upload to pypi using twine upload dist/nmrformd-0.1.0* \ |
| 88 | + |
| 89 | + |
0 commit comments