Page 1 of 1

Request for an SVN/Git tutorial with PyScripter

Published: March 7, 2017 - 10:37
by cdeze
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.

Re: Request for an SVN/Git tutorial with PyScripter

Published: March 7, 2017 - 11:07 AM
by Floflobel
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,

Re: Request for an SVN/Git tutorial with PyScripter

Published: March 20, 2017 - 12:02
by cdeze
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

Re: Request for an SVN/Git tutorial with PyScripter

Published: March 20, 2017 - 1:57 PM
by Floflobel
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.

Re: Request for an SVN/Git tutorial with PyScripter

Published: March 20, 2017 - 3:35 PM
by cdeze
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"