File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,16 @@ jobs:
2121 - name : Set up Miniconda
2222 uses : conda-incubator/setup-miniconda@v2
2323 with :
24- auto-activate-base : true
24+ auto-activate-base : true
2525 python-version : 3.8
2626
27- - name : Create Conda environment
27+ - name : Create and activate environment
2828 shell : bash -l {0}
2929 run : |
3030 conda env create --file environment.yml --name cool-graph-env
3131 conda activate cool-graph-env
32+ # Ensure recent versions of pip and setuptools
33+ python -m pip install --upgrade pip setuptools wheel twine
3234
3335 release :
3436 runs-on : ubuntu-latest
@@ -44,11 +46,12 @@ jobs:
4446 auto-activate-base : true
4547 python-version : 3.8
4648
47- - name : Create Conda environment
49+ - name : Create and activate environment
4850 shell : bash -l {0}
4951 run : |
5052 conda env create --file environment.yml --name cool-graph-env
5153 conda activate cool-graph-env
54+ python -m pip install --upgrade pip setuptools wheel twine
5255
5356 - name : Build and publish package
5457 shell : bash -l {0}
5760 TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
5861 run : |
5962 conda activate cool-graph-env
60- python setup.py sdist bdist_wheel
63+ python -m build
6164 python -m twine upload dist/*
You can’t perform that action at this time.
0 commit comments