Skip to content

Commit e36399f

Browse files
committed
add ci and versioneer config
1 parent 75dfb65 commit e36399f

13 files changed

Lines changed: 2487 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
version: 2.1
2+
3+
orbs:
4+
psyplot: psyplot/psyplot-ci-orb@dev:alpha
5+
mattermost-plugin-notify: nathanaelhoun/mattermost-plugin-notify@1.2.0
6+
7+
parameters:
8+
deploy-release:
9+
description: Deploy the comment as a new release to github and pypi
10+
type: boolean
11+
default: false
12+
13+
workflows:
14+
build-and-test:
15+
unless: << pipeline.parameters.deploy-release >>
16+
jobs:
17+
- psyplot/install-and-build:
18+
name: install
19+
setup_env: false
20+
build_recipe: false
21+
build_docs: false
22+
- mattermost-plugin-notify/approval-notification:
23+
name: notify-deploy
24+
context: mattermost
25+
message: >-
26+
Hello @all! A workflow on https://app.circleci.com/pipelines/github/psyplot/ci-release-test is awaiting your approval to test the release workflow.
27+
- hold-for-deploy:
28+
type: approval
29+
requires:
30+
- notify-deploy
31+
- psyplot/trigger-release-workflow:
32+
context: trigger-release
33+
filters:
34+
branches:
35+
only: main
36+
requires:
37+
- notify-deploy
38+
publish-release:
39+
when: << pipeline.parameters.deploy-release >>
40+
jobs:
41+
- psyplot/create-tag:
42+
ssh-fingerprints: "fc:e3:0f:d0:c6:5a:6a:a5:0e:7c:d6:47:37:48:dd:67"
43+
context: psyplot-admin
44+
user-name: psyplot-admin
45+
publish-release: true
46+
publish-version-tag: true
47+
- mattermost-plugin-notify/approval-notification:
48+
name: notify-release
49+
context: mattermost
50+
message: >-
51+
Hello @all! A new release has been created at https://github.com/psyplot/ci-release-test/releases.
52+
Please review it carefully.
53+
requires:
54+
- psyplot/create-tag
55+
- hold-for-pypi:
56+
type: approval
57+
requires:
58+
- notify-release
59+
- psyplot/deploy-pypi:
60+
dry_run: true
61+
requires:
62+
- hold-for-pypi
63+
filters:
64+
branches:
65+
only: main

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
release_test/_version.py export-subst

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include versioneer.py
2+
include release_test/_version.py
54.3 KB
Binary file not shown.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Metadata-Version: 1.2
2+
Name: psyplot-ci-release-test
3+
Version: 0.0.1+0.g75dfb65.dirty
4+
Summary: A test repository for the psyplot release workflow
5+
Home-page: https://github.com/psyplot/ci-release-test
6+
Author: Phiilpp S. Sommer
7+
Author-email: philipp.sommer@hereon.de
8+
License: MIT
9+
Description: UNKNOWN
10+
Platform: UNKNOWN
11+
Classifier: Intended Audience :: Developers
12+
Classifier: License :: OSI Approved :: BSD License
13+
Classifier: Operating System :: OS Independent
14+
Classifier: Programming Language :: Python
15+
Classifier: Programming Language :: Python :: 3
16+
Classifier: Programming Language :: Python :: 3 :: Only
17+
Classifier: Programming Language :: Python :: 3.7
18+
Classifier: Programming Language :: Python :: 3.8
19+
Requires-Python: >=3.7
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
LICENSE
2+
MANIFEST.in
3+
README.md
4+
setup.cfg
5+
setup.py
6+
versioneer.py
7+
psyplot_ci_release_test.egg-info/PKG-INFO
8+
psyplot_ci_release_test.egg-info/SOURCES.txt
9+
psyplot_ci_release_test.egg-info/dependency_links.txt
10+
psyplot_ci_release_test.egg-info/top_level.txt
11+
release_test/__init__.py
12+
release_test/_version.py
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
release_test

release_test/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
from ._version import get_versions
3+
__version__ = get_versions()['version']
4+
del get_versions

0 commit comments

Comments
 (0)