-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up See merge request epi2melabs/ont-spectre!1
- Loading branch information
Showing
45 changed files
with
693 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[run] | ||
omit = spectre/main.py | ||
|
||
[report] | ||
exclude_lines = | ||
pragma: no cover | ||
raise NotImplementedError | ||
fail_under = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,59 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
# Temporary and binary files | ||
*~ | ||
*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
*.cfg | ||
!.isort.cfg | ||
!setup.cfg | ||
*.orig | ||
*.log | ||
*.pot | ||
__pycache__/* | ||
.cache/* | ||
.*.swp | ||
*/.ipynb_checkpoints/* | ||
.DS_Store | ||
|
||
# Distribution / packaging | ||
bin/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
.tox/ | ||
.coverage | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
|
||
# Translations | ||
*.mo | ||
|
||
# Mr Developer | ||
.mr.developer.cfg | ||
# Project files | ||
.ropeproject | ||
.project | ||
.pydevproject | ||
.settings | ||
.idea | ||
.vscode | ||
tags | ||
|
||
# Rope | ||
.ropeproject | ||
|
||
# Django stuff: | ||
*.log | ||
*.pot | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
# Package files | ||
*.egg | ||
*.eggs/ | ||
.installed.cfg | ||
*.egg-info | ||
|
||
# DS_Store | ||
.DS_Store | ||
# Unittest and coverage | ||
htmlcov/* | ||
.coverage | ||
.coverage.* | ||
.tox | ||
junit*.xml | ||
coverage.xml | ||
.pytest_cache/ | ||
|
||
# Build and docs folder/files | ||
build/* | ||
dist/* | ||
sdist/* | ||
docs/api/* | ||
docs/_rst/* | ||
docs/_build/* | ||
cover/* | ||
MANIFEST | ||
|
||
# Per-project virtualenvs | ||
.venv*/ | ||
.conda*/ | ||
.python-version | ||
|
||
tmp_tests | ||
.pdm.toml | ||
scratch | ||
.pymon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
include: | ||
- project: "epi2melabs/ci-templates" | ||
file: "snippets.yaml" | ||
- project: "epi2melabs/ci-templates" | ||
file: "push-github.yaml" | ||
- project: "epi2melabs/ci-templates" | ||
file: "push-conda.yaml" | ||
|
||
image: ${UBUNTUIMAGE}:20.04 | ||
variables: | ||
PYENV_VERSION: 3.8.12 | ||
|
||
.prep-image: &prep-image | | ||
export DEBIAN_FRONTEND=noninteractive | ||
apt update -qq | ||
apt install -y --no-install-recommends make wget python3-all-dev python3-venv git libbz2-dev libncurses5-dev libncursesw5-dev libffi-dev libreadline-dev libssl-dev liblzma-dev libsqlite3-dev | ||
|
||
stages: | ||
- test | ||
- build | ||
- prerelease | ||
- release | ||
- postrelease | ||
|
||
test: | ||
stage: test | ||
script: | ||
- *prep-image | ||
- !reference [.install, pyenv] | ||
- !reference [.setup, pyenv-python] | ||
- make test | ||
- make sdist | ||
artifacts: | ||
paths: | ||
- dist/*.tar.gz | ||
|
||
deploy-checks: | ||
stage: prerelease | ||
variables: | ||
PACKAGE_NAME: spectre | ||
script: | ||
- !reference [.check, python-version] | ||
- !reference [.check, changelog] | ||
rules: | ||
- if: '$CI_COMMIT_TAG =~ /^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$/' | ||
|
||
deploy:pypi: | ||
stage: release | ||
script: | ||
- *prep-image | ||
- make pypi_build/bin/activate | ||
- source pypi_build/bin/activate | ||
- twine upload --non-interactive dist/*.tar.gz | ||
rules: | ||
- if: '$CI_COMMIT_TAG =~ /^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$/' | ||
|
||
conda: | ||
variables: | ||
PACKAGE_ARCH: "noarch" | ||
extends: | ||
- .deploy-conda | ||
before_script: | ||
- *prep-image | ||
- export CONDA_PKG=${CI_PROJECT_NAME} | ||
- export CONDA_PKG_VERSION=${CI_COMMIT_TAG/v/} | ||
- cd conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [v0.2.0] | ||
### Changed | ||
- Forked from upstread spectre project. | ||
- Reworked package to be packaged. |
Oops, something went wrong.