Skip to content

Commit 8c7891c

Browse files
committed
modernize
1 parent 783535a commit 8c7891c

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/release.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,18 @@ jobs:
1212
- uses: actions/checkout@v2
1313

1414
- name: Set up Python
15-
uses: actions/setup-python@v1
15+
uses: actions/setup-python@v2
1616
with:
17-
python-version: 3.6
17+
python-version: 3.x
1818

1919
- name: Get tags
2020
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2121
shell: bash
2222

2323
- name: build
2424
run: |
25-
python -m pip install wheel twine
26-
python -m pip install -r requirements.txt
27-
python setup.py sdist
28-
pip wheel . -w dist --no-deps
25+
python -m pip install --upgrade pip wheel setuptools setuptools_scm build twine
26+
python -m build --sdist --wheel . --outdir dist
2927
3028
- name: Check files
3129
run: |
@@ -34,7 +32,8 @@ jobs:
3432

3533
- name: Test wheels
3634
run: |
37-
python -m twine check dist/*
35+
cd dist && python -m pip install folium*.whl
36+
python -m twine check *
3837
shell: bash
3938

4039
- name: Publish a Python distribution to PyPI

0 commit comments

Comments
 (0)