summaryrefslogtreecommitdiff
path: root/scripts/uploadrelease.py
AgeCommit message (Collapse)AuthorFilesLines
2021-08-17Redo Merge branch 'hotfix/5.21' Standardized file headersDamien Regad1-0/+16
Try to do it right this time... # Conflicts: # adodb-memcache.lib.inc.php Fixes #751
2021-08-17Revert changes since Standardized file headers mergeDamien Regad1-16/+0
The conflicts resolution applied when merging the Standardized file headers (commit e9dcce3df24912ad869d0193f0b419f2309101fc) was seriously messed up, actually overwriting a number of changes in the master branch. Rather than trying to go and fix things one by one which has a high risk of messing things further, it's easier to redo the merge from a clean slate, so this commit reverts the following: - "Merge branch 'hotfix/5.21' Standardized file headers", e9dcce3df24912ad869d0193f0b419f2309101fc - "Merge tag 'v5.21.1'", 5f437df3104159d5d659f60e31bef8d33c34995f - "Reset version to 5.22.0-dev" af9234a525c3255af051a330164486d73be4c63a - "Fix incorrect resolution of merge conflicts" a6733f61b0165b366c8d2c70d9af82edc3881951. - "Fix syntax error in toexport.inc.php" 20b01e83cb61b6b2460f64c7d1277c5f4cc28574. Fixes #751
2021-08-14Standard file header: /scriptsDamien Regad1-0/+16
2021-08-13Build scripts: use env in shebangDamien Regad1-1/+1
Allows use of virtual environments.
2020-12-20uploadrelease.py: get extension with path.splitext()Damien Regad1-3/+3
Previous logic using str.split('.') does not work with prereleases as there is an extra '.', causing extension to be returned as '1.zip' instead of just 'zip'.
2020-12-18Release Scripts: python3 conversionDamien Regad1-54/+81
- fix print statements - use str.format() instead of % - subprocess calls with text=True - pycodestyle - update docstrings to better conform with PEP 257 - file -> open
2020-08-02List the files to be uploadedDamien Regad1-0/+2
2020-08-02New command-line option to skip SourceForge uploadDamien Regad1-4/+13
This allows only updating the (previously) uploaded files information via the SourceForge Release API.
2020-08-02Enable dry-run mode for SourceForge APIDamien Regad1-15/+22
2020-08-02Code cleanupDamien Regad1-7/+6
- Fix typos - PEP8 - remove debug statement - removed reference to no-longer-used global variables
2020-08-02Use SourceForge API to set file infoDamien Regad1-0/+72
The script is now capable of updating the default file to download from the SourceForge files section, based on the uploaded file's extension. Introduces a config file for maintenance scripts, in YAML format, named env.yml. It is used to store the SourceForge API key.
2016-12-18upload: handle username as an optionDamien Regad1-10/+11
Allows defaulting to the current os user name
2016-12-18upload: Target dir based on ADOdb major versionDamien Regad1-1/+8
- for 5.x, adodb-php5-only/ - for 6.x and later, adodbX/ (where X is the major version number)
2016-12-18upload: Recognize SemVer suffixesDamien Regad1-6/+11
Allows alpha, beta and rc suffixes, as well as version number
2016-12-17upload: Create target dir if it doesn't existDamien Regad1-0/+12
2016-12-17upload: document global variablesDamien Regad1-0/+3
Describe how to set sf_files for debugging
2016-02-26Release scripts: docs are no longer part of the repoDamien Regad1-33/+4
- don't copy the files to release_path when building the release - remove options to exclude files or docs when uploading the release, since the file can only upload files now
2015-12-27Move command-line processing to dedicated functionDamien Regad1-34/+41
2015-12-27Move upload code to dedicated functionsDamien Regad1-25/+35
2015-12-27New sourceforge_target_dir() functionDamien Regad1-3/+21
Builds the final part of the SourceForge target directory based on the version of the files being uploaded. Base directory is as defined in sf_files global variable, plus - if version >= 5.21: adodb-X.Y - for older versions: adodb-XYZ-for-php5
2015-12-27Catch exception when version number is not validDamien Regad1-1/+9
2015-12-27Improve script outputDamien Regad1-7/+4
2015-12-27Use regex to retrieve version number from file nameDamien Regad1-1/+2
2015-12-27New function to retrieve version from zip file nameDamien Regad1-7/+15
2015-12-27Added dry-run modeDamien Regad1-3/+21
Prints rsync command but does not execute it Moved command-line options variables to global scope
2015-12-27New call_rsync() function to avoid code duplicationDamien Regad1-16/+21
2015-12-27Stricter check for release zip file nameDamien Regad1-1/+1
2015-11-28Upload script: remove useless trailing spacesDamien Regad1-1/+1
2015-11-28Upload script: fix bug with -d / -f optionsDamien Regad1-13/+13
The behavior was reverted, i.e. -d would disable documentation upload (instead of files), and vice-versa. Move check for version number check for files updload within the if block to avoid an error when uploading the documentation when the release tarballs are not present (e.g. from the repository's root).
2015-11-28Upload script: remove unused variablesDamien Regad1-5/+0
2014-04-30uploadrelease.py: add documentation uploadDamien Regad1-16/+51
In addition to uploading release files to frs.sourceforge.net, the script also uploads documentation to web.sourceforge.net. One or the other can be skipped using the -f / -d flags respectively.
2014-04-30New uploadrelease.py scriptDamien Regad1-0/+99
The script copies release files as prepared by buildrelease.py and upload them to Sourceforge