Compare commits

..

47 Commits

Author SHA1 Message Date
Kevin Dorner 050f4042c3 ci: add buildinfo and adjust incoming path
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
2022-09-24 15:52:04 +02:00
Kevin Dorner 13c25eb2ea ci: fix plugin tag
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
2022-09-22 12:24:38 +02:00
Kevin Dorner c48181bf1e ci: add publish step with sftp upload
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline failed Details
2022-09-22 12:04:26 +02:00
Kevin Dorner 8bb619c676 ci: fix dpkg content listing again
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-09-13 05:13:19 +02:00
Kevin Dorner 82af05c4b0 ci: fix dpkg -l debug command
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-09-13 05:10:36 +02:00
Kevin Dorner 3e9d6db60a Refactor and simplify Makefile
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-09-13 05:06:26 +02:00
Kevin Dorner 07d3f19d07 Add dpkg -L to CI pipeline 2022-09-13 05:04:08 +02:00
Kevin Dorner c912adb647 Changed makefile directive name to patch-fields
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-08-28 02:26:19 +02:00
Kevin Dorner eed3f85bc2 Add no-check-builddeps to dpkg-buildpackage and use long cli flags
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-08-26 05:26:15 +02:00
Kevin Dorner 3ae4c3548e Switch to own build image
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-08-26 04:04:58 +02:00
UnlimitedCookies fc7f7c3c49 Revert to previous non-failing state
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-05-16 04:03:53 +02:00
UnlimitedCookies f0e4ed1829 welp, please fail now
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-03-06 14:19:18 +01:00
UnlimitedCookies 6bef8344cb try again
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-03-05 22:50:50 +01:00
Kevin Dorner 60561cf341 ehehm 2022-03-05 22:47:38 +01:00
Kevin Dorner f06fe26a01 Fail CI on purpose 2022-03-05 22:45:02 +01:00
UnlimitedCookies 8d1a3a4eb7 return to sh-compatible piping
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-03-04 13:13:28 +01:00
UnlimitedCookies d249c5798f lecker
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-03-04 13:00:11 +01:00
UnlimitedCookies 21915e403d pushing p
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-03-03 21:50:31 +01:00
UnlimitedCookies c0d13f7109 olol 2022-03-03 21:41:47 +01:00
UnlimitedCookies 605dcc7317 Whoops
ci/woodpecker/push/drone Pipeline failed Details
2022-03-03 21:21:17 +01:00
UnlimitedCookies 8b0ce9826f Very much edit
ci/woodpecker/push/drone Pipeline failed Details
ci/woodpecker/tag/drone Pipeline failed Details
2022-03-03 20:40:16 +01:00
UnlimitedCookies 90043d5bc7 Added git source format and streamlined drone.yml
ci/woodpecker/push/drone Pipeline was successful Details
2022-03-03 16:25:49 +01:00
UnlimitedCookies 0b3ef51543 Probably horribly broken, but lets test anyway
ci/woodpecker/push/drone Pipeline was successful Details
2022-03-03 16:03:23 +01:00
Kevin Dorner a49d3283e9 Test da branch selector
ci/woodpecker/tag/drone Pipeline was successful Details
2022-02-13 21:19:41 +01:00
Kevin Dorner cef3feefb9 Update 'README.md' 2022-01-31 13:55:51 +01:00
root c6c276c67d trololol
continuous-integration/drone the build was successful Details
2021-09-29 02:56:38 +02:00
root 762a37e435 lol§
continuous-integration/drone the build was successful Details
2021-09-24 01:27:06 +02:00
root 60dab77699 Juhuu
continuous-integration/drone the build failed Details
2021-09-24 00:47:20 +02:00
Kevin Dorner 42ed17d3c0 Now pls do something
continuous-integration/drone the build failed Details
2021-09-23 02:29:25 +02:00
root 2496398ac9 yay!
continuous-integration/drone the build failed Details
2021-09-23 02:23:57 +02:00
root e833e3adfa :wRevert "nsdrlkgn kl"
continuous-integration/drone the build was successful Details
This reverts commit 3f1a71062a.
2021-09-20 19:31:28 +02:00
root b8a918b250 testing build-essential
continuous-integration/drone the build failed Details
2021-09-20 17:20:54 +02:00
root 3f1a71062a nsdrlkgn kl
continuous-integration/drone the build failed Details
2021-09-20 01:52:57 +02:00
root 5cc623361c hmmm
continuous-integration/drone the build failed Details
2021-09-20 01:47:34 +02:00
root 8657f810d2 lol
continuous-integration/drone the build was successful Details
2021-09-20 01:40:53 +02:00
root fc9cd6f098 try this
continuous-integration/drone the build was successful Details
2021-09-20 01:38:27 +02:00
root 9e669ddadd lets try again
continuous-integration/drone the build was successful Details
2021-09-20 01:34:47 +02:00
root fd03c3a259 fix missing make
continuous-integration/drone the build failed Details
2021-09-20 01:28:22 +02:00
root 3dca945c75 add the ci stuff again
continuous-integration/drone the build failed Details
2021-09-20 01:26:38 +02:00
root a56427705c lol 2021-09-20 01:21:05 +02:00
Kevin Dorner 951de61e16 Reverting the not working thingy
continuous-integration/drone the build was successful Details
2021-08-30 23:38:29 +02:00
Kevin Dorner fddcf35c09 Recreating dumb behavior
continuous-integration/drone the build is pending Details
2021-08-30 23:24:29 +02:00
Kevin Dorner 2f299a873e Update '.drone.yml'
continuous-integration/drone the build was successful Details
2021-08-24 00:22:17 +02:00
Kevin Dorner aec5defecc Update '.drone.yml'
continuous-integration/drone the build is pending Details
2021-08-23 20:45:56 +02:00
Kevin Dorner 2ecd301dce Update '.drone.yml'
continuous-integration/drone the build was successful Details
2021-08-23 18:13:52 +02:00
Kevin Dorner b28edbdfc3 Update '.drone.yml'
continuous-integration/drone the build is pending Details
2021-08-23 17:53:00 +02:00
Kevin Dorner 82da0c99f8 Update '.drone.yml'
continuous-integration/drone the build is pending Details
2021-08-23 17:46:46 +02:00
16 changed files with 207 additions and 45 deletions

