File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 175175
176176# Publishing
177177Dependencies: ` gcc patchelf ` and ` build twine auditwheel `
178- Ensure before publishing the working tree is public under ` master ` .
179178
179+ ## Cleanup sources
180180``` sh
181+ ./scripts/utils/run_formatter.sh pydtnn
182+ git add .
183+ git commit -m ' format codebase'
184+ git push
185+ ```
186+
187+ ## Publish sources
188+ ``` sh
189+ git checkout master
190+ git merge develop
191+ git checkout master
192+ ```
193+
194+ ### Build distribution
195+ ``` sh
196+ rm -rf ./build/
181197python -m build --outdir ./build/ --sdist
182198python -m build --outdir ./build/wheel/ --wheel
183199python -m auditwheel repair --wheel-dir ./build/ ./build/wheel/* .whl
200+ ```
201+
202+ ### Publish distribution
203+ ``` sh
184204python -m twine upload --repository pypi ./build/pydtnn-*
185205```
Original file line number Diff line number Diff line change 11"""PyDTNN environment initialization"""
22
33import atexit
4- from datetime import datetime
54import logging
65import os
76import platform
87import subprocess
98from collections import Counter
9+ from datetime import datetime
1010from types import ModuleType
1111
1212logger = logging .getLogger (__name__ )
Original file line number Diff line number Diff line change 1616
1717import yaml
1818
19- from pydtnn import utils , timestamp
19+ from pydtnn import timestamp , utils
2020from pydtnn .utils .debug import traceback_context
2121from pydtnn .utils .serial import NumpyYaml
2222
Original file line number Diff line number Diff line change 1- from contextlib import contextmanager
21import functools
32import inspect
43import logging
54import os
6- from pathlib import Path
75import threading
6+ from contextlib import contextmanager
7+ from pathlib import Path
88from traceback import TracebackException
99
1010from pydtnn import timestamp
Original file line number Diff line number Diff line change 11[project ]
22name = " pydtnn"
3- version = " 3.7.1 "
3+ version = " 3.7.2 "
44description = " Python Distributed Training of Neural Networks"
55readme = " README.md"
66license = " GPL-3.0-or-later"
You can’t perform that action at this time.
0 commit comments