Skip to content

Commit 94774cb

Browse files
authored
Merge pull request #34 from boutproject/ci-release
Improve Release Workflow
2 parents a891053 + c656d53 commit 94774cb

3 files changed

Lines changed: 26 additions & 6 deletions

File tree

.github/workflows/python_publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
20-
pip install setuptools wheel twine
20+
pip install setuptools wheel twine build
2121
- name: Build and publish
2222
env:
2323
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2424
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2525
run: |
26-
python setup.py sdist bdist_wheel
26+
python -m build
2727
twine upload dist/*
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test Build Python Package
2+
3+
on:
4+
push
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
- name: Set up Python
12+
uses: actions/setup-python@v6
13+
with:
14+
python-version: '3.x'
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install setuptools wheel twine build
19+
- name: Build and publish
20+
env:
21+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
22+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
23+
run: |
24+
python -m build

setup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626
classifiers=[
2727
"Intended Audience :: Education",
2828
"Intended Audience :: Science/Research",
29-
"License :: OSI Approved :: MIT License",
3029
"Programming Language :: Python :: 3 :: Only",
31-
"Programming Language :: Python :: 3.5",
32-
"Programming Language :: Python :: 3.6",
33-
"Programming Language :: Python :: 3.7",
3430
"Topic :: Scientific/Engineering :: Visualization",
3531
],
3632
zip_safe=False,

0 commit comments

Comments
 (0)