Skip to content

Commit ca1fb4c

Browse files
authored
Refactoring 2 (#39)
* Quantization * doc * clean * move files * clean * doc * change setup * ci * fix documentation * doc * setup * doc * doc * pytest * doc * doc * better doc * doc
1 parent 43bff8e commit ca1fb4c

File tree

203 files changed

+812
-2514
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+812
-2514
lines changed

.circleci/config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
- restore_cache:
1313
keys:
14-
- v4-dependencies-{{ checksum "requirements.txt" }}
14+
- v4-dependencies-{{ checksum "requirements-dev.txt" }}
1515
- v4-dependencies-
1616

1717
- run:
@@ -47,11 +47,12 @@ jobs:
4747
name: install dependencies
4848
command: |
4949
pip install -r requirements.txt
50+
pip install -r requirements-dev.txt
5051
5152
- save_cache:
5253
paths:
5354
- ./venv
54-
key: v4-dependencies-{{ checksum "requirements.txt" }}
55+
key: v4-dependencies-{{ checksum "requirements-dev.txt" }}
5556

5657
- run:
5758
name: check list of dependencies
@@ -62,7 +63,7 @@ jobs:
6263
- run:
6364
name: run tests
6465
command: |
65-
python setup.py unittests -d 20
66+
python -m pytest _unittests --durations=10 --ignore-glob=**LONG*.py
6667
6768
- run:
6869
name: wheel

.github/workflows/documentation.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,21 @@ jobs:
3939
- name: Install requirements
4040
run: python -m pip install -r requirements.txt
4141

42-
#- name: Install
43-
# run: python -m pip install -e .
42+
- name: Install
43+
run: python setup.py install
44+
45+
- name: Install requirements dev
46+
run: python -m pip install -r requirements-dev.txt
47+
4448
- name: Copy license
45-
run: cp LICENSE* ./_doc/sphinxdoc/source
49+
run: cp LICENSE* ./_doc
4650
- name: Copy readme
47-
run: cp README* ./_doc/sphinxdoc/source
51+
run: cp README* ./_doc
52+
- name: Copy changelogs
53+
run: cp CHANGELOGS* ./_doc
4854

49-
#- name: Documentation
50-
# run: python -m sphinx ./_doc/sphinxdoc/source ./dist/html
5155
- name: Documentation
52-
run: python setup.py build_sphinx
56+
run: python -m sphinx ./_doc ./dist/html
5357

5458
- uses: actions/upload-artifact@v3
5559
with:

.gitignore

Lines changed: 25 additions & 285 deletions
Original file line numberDiff line numberDiff line change
@@ -1,287 +1,27 @@
1-
#################
2-
## Eclipse
3-
#################
4-
5-
*.pydevproject
6-
.project
7-
.metadata
8-
bin/
9-
tmp/
10-
_virtualenv/
11-
*.tmp
12-
*.bak
13-
*.swp
14-
*~.nib
15-
local.properties
16-
.classpath
17-
.settings/
18-
.loadpath
19-
*.pyproj
20-
dummy.py
21-
22-
# External tool builders
23-
.externalToolBuilders/
24-
25-
# Locally stored "Eclipse launch configurations"
26-
*.launch
27-
28-
# CDT-specific
29-
.cproject
30-
31-
# PDT-specific
32-
.buildpath
33-
34-
35-
#################
36-
## Visual Studio
37-
#################
38-
39-
## Ignore Visual Studio temporary files, build results, and
40-
## files generated by popular Visual Studio add-ons.
41-
42-
# User-specific files
43-
*.suo
44-
*.user
45-
*.sln.docstates
46-
47-
# Build results
48-
49-
[Dd]ebug/
50-
[Rr]elease/
51-
x64/
52-
build/
53-
[Bb]in/
54-
[Oo]bj/
55-
.eggs/
56-
57-
# MSTest test Results
58-
[Tt]est[Rr]esult*/
59-
[Bb]uild[Ll]og.*
60-
61-
*_i.c
62-
*_p.c
63-
*.ilk
64-
*.meta
65-
*.obj
66-
*.pch
67-
*.pdb
68-
*.pgc
69-
*.pgd
70-
*.rsp
71-
*.sbr
72-
*.tlb
73-
*.tli
74-
*.tlh
75-
*.tmp
76-
*.tmp_proj
77-
*.log
78-
*.vspscc
79-
*.vssscc
80-
.builds
81-
*.pidb
82-
*.log
83-
*.scc
84-
85-
# Visual C++ cache files
86-
ipch/
87-
*.aps
88-
*.ncb
89-
*.opensdf
90-
*.sdf
91-
*.cachefile
92-
93-
# Visual Studio profiler
94-
*.psess
95-
*.vsp
96-
*.vspx
97-
98-
# Guidance Automation Toolkit
99-
*.gpState
100-
101-
# ReSharper is a .NET coding add-in
102-
_ReSharper*/
103-
*.[Rr]e[Ss]harper
104-
105-
# TeamCity is a build add-in
106-
_TeamCity*
107-
108-
# DotCover is a Code Coverage Tool
109-
*.dotCover
110-
111-
# NCrunch
112-
*.ncrunch*
113-
.*crunch*.local.xml
114-
115-
# Installshield output folder
116-
[Ee]xpress/
117-
118-
# DocProject is a documentation generator add-in
119-
DocProject/buildhelp/
120-
DocProject/Help/*.HxT
121-
DocProject/Help/*.HxC
122-
DocProject/Help/*.hhc
123-
DocProject/Help/*.hhk
124-
DocProject/Help/*.hhp
125-
DocProject/Help/Html2
126-
DocProject/Help/html
127-
128-
# Click-Once directory
129-
publish/
130-
131-
# Publish Web Output
132-
*.Publish.xml
133-
*.pubxml
134-
135-
# NuGet Packages Directory
136-
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
137-
#packages/
138-
139-
# Windows Azure Build Output
140-
csx
141-
*.build.csdef
142-
143-
# Windows Store app package directory
144-
AppPackages/
145-
146-
# Others
147-
sql/
148-
*.Cache
149-
ClientBin/
150-
[Ss]tyle[Cc]op.*
151-
~$*
152-
*~
153-
*.dbmdl
154-
*.[Pp]ublish.xml
155-
*.pfx
156-
*.publishsettings
157-
158-
# RIA/Silverlight projects
159-
Generated_Code/
160-
161-
# Backup & report files from converting an old project file to a newer
162-
# Visual Studio version. Backup files are not needed, because we have git ;-)
163-
_UpgradeReport_Files/
164-
Backup*/
165-
UpgradeLog*.XML
166-
UpgradeLog*.htm
167-
168-
# SQL Server files
169-
App_Data/*.mdf
170-
App_Data/*.ldf
171-
172-
#############
173-
## Windows detritus
174-
#############
175-
176-
# Windows image file caches
177-
Thumbs.db
178-
ehthumbs.db
179-
180-
# Folder config file
181-
Desktop.ini
182-
183-
# Recycle Bin used on file shares
184-
$RECYCLE.BIN/
185-
186-
# Mac crap
187-
.DS_Store
188-
189-
190-
#############
191-
## Python
192-
#############
193-
194-
*.py[co]
195-
196-
# Packages
197-
*.egg
198-
*.egg-info
199-
dist/
200-
build/
201-
eggs/
202-
parts/
203-
var/
204-
sdist/
205-
develop-eggs/
206-
__pycache__/
207-
.installed.cfg
208-
209-
# Installer logs
210-
pip-log.txt
211-
212-
# Unit test / coverage reports
1+
*.pyc
2+
*.pyd
3+
*.dylib
4+
*.so
5+
coverage.html/*
6+
_cache/*
2137
.coverage
214-
.tox
215-
216-
#Translations
217-
*.mo
218-
219-
#Mr Developer
220-
.mr.developer.cfg
221-
222-
# py* packages
8+
dist/*
9+
build/*
10+
.eggs/*
11+
*egg-info/*
12+
onnxruntime_profile*
13+
prof
22314
temp_*
224-
out_*
225-
*/sphinxdoc/source/index_*
226-
*/sphinxdoc/source/readme.*
227-
*/sphinxdoc/source/LICENSE.txt
228-
*/sphinxdoc/source/filechanges.*
229-
version.txt
230-
_doc/sphinxdoc/source/python_template/*box.html
231-
_doc/sphinxdoc/source/python_template/*toc.html
232-
_doc/sphinxdoc/source/mlstatpy/
233-
_doc/sphinxdoc/source/coverage/*
234-
*/sphinxdoc/source/all*.rst
235-
_doc/sphinxdoc/source/notebooks/*
236-
*/sphinxdoc/source/gynotebooks/*
237-
_doc/sphinxdoc/source/gyexamples/*
238-
_doc/sphinxdoc/source/examples/*
239-
_doc/sphinxdoc/source/gallery/*
240-
_doc/sphinxdoc/source/gallerynb/*
241-
build_help.bat
242-
_doc/sphinxdoc/source/blog/*.rst
243-
_doc/sphinxdoc/source/blog/rss.xml
244-
_doc/sphinxdoc/source/phdoc_templates/*toc.html
245-
_doc/sphinxdoc/source/phdoc_templates/*box.html
246-
_doc/sphinxdoc/source/blog/feed-icon*.png
247-
_doc/sphinxdoc/source/_static/reveal.js/*
248-
_doc/notebooks/.ipynb_checkpoints/*
249-
dist_module27/*
250-
auto_*.bat
251-
auto_*.sh
252-
auto_*.py
253-
auto_*.xml
254-
auto_*.db3
255-
_doc/sphinxdoc/source/_static/require.js
256-
_doc/sphinxdoc/require.js
257-
ex.*
258-
m.temp
259-
_doc/notebooks/*/.ipynb_checkpoints
260-
_doc/notebooks/nlp/frwiki-latest-all-titles-in-ns0
261-
_doc/notebooks/nlp/sample*.txt
262-
_doc/notebooks/nlp/completion.prof
263-
_doc/notebooks/nlp/profile.png
264-
_doc/notebooks/nlp/completion.dot
265-
_doc/notebooks/nlp/completion.png
266-
_doc/notebooks/nlp/completion.pstat
267-
_doc/sphinxdoc/source/c_dist/edit_bibliographie.rst
268-
_doc/notebooks/Untitled.ipynb
269-
_doc/notebooks/ml/*.clean_cache
270-
_doc/notebooks/ml/img-*.png
271-
_doc/notebooks/ml/*.pickle
272-
_doc/sphinxdoc/source/nbcov.png
273-
_doc/notebooks/dsgarden/arbre.png
274-
_doc/notebooks/dsgarden/arbre.dot
275-
_doc/notebooks/nlp/output_*.jpeg
276-
_doc/sphinxdoc/source/c_ml/math/*.png
277-
_doc/sphinxdoc/source/c_ml/*.html
278-
_unittests/ut_graph/*.prof
279-
_doc/notebooks/ml/onnxruntime*.json
280-
_doc/notebooks/ml/tree_*.onnx
281-
_doc/sphinxdoc/source/HISTORY.rst
282-
_doc/sphinxdoc/source/README.rst
283-
_doc/sphinxdoc/source/_static/embed-amd.js
284-
_doc/sphinxdoc/source/_static/style_notebook_snippet.css
285-
_doc/sphinxdoc/source/_temp_*
286-
*.out
287-
*.err
15+
_doc/auto_examples/*
16+
_doc/examples/_cache/*
17+
_doc/examples/onnxruntime_profile*
18+
_doc/examples/plot_*.png
19+
_doc/examples/plot_*.xlsx
20+
_doc/examples/data/*.optimized.onnx
21+
_doc/examples/*.html
22+
_doc/_static/require.js
23+
_doc/_static/viz.js
24+
_unittests/ut__main/*.png
25+
_unittests/ut__main/_cache/*
26+
_unittests/ut__main/*.html
27+
_unittests/.hypothesis/*

.local.jenkins.lin.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ install:
1313
- $PYINT -m pip install --upgrade --no-cache-dir --no-deps --index http://localhost:8067/simple/ jyquickhelper pyquickhelper pyensae pymmails pymyinstall pyrsslocal --extra-index-url=https://pypi.python.org/simple/
1414
- $PYINT -m pip install --upgrade --no-cache-dir --no-deps --index http://localhost:8067/simple/ mlinsights>=0.3 --extra-index-url=https://pypi.python.org/simple/
1515
- $PYINT -m pip install -r requirements.txt
16+
- $PYINT -m pip install -r requirements-dev.txt
1617
- $PYINT --version
1718
- $PYINT -m pip freeze
1819

1920
script:
20-
- { CMD: "$PYINT -u setup.py unittests --covtoken=ab2da06c-1ff3-4875-97fa-145e594bd7f9", NAME: "UT", TIMEOUT: 3000 }
21-
- { CMD: "$PYINT -u setup.py unittests_LONG", NAME: "UT_LONG", TIMEOUT: 7200, SCHEDULER: "H H(1-2) 11 * *" }
21+
- { CMD: "$PYINT -m pytest _unittests --durations=10 --ignore-glob=**LONG*.py", NAME: "UT", TIMEOUT: 3000 }
22+
- { CMD: "$PYINT -m pytest _unittests/ut_run_long --durations=10", NAME: "UT", TIMEOUT: 7200 }
2223

2324
after_script:
2425
- $PYINT -u setup.py bdist_wheel

0 commit comments

Comments
 (0)