Sauvegarde WAPT

This commit is contained in:
sylvain
2018-11-16 09:30:28 +01:00
parent 6833cf5775
commit bdcf6ee87d
515 changed files with 50348 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
-----BEGIN CERTIFICATE-----
MIIDJjCCAg6gAwIBAgIUAnGNTJYwZIgvuxMgYrGJ2vgOpm8wDQYJKoZIhvcNAQEL
BQAwHzELMAkGA1UEBhMCRlIxEDAOBgNVBAMMB1dBUFRNTUkwHhcNMTgxMTE1MTAw
NjQ2WhcNMjgxMTEyMTAwNjQ2WjAfMQswCQYDVQQGEwJGUjEQMA4GA1UEAwwHV0FQ
VE1NSTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMGwlmiEwQoEfkJJ
cxemIzWU3zajf8PI3ebRkoTlCJIQTXe6Cf5I/pi1fs3duHxrpe82TYGYpHM8Tusk
B6NZjwy88/o1nHGhbNRciNfC05Yf9YSpsSv11tZ/DiGk6o519H219pgZZoo59ndZ
m97m/3Zv2JsCxEw+s5q5a96tiHyXycQwFii7uRW9KX0UWwvlf2IkUzwUaCng+p2k
CaRKOGEV9smmHHGDLAAzYwVAYsxfkCXUIP9535iTjxdFjPngldLhHNeULTFLU9oP
c/OMx9sQ5u1SiPqOcsI6XYRw1dqrOII/f/KubVBxLfm1v1GPgjjc2cja4uk/MZJE
9upPPi0CAwEAAaNaMFgwDwYDVR0TAQH/BAUwAwEB/zAWBgNVHSUBAf8EDDAKBggr
BgEFBQcDAzAdBgNVHQ4EFgQU8swJUILhtjuSJrbt8notOpeNFBQwDgYDVR0PAQH/
BAQDAgHWMA0GCSqGSIb3DQEBCwUAA4IBAQBgLnW5KRFdcz4UuBNgH4EuBtoot0C7
al/grQog+63hwh1idIgFlhG5Hweijb1vNYxlKOWxxj2CibKxYKq556V3sdVSoRd6
4QIaJpScCZZ5CYvGYsAqxv1/axrQ1FH4nmkr6lq6pDzpBInljNNCRfzBLRl8Eknj
gMu6/7DctNCpnirwzQnBH/N6oWOfaingJQxNoWaXZ6Pa9WDTqXAsJDUDWT4MCBZV
IZ+oHhuDZTIQwje5htN9sAhUU3C/8zLW9qqk7PWKd3Xdoyxqz2w4gCzgqtLgHoEF
ofweSDUxjOI+3LSAhbz4lTSqMsEOCiGZvLgamKDbmVDchsdczjIi+dHC
-----END CERTIFICATE-----

33
python-lib/WAPT/control Normal file
View File

@@ -0,0 +1,33 @@
package : waptiut-python-lib
version : 1-2
architecture : all
section : base
priority : optional
maintainer : Administrateur
description : automatic package for solidworks-launch-install
depends : waptiut-gpo-disable-uac
conflicts :
maturity :
locale :
target_os :
min_os_version :
max_os_version :
min_wapt_version :
sources :
installed_size :
impacted_process :
description_fr :
description_pl :
description_de :
description_es :
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : 7ba951a0-0e5c-4c41-a8e9-61ce82df258a
signer : WAPTMMI
signer_fingerprint: db2bbf0cb068dd33d192a6f70e70327460559c5fc08839c1c5199b8c6052e6b7
signature : VGa7y7rtYiVYj9uAoIFwX+PBbqbSnzziQm2NZAbXZBrlUCxh/hopfAYnQ8pIGauobUcuME2GFqnZfWL5zAZVbyZ9vb5CfPIUVpS/KuhlXnsBt3S1npGEGuoZdiiqMAIrm4i6Dzzoo6NH7zRybPPRUu0CisNi+C2MyHEpTQJ093ggVzeV8UVEMyz15QnJTnCTFNZmt0tDio98PeyT+MP47UCmn8N/E394Qc/ffwJskbzdOKaovbkiQVo91pdmYHQgoTWorRknFSrzvKFJrmcrtrHCgv6+5D5U9CLxAHZ1WXp+NbyO+NrHcacSdBM1jqYAZoN4ZHjes84pkvJksJq9nw==
signature_date : 20181115-145947
signed_attributes : package,version,architecture,section,priority,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,audit_schedule,editor,keywords,licence,homepage,package_uuid,signer,signer_fingerprint,signature_date,signed_attributes

