Skip to content

Commit

Permalink
Merge pull request #54 from PatrickOHara/install-pyyaml
Browse files Browse the repository at this point in the history
Add pyyaml as dependency
  • Loading branch information
PatrickOHara authored Feb 2, 2024
2 parents 0e0d1eb + 305c14f commit 69d2a6f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
34 changes: 30 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,42 @@ jobs:
REPO_OWNER: PatrickOHara
RELEASE_BRANCHES: main

build-dist:
name: Build distribution
needs: bump
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install pypa/build
run: python3 -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/

pypi-publish:
name: upload release to PyPI
needs: bump
needs: build-dist

runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# retrieve your distributions here
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"numpy>=1.26.0",
"pandas>=2.0.0",
"pydantic>=2.5.3",
"pyyaml>=6.0",
"tsplib95@git+https://github.com/ben-hudson/tsplib95.git",
],
name="tspwplib",
Expand Down

0 comments on commit 69d2a6f

Please sign in to comment.