Skip to content

Commit

Permalink
fixing oeg-upm#75
Browse files Browse the repository at this point in the history
  • Loading branch information
dachafra committed Jan 12, 2024
1 parent a5c48be commit 09101b1
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 37 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI

on: push

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build a binary wheel and a source tarball
run: |
cd src
python setup.py -k rel sdist bdist_wheel
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/yatter # Replace <package-name> with your PyPI project name
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
32 changes: 0 additions & 32 deletions .github/workflows/python-publish-rel.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/testgha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine pytest DeepDiff
pip install setuptools wheel pytest DeepDiff
pip install -r requirements.txt
- name: Build yatter
run: |
Expand Down
8 changes: 4 additions & 4 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
name="yatter",
version=vers_taged,
author="David Chaves-Fraga",
author_email="david.chaves@upm.es",
author_email="david.chaves@usc.es",
license="Apache 2.0",
description="A translator from YARRRML to RML mappings.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/oeg-upm/yarrrml-translator",
url="https://github.com/oeg-upm/yatter",
project_urls={
'Source code': 'https://github.com/oeg-upm/yarrrml-translator',
'Issue tracker': 'https://github.com/oeg-upm/yarrrml-translator/issues',
'Source code': 'https://github.com/oeg-upm/yatter',
'Issue tracker': 'https://github.com/oeg-upm/yatter/issues',
},
include_package_data=True,
packages=setuptools.find_packages(),
Expand Down

0 comments on commit 09101b1

Please sign in to comment.