View File

@@ -0,0 +1 @@
[["WAPT/certificate.crt", "ec05a54f80016d68bb835490a34a9318f591b06d"], ["WAPT/wapt.psproj", "fd220f992290e136b50a261467611b72aa54b4ff"], ["pythonlib/script.exe", "6947f2ba332d6174d4a0471a01abdf062d29694e"], ["pythonlib/script.bat", "3549ced0e7a5d6070cfbf63cc414e2119462cd45"], ["setup.py", "19075644eadfb0a082d8785650f5f21ae1ee1727"], ["WAPT/control", "055e9eb15bf86917c97b9dff0105c18cb70ae522"]]

View File

@@ -0,0 +1 @@
[["WAPT/certificate.crt", "4587acaa1ada3e531deb130c670c4967a52e64ad30a425c6fd8ae7a17c9fab10"], ["WAPT/wapt.psproj", "af0bfb79cfa2e2f1cecd14449c2360511f9c4d7bd9898cdf4789512f062955d4"], ["pythonlib/script.exe", "f1573e9969ada3118979b4c3b3948c93bb025339950920bf12688806778bb7b1"], ["pythonlib/script.bat", "072cc4cd75add1e727f3adfd77445fbaec1cb753eeb87d39c2ac92175d1b7332"], ["setup.py", "35c3667b73985cf61d73d4d38512773b21b751407163fad2b6163485a559b13f"], ["WAPT/control", "e1ad85375cb394cfcb6b9e74a7e7fb86fb8d0fa74a8f685657f87a81da8a6d90"]]

View File

@@ -0,0 +1,5 @@
PJcIdugaTkYQxgXdKZlpZTqsJ+zuWhZaEeRpFL7/OH6UYkS8DQr4ydfoShbbk5I5GrDkx+II0nCN
q7vePhQE2aMtVlHZaz5IubWeq3GiK6G50+J0vx517R25pEyKQJPaHDDTxUYQGjg6/t2u9vUFZzUy
i02sRnK315n+sJd3Bohek+xFGMrF7diw6m0aSBq4jMnUe2KAawbW8JTWBGiPEcFp1Bh0DgEB52iz
YOc/aR8oNpKvgHiz1+ULe4h/xrtO1bbY6Qrj9q1ElhcJpirWa2ZdTqpla2lS1XkBWZNu2V6naFX0
34DlWt46nx5vexpd93d1DOOOcU8fgxNv2I5nbQ==

View File

@@ -0,0 +1,5 @@
LIunbb28Jw6gQ/rAeOg4uJrRTx6kN7cW3NbzWK9g4FASsfwCdwXNISq81yQLKUWmeNmLKab+1sgv
sEcsBquvksJ9ccnqyh96ePVrMJvOVVuk2OFX8hEY8QZg5wKyDeLeMRw/LCEVBd3eKi3W/C2++v8Q
yBjcMkV7bHi/pZtKpK0mad09eMQYsUI43+uU1+cjGRGRVOKY+Xogg7aEOoIqfYdtWFf2P34m1RVq
d0RzbkP3TLvWj79yjmjXHjk/WdjSMkxGu9Gn2XrqyKjZBGICbrO2eHRZKLPrGCvB65QJehvSn5WQ
NDtu2hOiNId+OS6zqUOxiXb9IudkvxGaDSpdrQ==

