Skip to content

Commit

Permalink
Merge branch 'cleanup' into 'dev'
Browse files Browse the repository at this point in the history
Clean up

See merge request epi2melabs/ont-spectre!1
  • Loading branch information
cjw85 committed Apr 3, 2024
2 parents 2df80a9 + 4b0c6b2 commit 278e73a
Show file tree
Hide file tree
Showing 45 changed files with 693 additions and 169 deletions.
Binary file removed .DS_Store
Binary file not shown.
8 changes: 8 additions & 0 deletions .coveragerc
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
98 changes: 52 additions & 46 deletions .gitignore
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
66 changes: 66 additions & 0 deletions .gitlab-ci.yml
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
10 changes: 10 additions & 0 deletions CHANGELOG.md
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.
Loading

0 comments on commit 278e73a

Please sign in to comment.