Skip to content

Commit

Permalink
add version and authors to metadata.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ltalirz committed Mar 7, 2019
1 parent fbc917f commit f6296f8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ Reusable widgets for applications in the AiiDA Lab.

## Installation

`aiidalab_widgets_base` python package:
Install the `aiidalab_widgets_base` python package via:
```
pip install aiidalab-widgets-base
```

`aiidalab-widgets-base` AiiDA Lab application:
Via the app manager as usual.
Install the corresponding `aiidalab-widgets-base` AiiDA Lab application
via the app manager as usual.

## Usage

Expand Down
8 changes: 6 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"description": "Reusable AiiDA Lab widgets for applications in the AiiDA Lab.",
"title": "AiiDA Lab Widgets"
"title": "AiiDA Lab Widgets",
"description": "Reusable widgets for applications in the AiiDA Lab.",
"authors": "AiiDA Team",
"version": "0.2.0a2",
"logo": "miscellaneous/logos/aiidalab.png",
"state": "stable"
}
Binary file added miscellaneous/logos/aiidalab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions setup.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"name": "aiidalab-widgets-base",
"author": "AiiDA Team",
"author_email": "aiidateam@gmail.com",
"description": "AiiDA Lab widgets for the [AiiDA Lab](aiidalab.materialscloud.org).",
"url": "https://github.com/aiidalab/aiidalab-widgets-base",
"license": "MIT",
"classifiers": [
"Programming Language :: Python"
],
"version": "0.2.0a2",
"install_requires": [
"aiida-core[jupyter] >= 0.11",
"ase",
Expand Down
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
#!/usr/bin/env python

from __future__ import absolute_import
from setuptools import setup, find_packages
import json

# pylint: disable=syntax-error
if __name__ == '__main__':
# Provide static information in setup.json
# such that it can be discovered automatically
with open('metadata.json', 'r') as info:
metadata = json.load(info)

with open('setup.json', 'r') as info:
kwargs = json.load(info)

setup(
packages=find_packages(),
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author=metadata['authors'],
description=metadata['description'],
version=metadata['version'],
**kwargs)

0 comments on commit f6296f8

Please sign in to comment.