Skip to content

Commit

Permalink
Update readme and metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
vxgmichel committed Jul 18, 2017
1 parent 05792cd commit fa43437
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 88 deletions.
78 changes: 0 additions & 78 deletions README.md

This file was deleted.

85 changes: 85 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
tango-facadedevice
==================

|Doc Status|
|Build Status|
|Coverage Status|

This python package provide a descriptive interface for reactive high-level
Tango devices.


Requirements
------------

The library requires:

- **python** >= 2.7 or >= 3.4
- **pytango** >= 9.2.1


Installation
------------

Install the library by running::


$ python setup.py install # Or
$ pip install .


Documentation
-------------

The documentation is hosted on ReadTheDocs_.

Generating the documentation requires:

- sphinx
- sphinx.ext.autodoc
- sphinx.ext.napoleon

Build the documentation using::

$ python setup.py build_sphinx
$ sensible-browser build/sphinx/html/index.html


Unit testing
------------

The tests run on TravisCI_ and the coverage report is updated on Coveralls_

Run the tests using::

$ python setup.py test

The following libraries will be downloaded if necessary:

- pytest
- pytest-runner
- pytest-mock
- pytest-xdist
- pytest-coverage


Contact
-------

Vincent Michel: [email protected]

.. |Doc Status| image:: http://readthedocs.org/projects/tango-facadedevice/badge/?version=latest
:target: http://tango-facadedevice.readthedocs.io/en/latest/?badge=latest
:alt:

.. |Build Status| image:: https://travis-ci.org/MaxIV-KitsControls/tango-facadedevice.svg?branch=master
:target: https://travis-ci.org/MaxIV-KitsControls/tango-facadedevice
:alt:

.. |Coverage Status| image:: https://coveralls.io/repos/github/MaxIV-KitsControls/tango-facadedevice/badge.svg?branch=master
:target: https://coveralls.io/github/MaxIV-KitsControls/tango-facadedevice?branch=master
:alt:

.. _ReadTheDocs: http://tango-facadedevice.readthedocs.io/en/latest
.. _TravisCI: https://travis-ci.org/MaxIV-KitsControls/tango-facadedevice
.. _Coveralls: https://coveralls.io/github/MaxIV-KitsControls/tango-facadedevice?branch=master
25 changes: 15 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
TESTING = any(x in sys.argv for x in ['test', 'pytest'])


# Read function
def safe_read(fname):
try:
return open(fname).read()
except IOError:
return ""
# README helper
def get_readme(name='README.rst'):
"""Get readme file contents without the badges."""
with open(name) as f:
return '\n'.join(
line for line in f.read().splitlines()
if not line.startswith('|')
or not line.endswith('|'))


# Setup
setup(
Expand All @@ -22,12 +25,14 @@ def safe_read(fname):
packages=['facadedevice'],

# Metadata
description="Provide a facade device to subclass.",
description=(
"Provide a descriptive interface for "
"reactive high-level Tango devices."),
author="Vincent Michel",
author_email="vincent.michel@maxlab.lu.se",
author_email="vincent.michel@esrf.fr",
license="GPLv3",
url="http://www.maxlab.lu.se",
long_description=safe_read("README.md"),
url="https://github.com/MaxIV-KitsControls/tango-facadedevice",
long_description=get_readme(),

# Classifiers
classifiers=[
Expand Down

0 comments on commit fa43437

Please sign in to comment.