Skip to content

Commit 4c16530

Browse files
authored
Packaging improvements (#19)
* Pin setuptools for release workflow * Fix VS Code 'Build package' task * Fix sdist by including MANIFEST.in * Update gitignore
1 parent 4996709 commit 4c16530

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.github/workflows/release.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
python-version: ${{ env.DEFAULT_PYTHON }}
2323
- name: Install requirements
2424
run: |
25-
python -m pip install -U pip setuptools twine wheel
25+
python -m pip install -U pip twine wheel
26+
python -m pip install -U "setuptools>=56.0.0"
2627
- name: Build distributions
2728
run: |
2829
python setup.py sdist bdist_wheel

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,5 @@ Thumbs.db
179179

180180
# -----
181181
# Custom / Overwrites
182+
!.vscode/settings.default.json
182183
.vscode/settings.json

.vscode/tasks.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"label": "Build package",
88
"type": "shell",
9-
"command": "rm -rf build dist *.egg-info; source venv/bin/activate; python setup.py sdist bdist_wheel",
9+
"command": "rm -rf build dist *.egg-info; ${command:python.interpreterPath} setup.py sdist bdist_wheel",
1010
"group": {
1111
"kind": "build",
1212
"isDefault": true,

MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include requirements.txt
2+
include requirements_black.txt

0 commit comments

Comments
 (0)