Skip to content

Commit aa4c189

Browse files
authored
Merge pull request #117 from score-p/push_to_pypi
Push to pypi an CI updates
2 parents 0aea2c8 + fa0917f commit aa4c189

8 files changed

Lines changed: 59 additions & 21 deletions

File tree

.github/workflows/publish.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publishing on PyPi
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
name: Publish Python 🐍 distributions 📦 to PyPI
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
13+
14+
- name: Set up Python 3.7
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.7
18+
- name: Check Version
19+
run: test ${{ github.event.release.tag_name }} = `python -c "import scorep._version; print('v'+scorep._version.__version__)"`
20+
21+
- name: Add Score-P repo
22+
run: sudo add-apt-repository ppa:andreasgocht/scorep
23+
24+
- name: Install Score-P
25+
run: sudo apt install scorep
26+
27+
- name: Setup environment
28+
run: echo "$HOME/scorep/bin" >> $GITHUB_PATH
29+
30+
- name: Install pypa/build
31+
run: >-
32+
python -m
33+
pip install build --user
34+
- name: Build a source tarball
35+
run: >-
36+
python -m
37+
build --sdist --outdir dist/ .
38+
- name: Publish distribution 📦 to Test PyPI
39+
uses: pypa/gh-action-pypi-publish@master
40+
with:
41+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/unit_tests.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env:
66

77
jobs:
88
build:
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
1212
python: [2.7, 3.5, 3.6, 3.7, 3.8]
@@ -18,24 +18,12 @@ jobs:
1818
with:
1919
path: ~/.cache/pip
2020
key: ${{ runner.os }}-pip
21-
- id: cache
22-
uses: actions/cache@v1
23-
with:
24-
path: ~/scorep
25-
key: scorep
2621

27-
- name: Install system dependencies
28-
run: sudo apt install gcc-7-plugin-dev libopenmpi-dev openmpi-bin
29-
- name: Install dependencies
30-
if: steps.cache.outputs.cache-hit != 'true'
31-
run: |
32-
mkdir /tmp/buildScorep && cd /tmp/buildScorep
33-
wget https://www.vi-hps.org/cms/upload/packages/scorep/scorep-6.0.tar.gz
34-
tar xf scorep-6.0.tar.gz
35-
cd scorep-6.0
36-
mkdir build && cd build
37-
../configure --enable-shared --prefix=$HOME/scorep
38-
make -j3 && make install
22+
- name: Add Score-P repo
23+
run: sudo add-apt-repository ppa:andreasgocht/scorep
24+
25+
- name: Install Score-P
26+
run: sudo apt install scorep
3927

4028
- name: Setup environment
4129
run: echo "$HOME/scorep/bin" >> $GITHUB_PATH
@@ -53,4 +41,4 @@ jobs:
5341
run: pip install .
5442
- name: Run tests
5543
working-directory: test
56-
run: pytest
44+
run: pytest

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include README.md LICENSE
1+
recursive-include src *.hpp

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
requires = [
3+
"setuptools >= 40.9.0",
4+
]
5+
build-backend = "setuptools.build_meta:__legacy__"

scorep/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.0"
1+
__version__ = "3.1.3"

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[metadata]
2+
license_files = LICENSE
13
[pycodestyle]
24
max_line_length = 120
35
indent-size = 4

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
'Programming Language :: Python :: 3.6',
6969
'Programming Language :: Python :: 3.7',
7070
'Programming Language :: Python :: 3.8',
71+
'Programming Language :: Python :: 3.9',
7172
'Programming Language :: Python :: Implementation :: CPython',
7273
'Operating System :: POSIX',
7374
'Operating System :: Unix',

test/test_scorep.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def call(arguments, expected_returncode=0, env=None):
1717
out = subprocess.run(
1818
arguments, env=env, stdout=subprocess.PIPE, stderr=subprocess.PIPE
1919
)
20+
print(out.stdout, out.stderr)
2021
assert out.returncode == expected_returncode
2122
stdout, stderr = (out.stdout, out.stderr)
2223
else:

0 commit comments

Comments
 (0)