From e6414238b42a1d5148829740e7e51ca509c58c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20N=C3=B6the?= Date: Thu, 4 Mar 2021 16:13:50 +0100 Subject: [PATCH 1/3] Add github CI config to deploy to PyPI --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..bcdafac2 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + tags: + - 'v*' + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # make sure we have version info + - run: git fetch --tags + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: Install dependencies + run: | + python --version + pip install -U pip setuptools wheel + python setup.py sdist bdist_wheel + + - name: Publish package + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi_password }} From 164afde1f99a1e4d6b0b8babdc4ebd528b1e0b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20N=C3=B6the?= Date: Thu, 4 Mar 2021 16:19:42 +0100 Subject: [PATCH 2/3] Exclude more files from manifest.in --- MANIFEST.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MANIFEST.in b/MANIFEST.in index 61246e82..85ed0a85 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,5 +2,8 @@ include README.rst include setup.cfg prune ctapipe_io_lst/_dev_version +prune .github +exclude .gitignore +exclude .codacy.yml global-exclude *.pyc *.o From 95cce25fc634c504eeb8ce94fa3d97e5c9890da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20N=C3=B6the?= Date: Thu, 4 Mar 2021 16:30:58 +0100 Subject: [PATCH 3/3] Also install setuptools_scm --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bcdafac2..c9faad40 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: | python --version - pip install -U pip setuptools wheel + pip install -U pip setuptools wheel setuptools_scm[toml] python setup.py sdist bdist_wheel - name: Publish package