コード例 #1
0
ファイル: sphinxpackage.py プロジェクト: stumitchell/skeleton
"""
Skeleton to create a project with sphinx support.
"""

from __future__ import with_statement

import logging
import os

from skeleton import Skeleton, Var
from skeleton.examples.basicpackage import BasicPackage
from skeleton.utils import get_loggger

_LOG = get_loggger(__name__)


class SphinxPackage(Skeleton):
    """Create a new package package with sphinx setup.
    includes features from basicpackage:
    Create a new package package (with namespace support) with the setup.py,
    README.rst and MANIFEST.in files already setup.

    Require the following variables:

    - project_name;
    - package_name;
    - author;
    - author_email;
    - license;
    - and short_description.
コード例 #2
0
ファイル: basicpackage.py プロジェクト: NorthIsUp/skeleton
"""
Skeleton to create a basic package and the virtualenwrapper.project extension
to add it a template.
"""

from __future__ import with_statement

import logging
import os

from skeleton import Skeleton, Var
from skeleton.utils import get_loggger, insert_into_file
from skeleton.examples.licenses import LicenseChoice

logger = get_loggger(__name__)

NS_HEADER = """
__import__('pkg_resources').declare_namespace(__name__)
"""


class BasicPackage(Skeleton):
    """Create a new package package (with namespace support) with the setup.py,
    README.rst and MANIFEST.in files already setup.

    Require the following variables:

    - project_name;
    - package_name;
    - author;
    - and author_email.
コード例 #3
0
ファイル: basicpackage.py プロジェクト: AirSage/skeleton
"""
Skeleton to create a basic package and the virtualenwrapper.project extension
to add it a template.
"""

from __future__ import with_statement

import logging
import os

from skeleton import Skeleton, Var
from skeleton.utils import get_loggger, insert_into_file
from skeleton.examples.licenses import LicenseChoice


_LOG = get_loggger(__name__)

NS_HEADER = """
__import__('pkg_resources').declare_namespace(__name__)
"""


class BasicPackage(Skeleton):
    """Create a new package package (with namespace support) with the setup.py,
    README.rst and MANIFEST.in files already setup.

    Require the following variables:

    - project_name;
    - package_name;
    - author;
コード例 #4
0
ファイル: basicpackage.py プロジェクト: NorthIsUp/skeleton
"""
Skeleton to create a basic package and the virtualenwrapper.project extension
to add it a template.
"""

from __future__ import with_statement

import logging
import os

from skeleton import Skeleton, Var
from skeleton.utils import get_loggger, insert_into_file
from skeleton.examples.licenses import LicenseChoice


logger = get_loggger(__name__)

NS_HEADER = """
__import__('pkg_resources').declare_namespace(__name__)
"""


class BasicPackage(Skeleton):
    """Create a new package package (with namespace support) with the setup.py,
    README.rst and MANIFEST.in files already setup.

    Require the following variables:

    - project_name;
    - package_name;
    - author;