Skip to content

Commit

Permalink
Merge pull request #153 from cta-observatory/fix_deploy_build
Browse files Browse the repository at this point in the history
Fix missing version on github CI config for pypi deploy
  • Loading branch information
maxnoe authored May 11, 2021
2 parents abe32f2 + bc68bc8 commit 57409c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: CI

on:
push:
pull_request:
branches:
# build only on forks, PRs from the same repo are covered by "push"
- '**:**'
on: [push, pull_request]

env:
MPLBACKEND: Agg
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
- 'v*'

jobs:
tests:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# make sure we have version info
- run: git fetch --tags
with:
fetch-depth: 0


- name: Set up Python
uses: actions/setup-python@v2
Expand All @@ -22,7 +22,9 @@ jobs:
- name: Install dependencies
run: |
python --version
pip install -U pip setuptools wheel
pip install -U pip setuptools wheel setuptools_scm[toml]
# make sure we have the version, grep will exit with 1 if it finds 0.0.0
python setup.py --version | grep -v '0.0.0'
python setup.py sdist bdist_wheel
- name: Publish package
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ classifiers =
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8

requires-dist = setuptools
requires_dist = setuptools

[options]
python_requires = >=3.6
setup_requires = setuptools_scm[toml]

[flake8]
exclude=
Expand Down

0 comments on commit 57409c7

Please sign in to comment.