Skip to content

Commit

Permalink
Merge pull request #21 from Capitains/pkging
Browse files Browse the repository at this point in the history
Pkging
  • Loading branch information
PonteIneptique committed Jul 9, 2015
2 parents 28b2b66 + 37834ed commit ac9e718
Show file tree
Hide file tree
Showing 179 changed files with 135 additions and 36,487 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Setuptools distribution folder.
/dist/

/doc/build/
# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info

Expand All @@ -15,4 +15,4 @@ __pycache__
lxml-3.4.4-py3.4-linux-x86_64.egg/
*.egg
/.eggs/
/venv*/
/venv*/
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include MyCapytain *.py
6 changes: 5 additions & 1 deletion MyCapytain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
"""

__name__ = "MyCapytain"
__version__ = "0.0.1"
__all__ = ["common", "endpoints", "resources"]
9 changes: 9 additions & 0 deletions MyCapytain/common/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
"""
.. module:: MyCapytain.common
:synopsis: Set of tools for common uses of CTS objects
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
9 changes: 9 additions & 0 deletions MyCapytain/common/metadata.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# -*- coding: utf-8 -*-
"""
.. module:: MyCapytain.common.metadata
:synopsis: Metadata related objects
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
from __future__ import unicode_literals


Expand Down
9 changes: 9 additions & 0 deletions MyCapytain/common/reference.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# -*- coding: utf-8 -*-
"""
.. module:: MyCapytain.common.reference
:synopsis: URN related objects
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
from __future__ import unicode_literals


Expand Down
9 changes: 9 additions & 0 deletions MyCapytain/common/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# -*- coding: utf-8 -*-
"""
.. module:: MyCapytain.common.reference
:synopsis: Common useful tools and constants
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
from __future__ import unicode_literals


Expand Down
9 changes: 9 additions & 0 deletions MyCapytain/endpoints/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
"""
.. module:: MyCapytain.endpoints
:synopsis: Implementation and abstraction of CTS related endpoints
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
9 changes: 9 additions & 0 deletions MyCapytain/endpoints/ahab.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# -*- coding: utf-8 -*-
"""
.. module:: MyCapytain.endpoints.ahab
:synopsis: Ahab endpoint implementation
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
from . import proto
import requests

Expand Down
9 changes: 9 additions & 0 deletions MyCapytain/endpoints/cts5.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# -*- coding: utf-8 -*-
"""
.. module:: MyCapytain.endpoints.cts5
:synopsis: CTS5 endpoint implementation
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
from . import proto
import requests

Expand Down
8 changes: 7 additions & 1 deletion MyCapytain/endpoints/proto.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# -*- coding: utf-8 -*-
"""
Prototypes used for implementation of API abstraction
.. module:: MyCapytain.endpoints.proto
:synopsis: Prototypes of APIs endpoint
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
class API(object):
""" API Prototype object """
Expand Down
9 changes: 9 additions & 0 deletions MyCapytain/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
"""
.. module:: MyCapytain.resources
:synopsis: Text and repository related objects
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
9 changes: 9 additions & 0 deletions MyCapytain/resources/proto/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
"""
.. module:: MyCapytain.resources.proto
:synopsis: Prototypes for Text and repository
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
9 changes: 8 additions & 1 deletion MyCapytain/resources/proto/inventory.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# -*- coding: utf-8 -*-
"""
Resources Prototypes
.. module:: MyCapytain.resources.proto.inventory
:synopsis: Prototypes for repository/inventory
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""

from MyCapytain.common.reference import URN, Reference
from MyCapytain.common.metadata import Metadata
from past.builtins import basestring
Expand Down
9 changes: 9 additions & 0 deletions MyCapytain/resources/proto/text.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# -*- coding: utf-8 -*-
"""
.. module:: MyCapytain.resources.proto.text
:synopsis: Prototypes for Text
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
from . import inventory

class Resource(object):
Expand Down
9 changes: 9 additions & 0 deletions MyCapytain/resources/xml.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# -*- coding: utf-8 -*-
"""
.. module:: MyCapytain.resources.xml
:synopsis: XML based Text and repository
.. moduleauthor:: Thibault Clérice <leponteineptique@gmail.com>
"""
from __future__ import unicode_literals

from MyCapytain.resources.proto import inventory
Expand Down
7 changes: 6 additions & 1 deletion devnotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ class MyTest(TestCase):
my_method_under_test()
# Ensure patched get was called, called only once and with exactly these params.
patched_get.assert_called_once_with("https://ec2.amazonaws.com/", params={'Action': 'GetConsoleOutput', 'InstanceId': 'i-123456'})
```
```

###Useful links

Submitting :
- http://peterdowns.com/posts/first-time-with-pypi.html
4 changes: 0 additions & 4 deletions doc/build/.buildinfo

This file was deleted.

Binary file removed doc/build/.doctrees/MyCapytain.common.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed doc/build/.doctrees/MyCapytain.common.utils.doctree
Binary file not shown.
Binary file removed doc/build/.doctrees/MyCapytain.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed doc/build/.doctrees/MyCapytain.endpoints.doctree
Binary file not shown.
Binary file not shown.
Binary file removed doc/build/.doctrees/MyCapytain.resources.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed doc/build/.doctrees/MyCapytain.resources.xml.doctree
Binary file not shown.
Binary file removed doc/build/.doctrees/environment.pickle
Binary file not shown.
Binary file removed doc/build/.doctrees/index.doctree
Binary file not shown.
Binary file removed doc/build/.doctrees/modules.doctree
Binary file not shown.
117 changes: 0 additions & 117 deletions doc/build/MyCapytain.common.html

This file was deleted.

0 comments on commit ac9e718

Please sign in to comment.