-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
commands.txt
78 lines (45 loc) · 1.79 KB
/
commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
-------------------------------------------------
|| Steps to follow after updating the code ||
-------------------------------------------------
Step-0:
1. Edit the code as you like.
Make sure that-
2. you are using an anaconda virutal environment named 'msdlib' (optional)
3. dependencies are installed from both requirements.txt and requirements-dev.txt
4. pytorch is installed properly
Step-1:
Do not forget to update the version number inside msdlib/__init__.py
Step-2:
Code documentation:
1. make necessary changes in code documentation
Step-3:
Code testing:
1. run pytest
command: coverage run -m pytest tests/ --html=tests/test-report-<date>.html
2. run coverage using command: coverage html
Step-4:
Running example files through one command:
1. Be in project directory in the command line.
2. command: python utils/run_examples.py (at first, make sure there is an anaconda envirornment named msdlib where you have installed everything)
Step-5:
Update README before pushing or updating on pypi
1. Be in project directory in the command line.
2. command: python utils/update_readme.py (at first, make sure there is an anaconda envirornment named msdlib where you have installed everything)
Step-6:
Code documentation integration using Sphinx
1. go to docs
2. type command: make html
3. push the code to github (not yet, do below steps after the code is pushed to github in Step-7)
4. go to the website of readthedocs and log in
5. go to the builds section
6. press on build button for a new build
done!!
Step-7:
1. Check git diff for each updated file
2. After checking is done, Commit and Push to github
Step-8:
pypi build and upload commands
1. python setup.py sdist bdist_wheel
2. python -m twine upload --repository pypi dist/*
username: __token__
pass: use the account token