295
python-lib/WAPT/wapt.psproj Normal file
View File

@@ -0,0 +1,295 @@
[PyScripter]
Version=3.3.2.0
[Project]
ClassName=TProjectRootNode
StoreRelativePaths=TRUE
ShowFileExtensions=FALSE
[Project\ChildNodes\Node0]
ClassName=TProjectFilesNode
[Project\ChildNodes\Node0\ChildNodes\Node0]
ClassName=TProjectFolderNode
Name=wapt
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node0]
ClassName=TProjectFileNode
FileName=C:\Program Files (x86)\wapt\common.py
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node1]
ClassName=TProjectFileNode
FileName=C:\Program Files (x86)\wapt\setuphelpers.py
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node2]
ClassName=TProjectFileNode
FileName=C:\Program Files (x86)\wapt\wapt-get.ini
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node3]
ClassName=TProjectFileNode
FileName=C:\Program Files (x86)\wapt\wapt-get.py
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node4]
ClassName=TProjectFileNode
FileName=C:\Program Files (x86)\wapt\waptpackage.py
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes]
Count=5
[Project\ChildNodes\Node0\ChildNodes\Node1]
ClassName=TProjectFileNode
FileName=$[Project-Path]changelog.txt
[Project\ChildNodes\Node0\ChildNodes\Node2]
ClassName=TProjectFileNode
FileName=$[Project-Path]control
[Project\ChildNodes\Node0\ChildNodes\Node3]
ClassName=TProjectFileNode
FileName=$[Project-Path]..\setup.py
[Project\ChildNodes\Node0\ChildNodes]
Count=4
[Project\ChildNodes\Node1]
ClassName=TProjectRunConfiguationsNode
[Project\ChildNodes\Node1\ChildNodes\Node0]
ClassName=TProjectRunConfiguationNode
Name=install
[Project\ChildNodes\Node1\ChildNodes\Node0\RunConfig]
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
EngineType=peRemote
ReinitializeBeforeRun=TRUE
Parameters=install "$[Project-Path].."
WorkingDir=$[Project-Path]..
WriteOutputToFile=FALSE
OutputFileName=$[ActiveScript-NoExt].log
AppendToFile=FALSE
[Project\ChildNodes\Node1\ChildNodes\Node0\RunConfig\ExternalRun]
Caption=External Run
Description=Run script using an external Python Interpreter
ApplicationName=$[PythonExe-Short]
Parameters=$[ActiveScript-Short]
WorkingDirectory=$[ActiveScript-Dir]
ShortCut=0
MessagesFormat=$[FileName] $[LineNumber]
[Project\ChildNodes\Node1\ChildNodes\Node1]
ClassName=TProjectRunConfiguationNode
Name=remove
[Project\ChildNodes\Node1\ChildNodes\Node1\RunConfig]
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
EngineType=peRemote
ReinitializeBeforeRun=TRUE
Parameters=remove "$[Project-Path].."
WorkingDir=$[Project-Path]..
WriteOutputToFile=FALSE
OutputFileName=$[ActiveScript-NoExt].log
AppendToFile=FALSE
[Project\ChildNodes\Node1\ChildNodes\Node1\RunConfig\ExternalRun]
Caption=External Run
Description=Run script using an external Python Interpreter
ApplicationName=$[PythonExe-Short]
Parameters=$[ActiveScript-Short]
WorkingDirectory=$[ActiveScript-Dir]
ShortCut=0
MessagesFormat=$[FileName] $[LineNumber]
[Project\ChildNodes\Node1\ChildNodes\Node2]
ClassName=TProjectRunConfiguationNode
Name=session-setup
[Project\ChildNodes\Node1\ChildNodes\Node2\RunConfig]
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
EngineType=peRemote
ReinitializeBeforeRun=TRUE
Parameters=session-setup "$[Project-Path].."
WorkingDir=$[Project-Path]..
WriteOutputToFile=FALSE
OutputFileName=$[ActiveScript-NoExt].log
AppendToFile=FALSE
[Project\ChildNodes\Node1\ChildNodes\Node2\RunConfig\ExternalRun]
Caption=External Run
Description=Run script using an external Python Interpreter
ApplicationName=$[PythonExe-Short]
Parameters=$[ActiveScript-Short]
WorkingDirectory=$[ActiveScript-Dir]
ShortCut=0
MessagesFormat=$[FileName] $[LineNumber]
[Project\ChildNodes\Node1\ChildNodes\Node3]
ClassName=TProjectRunConfiguationNode
Name=update
[Project\ChildNodes\Node1\ChildNodes\Node3\RunConfig]
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
EngineType=peRemote
ReinitializeBeforeRun=TRUE
Parameters=update
WorkingDir=$[Project-Path]..
WriteOutputToFile=FALSE
OutputFileName=$[ActiveScript-NoExt].log
AppendToFile=FALSE
[Project\ChildNodes\Node1\ChildNodes\Node3\RunConfig\ExternalRun]
Caption=External Run
Description=Run script using an external Python Interpreter
ApplicationName=$[PythonExe-Short]
Parameters=$[ActiveScript-Short]
WorkingDirectory=$[ActiveScript-Dir]
ShortCut=0
MessagesFormat=$[FileName] $[LineNumber]
[Project\ChildNodes\Node1\ChildNodes\Node4]
ClassName=TProjectRunConfiguationNode
Name=upgrade
[Project\ChildNodes\Node1\ChildNodes\Node4\RunConfig]
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
EngineType=peRemote
ReinitializeBeforeRun=TRUE
Parameters=-f upgrade
WorkingDir=$[ActiveScript-Dir]
WriteOutputToFile=FALSE
OutputFileName=$[ActiveScript-NoExt].log
AppendToFile=FALSE
[Project\ChildNodes\Node1\ChildNodes\Node4\RunConfig\ExternalRun]
Caption=External Run
Description=Run script using an external Python Interpreter
ApplicationName=$[PythonExe-Short]
Parameters=$[ActiveScript-Short]
WorkingDirectory=$[ActiveScript-Dir]
ShortCut=0
MessagesFormat=$[FileName] $[LineNumber]
[Project\ChildNodes\Node1\ChildNodes\Node5]
ClassName=TProjectRunConfiguationNode
Name=-i build-upload
[Project\ChildNodes\Node1\ChildNodes\Node5\RunConfig]
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
EngineType=peRemote
ReinitializeBeforeRun=TRUE
Parameters=-i build-upload "$[Project-Path].."
WorkingDir=$[Project-Path]..
WriteOutputToFile=FALSE
OutputFileName=$[ActiveScript-NoExt].log
AppendToFile=FALSE
[Project\ChildNodes\Node1\ChildNodes\Node5\RunConfig\ExternalRun]
Caption=External Run
Description=Run script using an external Python Interpreter
ApplicationName=$[PythonExe-Short]
Parameters=$[ActiveScript-Short]
WorkingDirectory=$[ActiveScript-Dir]
ShortCut=0
MessagesFormat=$[FileName] $[LineNumber]
[Project\ChildNodes\Node1\ChildNodes\Node6]
ClassName=TProjectRunConfiguationNode
Name=svn update
[Project\ChildNodes\Node1\ChildNodes\Node6\RunConfig]
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
EngineType=peRemote
ReinitializeBeforeRun=TRUE
Parameters=sources "$[Project-Path].."
WorkingDir=$[Project-Path]..
WriteOutputToFile=FALSE
OutputFileName=$[ActiveScript-NoExt].log
AppendToFile=FALSE
[Project\ChildNodes\Node1\ChildNodes\Node6\RunConfig\ExternalRun]
Caption=External Run
Description=Run script using an external Python Interpreter
ApplicationName=$[PythonExe-Short]
Parameters=$[ActiveScript-Short]
WorkingDirectory=$[ActiveScript-Dir]
ShortCut=0
MessagesFormat=$[FileName] $[LineNumber]
[Project\ChildNodes\Node1\ChildNodes\Node7]
ClassName=TProjectRunConfiguationNode
Name=uninstall
[Project\ChildNodes\Node1\ChildNodes\Node7\RunConfig]
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
EngineType=peRemote
ReinitializeBeforeRun=TRUE
Parameters=uninstall "$[Project-Path].."
WorkingDir=$[Project-Path]..
WriteOutputToFile=FALSE
OutputFileName=$[ActiveScript-NoExt].log
AppendToFile=FALSE
[Project\ChildNodes\Node1\ChildNodes\Node7\RunConfig\ExternalRun]
Caption=External Run
Description=Run script using an external Python Interpreter
ApplicationName=$[PythonExe-Short]
Parameters=$[ActiveScript-Short]
WorkingDirectory=$[Project-Path]..
ShortCut=0
MessagesFormat=$[FileName] $[LineNumber]
[Project\ChildNodes\Node1\ChildNodes\Node8]
ClassName=TProjectRunConfiguationNode
Name=update-package-sources
[Project\ChildNodes\Node1\ChildNodes\Node8\RunConfig]
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
EngineType=peRemote
ReinitializeBeforeRun=TRUE
Parameters=update-package-sources "$[Project-Path].."
WorkingDir=$[Project-Path]..
WriteOutputToFile=FALSE
OutputFileName=$[ActiveScript-NoExt].log
AppendToFile=FALSE
[Project\ChildNodes\Node1\ChildNodes\Node8\RunConfig\ExternalRun]
Caption=External Run
Description=Run script using an external Python Interpreter
ApplicationName=$[PythonExe-Short]
Parameters=$[ActiveScript-Short]
WorkingDirectory=$[ActiveScript-Dir]
ShortCut=0
MessagesFormat=$[FileName] $[LineNumber]
[Project\ChildNodes\Node1\ChildNodes\Node9]
ClassName=TProjectRunConfiguationNode
Name=audit
[Project\ChildNodes\Node1\ChildNodes\Node9\RunConfig]
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
EngineType=peRemote
ReinitializeBeforeRun=TRUE
Parameters=audit "$[Project-Path].."
WorkingDir=$[Project-Path]..
WriteOutputToFile=FALSE
OutputFileName=$[ActiveScript-NoExt].log
AppendToFile=FALSE
[Project\ChildNodes\Node1\ChildNodes\Node9\RunConfig\ExternalRun]
Caption=External Run
Description=Run script using an external Python Interpreter
ApplicationName=$[PythonExe-Short]
Parameters=$[ActiveScript-Short]
WorkingDirectory=$[ActiveScript-Dir]
ShortCut=0
MessagesFormat=$[FileName] $[LineNumber]
[Project\ChildNodes\Node1\ChildNodes]
Count=10
[Project\ChildNodes]
Count=2
[Project\ExtraPythonPath]
Count=0

View File

@@ -0,0 +1 @@
python -mpip install -U matplotlib --proxy=http://PROXY

26
python-lib/setup.py Normal file
View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
from setuphelpers import *
import os
import os.path
import shutil
import sys
import win32wnet
uninstallkey = []
def install():
print('Copie des fichiers')
if isdir(r'C:\pythonlib'):
remove_tree(r'C:\pythonlib')
print('Copie des fichiers')
os.mkdir('C:\pythonlib')
copytree2(r'pythonlib',r'c:\pythonlib')
def session_setup():
print('Installation')
run('C:\pythonlib\script.bat')
remove_tree(r'C:\pythonlib')
def uninstall():
print('Suppression du dossier pythonlib')
remove_tree(r'C:\matplotlib')