Compare commits
	
		
			13 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					8b0ce9826f | ||
| 
						 | 
					90043d5bc7 | ||
| 
						 | 
					0b3ef51543 | ||
| a49d3283e9 | |||
| cef3feefb9 | |||
| 
						 | 
					c6c276c67d | ||
| 
						 | 
					762a37e435 | ||
| 
						 | 
					60dab77699 | ||
| 42ed17d3c0 | |||
| 
						 | 
					2496398ac9 | ||
| 
						 | 
					e833e3adfa | ||
| 
						 | 
					b8a918b250 | ||
| 
						 | 
					3f1a71062a | 
							
								
								
									
										20
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -1,22 +1,12 @@
 | 
				
			|||||||
pipeline:
 | 
					pipeline:
 | 
				
			||||||
  build:
 | 
					  build_deb:
 | 
				
			||||||
    image: debian
 | 
					    image: debian
 | 
				
			||||||
    pull: true
 | 
					    pull: true
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - apt update && apt install -y make wget
 | 
					      - apt update && apt install -y build-essential devscripts
 | 
				
			||||||
      - make
 | 
					      - make package
 | 
				
			||||||
      - ls -la
 | 
					      - ls -laR ..
 | 
				
			||||||
      - make install
 | 
					 | 
				
			||||||
      - ls -la
 | 
					 | 
				
			||||||
    when:
 | 
					    when:
 | 
				
			||||||
      event: [push, tag]
 | 
					      event: [push, tag]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  package:
 | 
					branches: master
 | 
				
			||||||
    image: debian
 | 
					 | 
				
			||||||
    pull: true
 | 
					 | 
				
			||||||
    commands:
 | 
					 | 
				
			||||||
      - apt update && apt install -y build-essential
 | 
					 | 
				
			||||||
      - debuild -us -uc
 | 
					 | 
				
			||||||
      - ls -la
 | 
					 | 
				
			||||||
    when:
 | 
					 | 
				
			||||||
      event: tag
 | 
					 | 
				
			||||||
							
								
								
									
										70
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										70
									
								
								Makefile
									
									
									
									
									
								
							@@ -1,42 +1,54 @@
 | 
				
			|||||||
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
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
all: | clean install
 | 
					#Variables below are set automatically
 | 
				
			||||||
 | 
					#DEB_CHANGELOG_VERSION := $(shell dpkg-parsechangelog -S Version | sed -rne 's|((-*[^-]+)+)(-[^-]+)|\1|p')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
download: setversion
 | 
					 | 
				
			||||||
	[ -d "data" ] || mkdir data
 | 
					 | 
				
			||||||
	wget -nc -P data $(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; }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
data: download
 | 
					BUILDDIR := build
 | 
				
			||||||
 | 
					$(BUILDDIR): fetch-sources patch-version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install: data
 | 
					fetch-sources:
 | 
				
			||||||
	install -Dm644 control -t $(DESTDIR)/srv/deploy/install/$(PKGNAME)
 | 
						[ -d "$(BUILDDIR)/data" ] || mkdir -p $(BUILDDIR)/data
 | 
				
			||||||
	install -Dm644 *.ins -t $(DESTDIR)/srv/deploy/install/$(PKGNAME)
 | 
						curl -o $(BUILDDIR)/data/$(SOURCE_FILENAME) $(SOURCE)
 | 
				
			||||||
	install -Dm644 logo.png -t $(DESTDIR)/srv/deploy/install/$(PKGNAME)
 | 
						echo "$(CHECKSUM) $(BUILDDIR)/data/$(SOURCE_FILENAME)" | md5sum -c
 | 
				
			||||||
	install -Dm644 data/* -t $(DESTDIR)/srv/deploy/install/$(PKGNAME)/data
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
uninstall:
 | 
					patch-version:
 | 
				
			||||||
	rm -rf $(DESTDIR)/srv/deploy/install/$(PKGNAME)
 | 
						sed -e "s|@PKG_VERSION@|$(PKG_VERSION)|" \
 | 
				
			||||||
 | 
						-e "s|@PKG_OPSI_RELEASE@|$(PKG_OPSI_RELEASE)|" \
 | 
				
			||||||
 | 
						control.in > $(BUILDDIR)/control
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clean:
 | 
					clean:
 | 
				
			||||||
	rm -rf data
 | 
						rm -rf $(BUILDDIR)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
setversion:
 | 
					 | 
				
			||||||
	@echo "INFO: Writing version $(PKG_FULL_VERSION) to control file"
 | 
					 | 
				
			||||||
	sed -e "s/^version: [0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$$/version: $(UPSTREAM_VERSION)/" \
 | 
					 | 
				
			||||||
	-e "s/^packageVersion: [0-9]\{1,3\}\.[0-9]\{1,3\}$$/packageVersion: $(PKG_SUB_RELEASE)/" \
 | 
					 | 
				
			||||||
	-i control
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: default all download install uninstall clean setversion
 | 
					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)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package:
 | 
				
			||||||
 | 
						dpkg-buildpackage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					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)"; \
 | 
				
			||||||
 | 
							echo "Makefile version: $(PKG_FULL_VERSION)"; \
 | 
				
			||||||
 | 
							exit 1; \
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.PHONY: build fetch-sources patch-version clean install uninstall package package-check
 | 
				
			||||||
@@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# 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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										37
									
								
								control.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								control.in
									
									
									
									
									
										Normal 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: @PKG_VERSION@
 | 
				
			||||||
 | 
					packageVersion: @PKG_OPSI_RELEASE@
 | 
				
			||||||
 | 
					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
 | 
				
			||||||
							
								
								
									
										2
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							@@ -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
									
									
								
							
							
						
						
									
										2
									
								
								debian/control
									
									
									
									
										vendored
									
									
								
							@@ -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
									
									
								
							
							
						
						
									
										2
									
								
								debian/files
									
									
									
									
										vendored
									
									
								
							@@ -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
									
								
							
							
						
						
									
										1
									
								
								debian/source/format
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					3.0 (git)
 | 
				
			||||||
		Reference in New Issue
	
	Block a user