Skip to content

Commit 9bfc0fe

Browse files
committed
fixed build pipeline and env creation
1 parent 16bf09c commit 9bfc0fe

File tree

6 files changed

+448
-389
lines changed

6 files changed

+448
-389
lines changed

.github/workflows/upload.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
run: |
2222
python -m pip install --upgrade pip
2323
pip install pipenv
24-
make sync
24+
pipenv install --dev
2525
2626
- name: Build package
2727
run: |
28-
make build
28+
pipenv run python -m build --no-isolation
2929
3030
- name: Publish package
3131
if: startsWith(github.ref, 'refs/tags')

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.PHONY: help build test
33

44
build: ## Build an application
5-
@pipenv run python setup.py sdist bdist_wheel
5+
@pipenv run python -m build --no-isolation
66

77
publish-test: ## Upload package to test PyPI
88
@pipenv run twine upload --repository testpypi dist/*
@@ -12,10 +12,10 @@ publish: build ## Upload package to PyPI
1212
@make clean
1313

1414
install: build ## Install application to Pip environment
15-
@pipenv run python setup.py install
15+
@pipenv run python -m pip install
1616

1717
install-dev: ## Install application to Pip development environment
18-
@pipenv run python setup.py develop
18+
@pipenv run python -m pip install -e
1919
@make clean
2020

2121
clean: ## Remove build files

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ twine = ">=3.3.0"
88
wheel = ">=0.35.1"
99
mypy = ">=0.800"
1010
pytest = ">=6.2.2"
11+
build = "*"
1112

1213
[packages]
1314
prance = ">=0.20.2"

0 commit comments

Comments
 (0)