View File

@ -1,14 +0,0 @@
pipeline:
build:
image: debian
commands:
- echo "HALLO WELT, KANNST DU MICH HOEREN"
when:
event: [push, tag]
package:
image: debian
commands:
- echo "zap"
when:
event: tag

18
.gitignore vendored Normal file
View File

@ -0,0 +1,18 @@
*.exe
/build/
# ignore the debian stuff
debhelper-build-stamp
.DS_Store
.debhelper
*.deb
*.dsc
*.build
*.buildinfo
*.changes
*.tar.gz
*.log
*.substvars
/*/debian/mdg-test
/*/debian/files
/*/mdg-test

34
.woodpecker.yml Normal file
View File

@ -0,0 +1,34 @@
pipeline:
build_deb:
image: gitea.mdg-hamburg.de/ci-tools/deb-buildpackage:latest
pull: true
commands:
- make package
- ls ..
- dpkg -c ../*.deb
when:
event: [push, tag]
publish:
image: docker.io/plugins/sftp:linux-amd64
pull: true
settings:
host:
from_secret: deb_repo_ssh_host
port:
from_secret: deb_repo_ssh_port
username:
from_secret: deb_repo_ssh_username
password:
from_secret: deb_repo_ssh_password
files:
- ../*.deb
- ../*.dsc
- ../*.git
- ../*.changes
- ../*.buildinfo
destination_path: /var/www/repository/debian/incoming/input
when:
event: [tag]
branches: master

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2021 Kevin Dorner
Copyright (c) 2022 Kevin Dorner
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,31 +1,51 @@
#Config
UPSTREAM_VERSION = 3.9.2
PKG_SUB_RELEASE = 1.0
PKG_FULL_VERSION = ${UPSTREAM_VERSION}-${PKG_SUB_RELEASE}
PKG_NAME := mdg-test
PKG_VERSION := 3.9.2
PKG_OPSI_RELEASE := 1.0
PKG_DEB_RELEASE := 1
SOURCE = https://www.python.org/ftp/python/${UPSTREAM_VERSION}/python-${UPSTREAM_VERSION}-amd64.exe
CHECKSUM = efb20aa1b648a2baddd949c142d6eb06
## Download Link and Checksums can be found on https://www.python.org/downloads/windows/
# sources and checksums can be found on https://www.python.org/downloads/windows/
SOURCE_FILENAME := python-$(PKG_VERSION)-amd64.exe
SOURCE := https://www.python.org/ftp/python/$(PKG_VERSION)/$(SOURCE_FILENAME)
CHECKSUM := efb20aa1b648a2baddd949c142d6eb06
all: clean install
default: fetch-sources patch-fields
install: setversion
@[ -d "./data/" ] || mkdir ./data/
@echo "INFO: Downloading the Git for Windows executable..."
@wget -O ./data/python-${UPSTREAM_VERSION}-amd64.exe ${SOURCE}
@echo "${CHECKSUM} ./data/python-${UPSTREAM_VERSION}-amd64.exe" | md5sum -c && echo "SUCCESS: Checksums match" || { ec=$$?; echo "ERROR: Checksum mismatch" >&2; rm -rf ./data/ >&2; exit $$ec; }
@echo "SUCCESS: Installed Successfully"
BUILDDIR := build
$(BUILDDIR):
mkdir -p $(BUILDDIR)/data
fetch-sources: $(BUILDDIR)
curl -o $(BUILDDIR)/data/$(SOURCE_FILENAME) $(SOURCE)
echo "$(CHECKSUM) $(BUILDDIR)/data/$(SOURCE_FILENAME)" | md5sum -c
patch-fields: $(BUILDDIR)
sed -e "s|@PKG_VERSION@|$(PKG_VERSION)|" \
-e "s|@PKG_OPSI_RELEASE@|$(PKG_OPSI_RELEASE)|" \
control.in > $(BUILDDIR)/control
clean:
@echo "INFO: Cleaning ./data/"
@rm -rf ./data/
@[ ! -d "./data/" ] && echo "SUCCESS: Cleaned"
rm -rf $(BUILDDIR)
install: $(BUILDDIR)
install -Dm644 $(BUILDDIR)/control -t $(DESTDIR)/srv/deploy/install/$(PKG_NAME)
install -Dm644 $(BUILDDIR)/data/* -t $(DESTDIR)/srv/deploy/install/$(PKG_NAME)/data
install -Dm644 *.ins -t $(DESTDIR)/srv/deploy/install/$(PKG_NAME)
install -Dm644 logo.png -t $(DESTDIR)/srv/deploy/install/$(PKG_NAME)
uninstall:
rm -rf $(DESTDIR)/srv/deploy/install/$(PKG_NAME)
setversion:
@echo "INFO: Writing version ${PKG_FULL_VERSION} to control file"
@sed -i "s/^version: [0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$$/version: ${UPSTREAM_VERSION}/" ./control
@sed -i "s/^packageVersion: [0-9]\{1,3\}\.[0-9]\{1,3\}$$/packageVersion: ${PKG_SUB_RELEASE}/" ./control
package:
@echo "MEEP!"
.PHONY: all install clean setversion package
dpkg-buildpackage --unsigned-source --unsigned-changes --no-check-builddeps
# DEB_CHANGELOG_VERSION := $(shell dpkg-parsechangelog -S Version | sed -rne 's|((-*[^-]+)+)(-[^-]+)|\1|p')
package-check-changelog:
@if [ "$(DEB_CHANGELOG_VERSION)" != "$(PKG_FULL_VERSION)" ]; then \
echo "Mismatch between debian changelog file and Makefile version"; \
echo "Debian changelog version: $(DEB_CHANGELOG_VERSION)"; \
echo "Makefile version: $(PKG_FULL_VERSION)"; \
exit 1; \
fi
.PHONY: default fetch-sources patch-fields clean install uninstall package package-check-changelog

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,3 +1,4 @@
![status-badge](https://drone.mdg-hamburg.de/api/badges/kevin.dorner/CI-Test/status.svg)
# mdg-python
A better Python for Windows OPSI package aimed to work with IServ
@ -23,7 +24,3 @@ git clone --depth 1 https://gitea.mdg-hamburg.de/MDG-Packages/winst-mdg-python.g
```sh
cd /srv/deploy/install/mdg-python/ && make
```
3. Run chkdeploy to make IServ aware of the new package
```sh
chkdeploy
```

View File

@ -4,8 +4,8 @@ id: mdg-python
name: MDG Python
description: Python für Microsoft Windows mit pip-Unterstützung
advice: Vereinfachtes Paket mit neuer Python-Version und funktionsfähiger pip-Unterstützung
version: 3.9.2
packageVersion: 1.0
version: @PKG_VERSION@
packageVersion: @PKG_OPSI_RELEASE@
setupScript: install.ins
uninstallScript: remove.ins

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
mdg-test (3.9.2-1.0-1) unstable; urgency=medium
* Initial release. (Closes: #XXXXXX)
-- root <root@mdg-hamburg.test-iserv.de> Mon, 20 Sep 2021 00:37:16 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
13

19
debian/control vendored Normal file
View File

@ -0,0 +1,19 @@
Source: mdg-test
Maintainer: Marion Dönhoff Gymnasium <repository@mdg-hamburg.de>
Section: misc
Priority: optional
Standards-Version: 4.6.0
Build-Depends: debhelper (>= 13)
Vcs-Git: https://gitea.mdg-hamburg.de/MDG-Packages/winst-mdg-python.git
Vcs-Browser: https://gitea.mdg-hamburg.de/MDG-Packages/winst-mdg-python
Package: mdg-test
Architecture: all
Depends: winst-microsoft-windows-10-64
Provides: winst-python
Description: OPSI package Python for Windows 10 64bit
Features:
* Latest Python version
* Slim and simple package
* Automated Python package installation through pip

76
debian/copyright vendored Normal file
View File

@ -0,0 +1,76 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: winst-mdg-python
Files: *
Copyright: 2021 Kevin Dorner
License: MIT
Files: data/*
Copyright: 2001-2021 Python Software Foundation
License: Python
Files: debian/*
Copyright: 2021 Kevin Dorner
License: MIT
License: MIT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
License: Python
1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and
the Individual or Organization ("Licensee") accessing and otherwise using Python
3.9.2 software in source or binary form and its associated documentation.
.
2. Subject to the terms and conditions of this License Agreement, PSF hereby
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
analyze, test, perform and/or display publicly, prepare derivative works,
distribute, and otherwise use Python 3.9.2 alone or in any derivative
version, provided, however, that PSF's License Agreement and PSF's notice of
copyright, i.e., "Copyright © 2001-2021 Python Software Foundation; All Rights
Reserved" are retained in Python 3.9.2 alone or in any derivative version
prepared by Licensee.
.
3. In the event Licensee prepares a derivative work that is based on or
incorporates Python 3.9.2 or any part thereof, and wants to make the
derivative work available to others as provided herein, then Licensee hereby
agrees to include in any such work a brief summary of the changes made to Python
3.9.2.
.
4. PSF is making Python 3.9.2 available to Licensee on an "AS IS" basis.
PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF
EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR
WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
USE OF PYTHON 3.9.2 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
.
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 3.9.2
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 3.9.2, OR ANY DERIVATIVE
THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
.
6. This License Agreement will automatically terminate upon a material breach of
its terms and conditions.
.
7. Nothing in this License Agreement shall be deemed to create any relationship
of agency, partnership, or joint venture between PSF and Licensee. This License
Agreement does not grant permission to use PSF trademarks or trade name in a
trademark sense to endorse or promote products or services of Licensee, or any
third party.
.
8. By copying, installing or otherwise using Python 3.9.2, Licensee agrees
to be bound by the terms and conditions of this License Agreement.

4
debian/rules vendored Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/make -f
%:
dh $@

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (git)

View File

@ -53,6 +53,7 @@ endif
[Files_Cleanup]
; This ensures all data has been removed
; Leave previous versions for future removal
delete -sf "%ProgramFiles64Dir%\python39\"
[WinBatch_Setup]

0
lol
View File