diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 22b019e..58925a7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publishing on PyPi +name: Publishing on PyPI on: release: types: [published] @@ -8,18 +8,18 @@ jobs: name: Publish Python 🐍 distributions 📦 to PyPI runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v4 - - name: Set up Python 3.8 - uses: actions/setup-python@v4 + - name: Set up Python 3.9 + uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.9 - name: Check Version run: test ${{ github.event.release.tag_name }} = `python -c "import scorep._version; print('v'+scorep._version.__version__)"` - name: Add Score-P repo - run: sudo add-apt-repository ppa:andreasgocht/scorep + run: sudo add-apt-repository ppa:score-p/releases - name: Install Score-P run: sudo apt-get -y install scorep @@ -31,11 +31,13 @@ jobs: run: >- python -m pip install build --user + - name: Build a source tarball run: >- python -m build --sdist --outdir dist/ . + - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/README.md b/README.md index 0dae8fc..875d7a7 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ scorep is a module that allows tracing of python scripts using [Score-P](https:/ # Install -You need at least Score-P 5.0, build with `--enable-shared` and the gcc compiler plugin. +You need at least Score-P 5.0, build with `--enable-shared`. Please make sure that `scorep-config` is in your `PATH` variable. The Score-P community provides an unofficial PPA for Ubuntu LTS systems: https://launchpad.net/~score-p/+archive/ubuntu/releases . diff --git a/scorep/__main__.py b/scorep/__main__.py index 0cc4b88..43097b9 100644 --- a/scorep/__main__.py +++ b/scorep/__main__.py @@ -3,7 +3,8 @@ import scorep.instrumenter import scorep.subsystem -from scorep.helper import print_err +import scorep.helper +from scorep.helper import get_scorep_version, print_err def _err_exit(msg): @@ -11,6 +12,39 @@ def _err_exit(msg): sys.exit(1) +def print_help(): + print("""\ +Usage: python -m scorep [options] [--]