-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile.pypi
More file actions
35 lines (27 loc) · 1.1 KB
/
Makefile.pypi
File metadata and controls
35 lines (27 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# ==========================================================
# ==========================================================
# https://docs.secure.software/cli
SHELL := /bin/bash -l
export SHELL
# tested on 3.10-3.14
MIN_PYTHON_VERSION := $(shell basename $$( ls /usr/bin/python3.[0-9][0-9] | awk '{print $0; exit}' ) )
export MIN_PYTHON_VERSION
run: pypiTest
# ====================================================
# uploading to pypi an pypiTestUpload
# build a test-mypi and download the image in a venv ane run a test
pypiTest: pypiTestUpload testTestPypi
# this is only the upload now for pypi builders
pypiTestUpload: # untested ./bin/upload_to_pypiTest.sh
VERSION=$(shell cat ./work/version );
ls -l ./dist/*$(VERSION)*
twine upload -r testpypi dist/*$(VERSION)*
testTestPypi:
./bin/testTestPyPiUpload.sh 2>tmp/$@-2 | tee tmp/$@-1
# this is for pypi owners after all tests have finished
# needs to be called manually, can be transferred to github action
release: pypi
pypi: # ./bin/upload_to_pypi.sh
VERSION=$(shell cat ./work/version )
ls -l ./dist/*$(VERSION)*
twine upload --verbose dist/*$(VERSION)*