Compare commits

...

32 Commits

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

View File

@ -1,22 +0,0 @@
pipeline:
build:
image: debian
pull: true
commands:
- apt update && apt install -y make wget
- make
- ls -la
- make install
- ls -la
when:
event: [push, tag]
package:
image: debian
pull: true
commands:
- apt update && apt install -y build-essential
- debuild -us -uc
- ls -la
when:
event: tag/.vagrant

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
*.exe *.exe
/data/ /build/
# ignore the debian stuff # ignore the debian stuff
debhelper-build-stamp debhelper-build-stamp

33
.woodpecker.yml Normal file
View File

@ -0,0 +1,33 @@
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
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
destination_path: /var/www/repository/debian/incoming
when:
event: [tag]
branches: master

View File

@ -1,6 +1,6 @@
MIT License 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -1,42 +1,51 @@
PKGNAME := mdg-test PKG_NAME := mdg-test
UPSTREAM_VERSION := 3.9.2 PKG_VERSION := 3.9.2
PKG_SUB_RELEASE := 1.0 PKG_OPSI_RELEASE := 1.0
PKG_FULL_VERSION := $(UPSTREAM_VERSION)-$(PKG_SUB_RELEASE) PKG_DEB_RELEASE := 1
SOURCE := https://www.python.org/ftp/python/$(UPSTREAM_VERSION)/python-$(UPSTREAM_VERSION)-amd64.exe # 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 CHECKSUM := efb20aa1b648a2baddd949c142d6eb06
## Download Link and Checksums can be found on https://www.python.org/downloads/windows/
default: download default: fetch-sources patch-fields
all: | clean install BUILDDIR := build
$(BUILDDIR):
mkdir -p $(BUILDDIR)/data
download: setversion fetch-sources: $(BUILDDIR)
[ -d "data" ] || mkdir data curl -o $(BUILDDIR)/data/$(SOURCE_FILENAME) $(SOURCE)
wget -nc -P data $(SOURCE) echo "$(CHECKSUM) $(BUILDDIR)/data/$(SOURCE_FILENAME)" | md5sum -c
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; }
data: download patch-fields: $(BUILDDIR)
sed -e "s|@PKG_VERSION@|$(PKG_VERSION)|" \
install: data -e "s|@PKG_OPSI_RELEASE@|$(PKG_OPSI_RELEASE)|" \
install -Dm644 control -t $(DESTDIR)/srv/deploy/install/$(PKGNAME) control.in > $(BUILDDIR)/control
install -Dm644 *.ins -t $(DESTDIR)/srv/deploy/install/$(PKGNAME)
install -Dm644 logo.png -t $(DESTDIR)/srv/deploy/install/$(PKGNAME)
install -Dm644 data/* -t $(DESTDIR)/srv/deploy/install/$(PKGNAME)/data
uninstall:
rm -rf $(DESTDIR)/srv/deploy/install/$(PKGNAME)
clean: clean:
rm -rf data rm -rf $(BUILDDIR)
setversion: install: $(BUILDDIR)
@echo "INFO: Writing version $(PKG_FULL_VERSION) to control file" install -Dm644 $(BUILDDIR)/control -t $(DESTDIR)/srv/deploy/install/$(PKG_NAME)
sed -e "s/^version: [0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$$/version: $(UPSTREAM_VERSION)/" \ install -Dm644 $(BUILDDIR)/data/* -t $(DESTDIR)/srv/deploy/install/$(PKG_NAME)/data
-e "s/^packageVersion: [0-9]\{1,3\}\.[0-9]\{1,3\}$$/packageVersion: $(PKG_SUB_RELEASE)/" \ install -Dm644 *.ins -t $(DESTDIR)/srv/deploy/install/$(PKG_NAME)
-i control install -Dm644 logo.png -t $(DESTDIR)/srv/deploy/install/$(PKG_NAME)
uninstall:
rm -rf $(DESTDIR)/srv/deploy/install/$(PKG_NAME)
.PHONY: default all download install uninstall 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

View File

@ -1,3 +1,4 @@
![status-badge](https://drone.mdg-hamburg.de/api/badges/kevin.dorner/CI-Test/status.svg)
# mdg-python # mdg-python
A better Python for Windows OPSI package aimed to work with IServ A better Python for Windows OPSI package aimed to work with IServ

View File

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

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
mdg-test (1.1.1-2.2-1) unstable; urgency=medium mdg-test (3.9.2-1.0-1) unstable; urgency=medium
* Initial release. (Closes: #XXXXXX) * Initial release. (Closes: #XXXXXX)

2
debian/control vendored
View File

@ -8,7 +8,7 @@ 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 Vcs-Browser: https://gitea.mdg-hamburg.de/MDG-Packages/winst-mdg-python
Package: winst-mdg-python Package: mdg-test
Architecture: all Architecture: all
Depends: winst-microsoft-windows-10-64 Depends: winst-microsoft-windows-10-64
Provides: winst-python Provides: winst-python

2
debian/files vendored
View File

@ -1,2 +0,0 @@
mdg-test_1.1.1-2.2-1_amd64.buildinfo misc optional
winst-mdg-python_1.1.1-2.2-1_all.deb misc optional

1
debian/source/format vendored Normal file
View File

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

View File

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