[Git][debian-gis-team/mapnik][upstream] New upstream version 4.0.0+ds

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Mon Jun 17 05:11:29 BST 2024



Bas Couwenberg pushed to branch upstream at Debian GIS Project / mapnik


Commits:
56175b01 by Bas Couwenberg at 2024-06-17T05:48:21+02:00
New upstream version 4.0.0+ds
- - - - -


2 changed files:

- CHANGELOG.md
- scripts/publish_release.sh


Changes:

=====================================
CHANGELOG.md
=====================================
@@ -7,11 +7,11 @@ Developers: Please commit along with changes.
 For a complete change history, see the git log.
 
 
-## UNRELEASED
+## Mapnik 4.0.0
 
 #### Notice
 
-- Mapnik now requires C++14 compliant compiler (`-std=c++14`)
+- Mapnik now requires C++17 compliant compiler (`-std=c++17`)
 - Mapnik now supports CMake as a build system. See [#4191](https://github.com/mapnik/mapnik/pull/4191) and the [docs](https://github.com/mapnik/mapnik/blob/master/docs/cmake-usage.md) for more info.
 
 #### Breaking Changes


=====================================
scripts/publish_release.sh
=====================================
@@ -97,7 +97,7 @@ step "creating tarball of ${TARBALL_COMPRESSED}"
 cd ../
 tar cjf ${TARBALL_COMPRESSED} ${TARBALL_NAME}/
 step "uploading to github"
-# https://developer.github.com/v3/repos/releases/#create-a-release
+# https://developer.github.com/v3/repos/rseleases/#create-a-release
 IS_PRERELEASE=false
 if [[ ${MAPNIK_VERSION} =~ 'rc' ]] || [[ ${MAPNIK_VERSION} =~ 'alpha' ]]; then
   IS_PRERELEASE=true
@@ -105,27 +105,31 @@ fi
 IS_DRAFT=true
 step "creating a draft release"
 
-export CHANGELOG_REF=$(python -c "print '${MAPNIK_VERSION}'.replace('.','').replace('v','').split('-')[0]")
+export CHANGELOG_REF=$(python3 -c "print('${MAPNIK_VERSION}'.replace('.','').replace('v','').split('-')[0])")
 export RELEASE_NOTES="Mapnik ${MAPNIK_VERSION}\r\n\r\n[Changelog](https://github.com/mapnik/mapnik/blob/${MAPNIK_VERSION}/CHANGELOG.md#${CHANGELOG_REF})"
 step "release notes: $RELEASE_NOTES"
 
 # create draft release
-curl --data "{\"tag_name\": \"${MAPNIK_VERSION}\",\"target_commitish\": \"master\",\"name\": \"${MAPNIK_VERSION}\",\"body\": \"${RELEASE_NOTES}\",\"draft\": ${IS_DRAFT},\"prerelease\": ${IS_PRERELEASE}}" \
-https://api.github.com/repos/mapnik/mapnik/releases?access_token=${GITHUB_TOKEN_MAPNIK_PUBLIC_REPO} \
-> create_response.json
+curl --data "{\"tag_name\": \"${MAPNIK_VERSION}\",\"target_commitish\": \"master\",\"name\": \"Mapnik ${MAPNIK_VERSION}\",\"body\": \"${RELEASE_NOTES}\",\"draft\": ${IS_DRAFT},\"prerelease\": ${IS_PRERELEASE}}" \
+     https://api.github.com/repos/mapnik/mapnik/releases \
+     -H "Authorization: bearer ${GITHUB_TOKEN_MAPNIK_PUBLIC_REPO}" \
+     > create_response.json
 cat create_response.json
 # parse out upload url and form it up to post tarball
-UPLOAD_URL=$(python -c "import json;print json.load(open('create_response.json'))['upload_url'].replace('{?name,label}','?name=${TARBALL_COMPRESSED}')")
-HTML_URL=$(python -c "import json;print json.load(open('create_response.json'))['html_url']")
+UPLOAD_URL=$(python3 -c "import json;print(json.load(open('create_response.json'))['upload_url'].replace('{?name,label}','?name=${TARBALL_COMPRESSED}'))")
+HTML_URL=$(python3 -c "import json;print(json.load(open('create_response.json'))['html_url'])")
 
 step "upload url: $UPLOAD_URL"
 
 # upload source tarball
-curl ${UPLOAD_URL} \
--X POST \
--H "Authorization: token ${GITHUB_TOKEN_MAPNIK_PUBLIC_REPO}" \
--H "Content-Type:application/octet-stream" \
---data-binary @${TARBALL_COMPRESSED}
+curl -L \
+     -X POST \
+     -H "Accept: application/vnd.github+json" \
+     -H "Authorization: bearer ${GITHUB_TOKEN_MAPNIK_PUBLIC_REPO}" \
+     -H "X-GitHub-Api-Version: 2022-11-28" \
+     -H "Content-Type:application/octet-stream" \
+     ${UPLOAD_URL} \
+     --data-binary "@${TARBALL_COMPRESSED}"
 
 echo
 step "Success: view your new draft release at ${HTML_URL}"



View it on GitLab: https://salsa.debian.org/debian-gis-team/mapnik/-/commit/56175b01fb11592633786bbadf1f8f6c335ec56a

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/debian-gis-team/mapnik/-/commit/56175b01fb11592633786bbadf1f8f6c335ec56a
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240617/7c95f7ef/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list