Skip to content

Commit db4a2b5

Browse files
committed
Removing unnecessary steps
1 parent 692e32c commit db4a2b5

File tree

2 files changed

+5
-40
lines changed

2 files changed

+5
-40
lines changed

.github/workflows/deploy-wheels.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,6 @@ on:
1414
workflow_dispatch:
1515

1616
jobs:
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 }}

setup.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff 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+
7572
def isdistprocess():
7673
sdistdir = os.path.join(os.curdir, "dist")
7774
return os.path.exists(sdistdir)
@@ -102,15 +99,13 @@ def buildprocess():
10299

103100
sfilename = None
104101
print("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()
111105
else:
112-
raise ValueError("Undetermined process type")
113-
106+
print("Found a build process")
107+
sfilename = buildprocess()
108+
114109
print("Working with file: ", sfilename)
115110

116111
"""def list_files(startpath):

0 commit comments

Comments
 (0)