Compare commits

..

No commits in common. "master" and "test1324" have entirely different histories.

7 changed files with 64 additions and 47 deletions

12
.drone.yml Normal file
View File

@ -0,0 +1,12 @@
pipeline:
build_deb:
image: debian
pull: true
commands:
- apt update && apt install -y build-essential devscripts
- make package
- ls -laR ..
when:
event: [push, tag]
branches: master

2
.gitignore vendored
View File

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

View File

@ -1,34 +0,0 @@
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) 2022 Kevin Dorner
Copyright (c) 2021 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

@ -3,22 +3,25 @@ PKG_VERSION := 3.9.2
PKG_OPSI_RELEASE := 1.0
PKG_DEB_RELEASE := 1
# sources 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
default: fetch-sources patch-fields
#Variables below are set automatically
#DEB_CHANGELOG_VERSION := $(shell dpkg-parsechangelog -S Version | sed -rne 's|((-*[^-]+)+)(-[^-]+)|\1|p')
BUILDDIR := build
$(BUILDDIR):
mkdir -p $(BUILDDIR)/data
$(BUILDDIR): fetch-sources patch-version
fetch-sources: $(BUILDDIR)
fetch-sources:
[ -d "$(BUILDDIR)/data" ] || mkdir -p $(BUILDDIR)/data
curl -o $(BUILDDIR)/data/$(SOURCE_FILENAME) $(SOURCE)
echo "$(CHECKSUM) $(BUILDDIR)/data/$(SOURCE_FILENAME)" | md5sum -c
patch-fields: $(BUILDDIR)
patch-version:
sed -e "s|@PKG_VERSION@|$(PKG_VERSION)|" \
-e "s|@PKG_OPSI_RELEASE@|$(PKG_OPSI_RELEASE)|" \
control.in > $(BUILDDIR)/control
@ -26,6 +29,7 @@ patch-fields: $(BUILDDIR)
clean:
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
@ -36,10 +40,9 @@ uninstall:
rm -rf $(DESTDIR)/srv/deploy/install/$(PKG_NAME)
package:
dpkg-buildpackage --unsigned-source --unsigned-changes --no-check-builddeps
dpkg-buildpackage
# DEB_CHANGELOG_VERSION := $(shell dpkg-parsechangelog -S Version | sed -rne 's|((-*[^-]+)+)(-[^-]+)|\1|p')
package-check-changelog:
package-check:
@if [ "$(DEB_CHANGELOG_VERSION)" != "$(PKG_FULL_VERSION)" ]; then \
echo "Mismatch between debian changelog file and Makefile version"; \
echo "Debian changelog version: $(DEB_CHANGELOG_VERSION)"; \
@ -48,4 +51,4 @@ package-check-changelog:
fi
.PHONY: default fetch-sources patch-fields clean install uninstall package package-check-changelog
.PHONY: build fetch-sources patch-version clean install uninstall package package-check

37
build/control Normal file
View File

@ -0,0 +1,37 @@
[Product]
type: localboot
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
setupScript: install.ins
uninstallScript: remove.ins
[ProductProperty]
name: shortcut
type: bool
description: Startmenü Verknüpfungen erstellen
default: True
[ProductProperty]
name: associatefiles
type: bool
description: Assoziere Python-Dateiendungen
helptext: Zu den Python-Dateiendungen gehören u. a. ".py", ".pyw", ".pyc". Doppelklick auf Python-Dateien im Windows-Explorer nutzt dann den Python-Launcher.
default: True
[ProductProperty]
name: prependpath
type: bool
description: Python zum PATH hinzufügen
helptext: Fügt Python selbst und zugehörige Skripte zum systemweiten PATH hinzu. Dies erlaubt das direkte Verwenden von Python-Werkzeugen in der Kommandozeile.
default: True
[ProductProperty]
name: pippackages
type: unicode
description: Installiere pip Pakete
helptext: Die Pakete werden mit jeder Installation des Programms installiert oder aktualisiert. Zum Hinzufügen von neuen Pakten kann einfach eine Neuinstallation vorgenommen werden. Die Pakete werden mit einem Leerzeichen getrennt und können auf https://pypi.org/ gefunden werden. Diese Pakete werden systemweit installiert. Durch Nutzer installierte Pakete werden im jeweiligen Appdata Verzeichnis installiert.
pattern: numpy scikit-learn rsa

View File

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