Skip to content

Commit a9a7439

Browse files
authored
Prepare first release (#39)
* Prepare first release - Added a workflow for automatic tagging with [Palisade](https://github.com/lightspeed/palisade/blob/master/doc/usage.md) - Added `.zenodo.json` - `__version__` is properly set according to contents of `VERSION` - The version of MRCPP can be retrieved from Python by calling `mrcpp_version()`
1 parent d48a3b3 commit a9a7439

File tree

11 files changed

+100
-18
lines changed

11 files changed

+100
-18
lines changed

.github/workflows/build-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches:
66
- master
7+
- release/*
78
pull_request:
89
branches:
910
- master
11+
- release/*
1012
release:
1113
types:
1214
- created

.github/workflows/palisade.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on: [push]
2+
3+
name: Release VAMPyR
4+
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
if: contains(github.ref, 'refs/heads/release')
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Releases via Palisade
12+
run: |
13+
docker run --rm --name palisade -v $(pwd):/workspace -e GITHUB_TOKEN -e GITHUB_REF -e GITHUB_REPOSITORY --workdir /workspace lightspeedhq/palisade palisade github-action
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

.zenodo.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"title": "VAMPyR: Very Accurate Multiresolution Python Routines",
3+
"access_right": "open",
4+
"license": {
5+
"id": "LGPL-3.0"
6+
},
7+
"creators": [
8+
{
9+
"affiliation": "Hylleraas Centre for Quantum Molecular Sciences, UiT - The Arctic University of Norway",
10+
"name": "Bjorgve, Magnar"
11+
}
12+
],
13+
"contributors": [
14+
{
15+
"type": "Other",
16+
"name": "Di Remigio, Roberto"
17+
},
18+
{
19+
"type": "Other",
20+
"name": "Jensen, Stig Rune"
21+
},
22+
{
23+
"type": "Other",
24+
"name": "Battistella, Evelin"
25+
}
26+
]
27+
}

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning].
6+
7+
## [Unreleased]
8+
9+
First release of the Very Accurate Multiresolution Python Routines ([VAMPyR])
10+
package. VAMPyR contains Python bindings to the [MRCPP] library, generated
11+
through [pybind11].
12+
13+
VAMPyR is developed at the [Hylleraas Centre for Quantum Molecular Sciences] at
14+
[UiT - The Arctic University of Norway].
15+
The project was initiated by Magnar Bjørgve (@bjorgve), with contributions from
16+
Evelin Battistella (@evelinbatt), Stig Rune Jense (@stigrj), and Roberto Di
17+
Remigio (@robertodr)
18+
19+
[Unreleased]: https://github.com/MRChemSoft/vampyr
20+
21+
[0.1.0]: https://github.com/MRChemSoft/vampyr/releases/tag/v0.1.0
22+
23+
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
24+
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
25+
26+
[VAMPyR]: https://github.com/MRChemSoft/vampyr
27+
[MRCPP]: https://mrcpp.readthedocs.io
28+
[pybind11]: https://pybind11.readthedocs.io
29+
[Hylleraas Centre for Quantum Molecular Sciences]: https://www.mn.uio.no/hylleraas/english/
30+
[UiT - The Arctic University of Norway]: http://en.uit.no/

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.0

cmake/custom/doxygen.cmake

Lines changed: 0 additions & 5 deletions
This file was deleted.

cmake/custom/main.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# read PROGRAM_VERSION from file
2+
if(EXISTS "${PROJECT_SOURCE_DIR}/VERSION")
3+
file(READ "${PROJECT_SOURCE_DIR}/VERSION" PROGRAM_VERSION)
4+
string(STRIP "${PROGRAM_VERSION}" PROGRAM_VERSION)
5+
else()
6+
message(FATAL_ERROR "File ${PROJECT_SOURCE_DIR}/VERSION not found")
7+
endif()
8+
19
if(NOT DEFINED PYMOD_INSTALL_LIBDIR)
210
message(STATUS "Setting (unspecified) option PYMOD_INSTALL_LIBDIR: python")
311
set(PYMOD_INSTALL_LIBDIR "python" CACHE STRING "Location within lib to which Python modules are installed" FORCE)

vampyr/CMakeLists.txt

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ if(APPLE)
2323
else()
2424
set(_RPATH "\$ORIGIN/${_rel}")
2525
endif()
26+
27+
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/${PYMOD_INSTALL_FULLDIR})
28+
# configure __init__.py
29+
configure_file(
30+
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py.in
31+
${PROJECT_BINARY_DIR}/${PYMOD_INSTALL_FULLDIR}/__init__.py
32+
@ONLY
33+
)
34+
2635
set_target_properties(_vampyr
2736
PROPERTIES
2837
MACOSX_RPATH ON
@@ -33,20 +42,9 @@ set_target_properties(_vampyr
3342
PREFIX "${PYTHON_MODULE_PREFIX}"
3443
SUFFIX "${PYTHON_MODULE_EXTENSION}"
3544
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/${PYMOD_INSTALL_FULLDIR}
36-
RESOURCE "${CMAKE_CURRENT_SOURCE_DIR}/__init__.py"
45+
RESOURCE "${PROJECT_BINARY_DIR}/${PYMOD_INSTALL_FULLDIR}/__init__.py"
3746
)
3847

39-
# Create symlinks into build tree
40-
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/${PYMOD_INSTALL_FULLDIR})
41-
foreach(_f __init__.py)
42-
file(
43-
CREATE_LINK
44-
${CMAKE_CURRENT_SOURCE_DIR}/${_f}
45-
${PROJECT_BINARY_DIR}/${PYMOD_INSTALL_FULLDIR}/${_f}
46-
SYMBOLIC
47-
)
48-
endforeach()
49-
5048
install(
5149
TARGETS
5250
_vampyr

vampyr/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

vampyr/__init__.py.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from ._vampyr import *
2+
3+
4+
__version__ = "@PROGRAM_VERSION@"

0 commit comments

Comments
 (0)