Skip to content

Commit

Permalink
Release version 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cgim committed Dec 3, 2018
0 parents commit f19b87a
Show file tree
Hide file tree
Showing 30 changed files with 8,548 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.gitattributes export-ignore
.gitignore export-ignore
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
__pycache__/
*.py[cod]
.mypy_cache/
.cache/
.eggs/
cfei_smap.egg-info

build/
dist/
MANIFEST
81 changes: 81 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
stages:
- build
- test
- deploy
- documentation

test:
stage: test
script:
- env PYTHONPATH=. pytest-3 -v .


style check:
stage: test
script:
- pycodestyle
allow_failure: true


type check:
stage: test
script:
- mypy --package ${CI_PROJECT_NAME//-/.}
allow_failure: true


create deb package:
stage: deploy
only:
- tags
script:
- python3 setup.py --command-packages=stdeb.command sdist_dsc --with-python2=False --with-python3=True bdist_deb
artifacts:
paths:
- deb_dist/python3-${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME:1}-1_all.deb


create wheel package:
stage: deploy
only:
- tags
script:
- pip3 wheel .
artifacts:
paths:
- '${CI_PROJECT_NAME//-/_}-${CI_COMMIT_REF_NAME:1}-py3-none-any.whl'


create tarball:
stage: deploy
only:
- tags
script:
- git archive --format=tar.gz ${CI_COMMIT_REF_NAME} --prefix=${CI_PROJECT_NAME}-${CI_COMMIT_REF_NAME:1}/ --output ${CI_PROJECT_NAME}-${CI_COMMIT_REF_NAME:1}.tar.gz
artifacts:
paths:
- ${CI_PROJECT_NAME}-${CI_COMMIT_REF_NAME:1}.tar.gz


create html documentation:
stage: documentation
only:
- tags
script:
- cd docs
- make html
artifacts:
paths:
- docs/build/html/


create man pages:
stage: documentation
only:
- tags
script:
- cd docs
- make man
artifacts:
paths:
- docs/build/man/
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include *.txt *.md
recursive-include cfei *.json
Loading

0 comments on commit f19b87a

Please sign in to comment.