Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Release 3.0.0 (#27)
Browse files Browse the repository at this point in the history
Release 3.0.0
  • Loading branch information
thinkh authored Dec 20, 2019
2 parents a4aec9c + f71d359 commit 69eded8
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 22 deletions.
53 changes: 45 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,27 @@ jobs:
build:
working_directory: ~/phovea
docker:
- image: caleydo/phovea_circleci_python:v1.0
tags:
- /v\d+.\d+.\d+.*/
- image: caleydo/phovea_circleci_python:v3.0
steps:
- checkout
- run:
name: Show Node.js and npm version
command: |
node -v
npm -v
- run:
name: Show Python and pip version
command: |
python --version
pip --version
- run:
name: Install Docker packages from docker_packages.txt
command: |
(!(test -f docker_packages.txt) || (cat docker_packages.txt | xargs sudo apt-get install -y))
- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements_dev.txt" }}
- run:
name: install-pip-wee
name: Install pip requirements
command: |
virtualenv ~/venv
. ~/venv/bin/activate
Expand All @@ -24,16 +33,44 @@ jobs:
key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements_dev.txt" }}
paths:
- ~/venv
- run: #force update of VCS dependencies?
name: update-pip-vcs-dependencies
- run:
name: Force an update of pip dependencies from git repositories # not sure if this is working ?
command: |
. ~/venv/bin/activate
pip install --upgrade --upgrade-strategy=only-if-needed -r requirements.txt
- run:
name: dist
name: Show installed pip packages
command: pip list || true
- run:
name: Build
command: |
. ~/venv/bin/activate
npm run dist
- store_artifacts:
path: dist
prefix: dist
workflows:
version: 2
# build-nightly:
# triggers:
# - schedule:
# cron: "15 1 * * 1-5" # "At 01:15 on every day-of-week from Monday through Friday.”, see: https://crontab.guru/#15_1_*_*_1-5
# filters:
# branches:
# only:
# - develop
# jobs:
# - build
build-branch:
jobs:
- build:
filters:
tags:
ignore: /^v.*/
build-tag:
jobs:
- build:
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: caleydo/phovea_circleci_python:v1.0
image: caleydo/phovea_circleci_python:v3.0

variables:
GIT_DEPTH: "1"
Expand Down
6 changes: 6 additions & 0 deletions .yo-rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
"requirements": [],
"debianPackages": [],
"redhatPackages": []
},
"promptValues": {
"authorName": "The Caleydo Team",
"authorEmail": "[email protected]",
"authorUrl": "https://caleydo.org",
"githubAccount": "phovea"
}
}
}
13 changes: 5 additions & 8 deletions buildPython.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
*/

const spawnSync = require('child_process').spawnSync;
const path = require('path');
const resolve = path.resolve;
const fs = require('fs');

function gitHead(cwd) {
Expand All @@ -26,7 +24,7 @@ function resolvePlugin(repo, version) {
}
}
// not a git repo
return version
return version;
}

function toVersion(v) {
Expand All @@ -35,8 +33,8 @@ function toVersion(v) {
const fmt = now
.replace(/T/, ' ')
.replace(/\..+/, '')
.replace(/[-:]/,'')
.replace(' ','-');
.replace(/[-:]/, '')
.replace(' ', '-');
return v.replace('SNAPSHOT', fmt);
}

Expand All @@ -55,18 +53,17 @@ function _main() {
repository: (pkg.repository || {}).url
};

const l = ('build/source/' + name).split('/');
const l = ('build/source/' + name.toLowerCase()).split('/');
l.forEach((_, i) => {
const path = l.slice(0, i + 1).join('/');
if (!fs.existsSync(path)) {
fs.mkdirSync(path);
}
});

fs.writeFileSync('build/source/' + name + '/buildInfo.json', JSON.stringify(buildInfo, null, ' '));
fs.writeFileSync('build/source/' + name.toLowerCase() + '/buildInfo.json', JSON.stringify(buildInfo, null, ' '));
}


if (require.main === module) {
_main();
}
22 changes: 22 additions & 0 deletions docs/phovea_data_mongo.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
phovea_data_mongo package
=========================

Submodules
----------

phovea_data_mongo.graph module
------------------------------

.. automodule:: phovea_data_mongo.graph
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: phovea_data_mongo
:members:
:undoc-members:
:show-inheritance:
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "phovea_data_mongo",
"description": "Data provider plugin for loading graph data stored in a MongoDB.",
"homepage": "https://phovea.caleydo.org",
"version": "2.2.0",
"version": "3.0.0",
"author": {
"name": "The Caleydo Team",
"email": "[email protected]",
Expand Down Expand Up @@ -31,7 +31,7 @@
"pretest": "npm run check",
"test": "test ! -d tests || python setup.py test",
"predist": "npm run build && npm run docs",
"dist": "python setup.py sdist bdist_wheel",
"dist": "python setup.py sdist bdist_wheel && cd build && tar cvzf ../dist/phovea_data_mongo.tar.gz *",
"docs": "sphinx-apidoc -o docs -f ./phovea_data_mongo && sphinx-build ./docs build/docs",
"prebuild": "node -e \"process.exit(process.env.PHOVEA_SKIP_TESTS === undefined?1:0)\" || npm run test",
"build": "rm -rf build/source && find . -name '*.pyc' -delete && node buildPython.js && cp -r ./phovea_data_mongo build/source/"
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pymongo==3.0.3
phovea_server>=2.3.0,<2.4.0
pymongo~=3.7.1
phovea_server>=3.0.0,<4.0.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def to_version(v):


setup(
name=pkg['name'],
name=pkg['name'].lower(),
version=to_version(pkg['version']),
url=pkg['homepage'],
description=pkg['description'],
Expand Down

0 comments on commit 69eded8

Please sign in to comment.