File tree Expand file tree Collapse file tree 2 files changed +5
-40
lines changed
Expand file tree Collapse file tree 2 files changed +5
-40
lines changed Original file line number Diff line number Diff line change 1414 workflow_dispatch :
1515
1616jobs :
17- sdist_win :
18- name : Build ${{ matrix.arch }} SOURCE on ${{ matrix.os }} for Python ${{ matrix.python-version }}
19- runs-on : ${{ matrix.os }}
20- strategy :
21- matrix :
22- python-version : [3.6, 3.7, 3.8, 3.9]
23- include :
24- - os : windows-2019
25- arch : " AMD64"
26- use_qemu : false
27- - os : windows-2019
28- arch : " x86"
29- use_qemu : false
30- steps :
31- - name : Check out repository
32- uses : actions/checkout@v2
33-
34- - name : Set up Python ${{ matrix.python-version }}
35- uses : actions/setup-python@v2
36- with :
37- python-version : ${{ matrix.python-version }}
38-
39- - name : Build sdist
40- run : python setup.py sdist
41-
42- - name : Save sdist
43- uses : actions/upload-artifact@v2
44- with :
45- path : dist/*.tar.gz
46-
4717 wheels :
4818 name : Build ${{ matrix.arch }} WHEELS on ${{ matrix.os }}
4919 runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change @@ -68,10 +68,7 @@ def clearpkgtrashfiles():
6868 fpath = os .path .join (sdir , file )
6969 print ("Removing trash file:" , fpath )
7070 os .remove (fpath )
71-
72- def isbuildprocess ():
73- return "bdist_wheel" in sys .argv or "sdist" in sys .argv
74-
71+
7572def isdistprocess ():
7673 sdistdir = os .path .join (os .curdir , "dist" )
7774 return os .path .exists (sdistdir )
@@ -102,15 +99,13 @@ def buildprocess():
10299
103100sfilename = None
104101print ("Check for process type" )
105- if isbuildprocess ():
106- print ("Found a build process" )
107- sfilename = buildprocess ()
108- elif isdistprocess ():
102+ if isdistprocess ():
109103 print ("Found a distribution process" )
110104 sfilename = distprocess ()
111105else :
112- raise ValueError ("Undetermined process type" )
113-
106+ print ("Found a build process" )
107+ sfilename = buildprocess ()
108+
114109print ("Working with file: " , sfilename )
115110
116111"""def list_files(startpath):
You can’t perform that action at this time.
0 commit comments