Request for an SVN/Git tutorial with PyScripter

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
cdeze
Messages: 31
Registration: Nov 29, 2016 - 09:39

March 7, 2017 - 10:37

Hello,
is there any documentation or tutorial for version control for packages using PyScripter?

I'd like to have a single Git/SVN repository for all packages,
and also not have the executable files in the repository.
Thank you.
Floflobel
Messages: 135
Registration: Oct 15, 2015 - 5:32 p.m.

March 7, 2017 - 11:07

Hello,

You can use Git to manage your repository.
I recommend exporting the .exe files to an FTP server that can handle the download load.
Then use the wget function (https://dev.tranquil.it/sphinxdocs/sour ... lpers.wget) to download the .exe file. You can store the .exe files in the Windows temporary folder until the installation is complete, then delete them.

Feel free to ask if you need any further assistance.

Sincerely,
cdeze
Messages: 31
Registration: Nov 29, 2016 - 09:39

March 20, 2017 - 12:02

Frankly, the way to make SVN or Git work with the `sources` parameter isn't very clear.
I've correctly entered the address of my SVN or Git repository, but it's not working.

Command Line: `-ldebug sources C:\wapt\dev\dsi-joineole-wapt\WAPT
FATAL ERROR: Exception: No sources defined in package control file and no default_sources_url in config file
Traceback (most recent call last):
File "C:\wapt\wapt-get.py", line 1106, in`
main()
File "C:\wapt\wapt-get.py", line 655, in main
os.startfile(mywapt.get_sources(args[1]))
File "C:\wapt\common.py", line 3518, in get_sources
raise Exception('No sources defined in package control file and no default_sources_url in config file')
Exception: No sources defined in package control file and no default_sources_url in config file
Floflobel
Messages: 135
Registration: Oct 15, 2015 - 5:32 p.m.

March 20, 2017 - 1:57 PM

Hello,

could you please send me your complete package? It seems some information is missing from a file (control).
SVN and Git are not linked to WAPT; you need to set them up yourself and then commit using Git. Please note that compiling with WAPT does not automatically link you to Git or SVN.
Last edited by Floflobel on Oct 23, 2017 - 10:26, edited 1 time.
cdeze
Messages: 31
Registration: Nov 29, 2016 - 09:39

March 20, 2017 - 3:35 PM

Yes, we have an SVN repository that is ready http://svn.XXXXXXXX.fr/svn/104-wapt-packages

The files are quite simple.

Code: Select all

package           : dsi-joineole
version           : 1.1-3
architecture      : all
section           : base
priority          : optional
maintainer        : cdeze
description       : automatic package for joineole
depends           : 
conflicts         : 
sources           : http://svn.XXXXXXXX.fr/svn/104-wapt-packages
installed_size    : 
signer            : wapt-etab.XXXXXXX.fr
signer_fingerprint: XXXXXXXXXXXXXXXXXXX
min_wapt_version  : 
maturity          : 
locale            : 

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = ['joineole']

# command(s) to launch to remove the application(s)
uninstallstring = []

def install():
    print('installing joineole')
    if os.path.isfile('c:/joineole.exe'):
        os.unlink('c:/joineole.exe')
    filecopyto('joineole.exe','c:/')
    print "Registering uninstall"
    register_uninstall('joineole','c:\\wapt\\wapt-get.exe uninstall dsi-joineole',False,quiet_uninstall_string='',
        install_location = None,display_name='joineole',
        display_version = None,publisher = 'Education Nationale')

def uninstall():
    print "Remove joineole"
    remove_file('c:/joineole.exe')
    remove_file('c:/joinlog.log')
    unregister_uninstall('joineole',False)
    print "Uninstall successsful"
Locked