Skip to content

Commit d52754d

Browse files
committed
create requirements file for build deps
1 parent 2196e9f commit d52754d

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.github/workflows/release-pkg.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
pip install setuptools wheel twine
27+
pip install -r requirements/build-pkg.txt
2828
- name: Build and publish
2929
env:
3030
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

.github/workflows/test.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
8484
- name: Build Docker Image
8585
run: docker build . --file docs/Dockerfile
86-
test-build:
86+
test-build-package:
8787
runs-on: ubuntu-latest
8888
steps:
8989
- uses: actions/checkout@v2
@@ -98,5 +98,9 @@ jobs:
9898
run: |
9999
npm install -g npm@latest
100100
npm --version
101+
- name: Install Python Dependencies
102+
run: |
103+
pip install --upgrade pip
104+
pip install -r requirements/build-pkg.txt
101105
- name: Test Build Creation
102106
run: python setup.py bdist_wheel sdist

requirements.txt

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
pre-commit
2-
twine
3-
wheel
4-
setuptools_scm
51
-r requirements/build-docs.txt
2+
-r requirements/build-pkg.txt
63
-r requirements/check-style.txt
74
-r requirements/check-types.txt
85
-r requirements/pkg-deps.txt

requirements/build-pkg.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pre-commit
2+
twine
3+
wheel
4+
setuptools_scm

0 commit comments

Comments
 (0)