コード例 #1
0
ファイル: make.py プロジェクト: jldupont/pyjld
def make():
    pkg_path, ns, package = findPackage()
    this_module_name = "%s.%s" % (ns, package)
    this_package     = __import__( this_module_name )
    this_module      = getattr(this_package, package)
    version          = this_module.__version__
    tags_dir         = os.path.join(pkg_path, 'tags')
    
    docs_source = os.path.join( pkg_path, 'trunk', 'docs', 'source' )
    docs_html   = os.path.join( pkg_path, 'trunk', 'docs', 'html' )
    
    #targets
    release_path = target_eggsdir(version, tags_dir)
    target_eggscopy(pkg_path, release_path)
    target_gendocs(docs_source, docs_html)
    target_copydocs(pkg_path, version, docs_html)
コード例 #2
0
ファイル: setup.py プロジェクト: jldupont/pyjld
"""
__author__  = "Jean-Lou Dupont"
__fileid__  = "$Id: setup.py 54 2009-04-14 14:50:33Z jeanlou.dupont $"
__email     = "python (at) jldupont.com"

import os
import sys
from setuptools import setup, find_packages

from pyjld.builder import findPackage, getShortAndLongDescription

#helps with Eclipse external buidler
__file__dir = os.path.dirname( __file__ )
os.chdir(__file__dir)

pkg_path, ns, package = findPackage(__file__dir)
this_module_name = "%s.%s" % (ns, package)
this_package     = __import__( this_module_name )
this_module      = getattr(this_package, package)
version          = this_module.__version__

short_description, long_description = getShortAndLongDescription(this_module) 

_doc_url = "http://pyjld.googlecode.com/svn/trunk/%s.%s/tags/%s/docs/index.html" % (ns,package,version)

dist = setup(
    name             = this_module_name,
    description      = short_description,
    author_email     = __email,
    author           = __author__,
    url              = _doc_url,
コード例 #3
0
ファイル: setup.py プロジェクト: jldupont/pyjld
#!/usr/bin/env python
"""
    @author: Jean-Lou Dupont
"""
__author__ = "Jean-Lou Dupont"
__fileid__ = "$Id: setup.py 7 2009-03-30 20:12:47Z jeanlou.dupont $"
__email = "python (at) jldupont.com"

import sys
import textwrap
from setuptools import setup, find_packages

from pyjld.builder import findPackage


path, ns, package = findPackage()

this_module_name = "%s.%s" % (ns, package)
this_module = __import__(this_module_name)

print this_module_name

short_description, long_description = (textwrap.dedent(d).strip() for d in this_module.__doc__.split("\n\n", 1))


__classifiers = [
    "Development Status :: 4 - Beta",
    "Intended Audience :: Developers",
    "License :: Public Domain",
    "Programming Language :: Python",
    "Topic :: Software Development :: Libraries :: Python Modules",