Пример #1
0
description = "A utility to automate away boilerplate in Python 3 setup scripts."
startline = 4

author = "Peter A. Donis"
author_email = "*****@*****.**"

license = "PSF"

dev_status = "Beta"

classifiers = """
Environment :: Console
Intended Audience :: Developers
Intended Audience :: System Administrators
Operating System :: OS Independent
Topic :: Software Development :: Libraries :: Python Modules
Topic :: System :: Systems Administration
Topic :: Utilities
"""

py_modules = ["setuputils"]


if __name__ == '__main__':
    from subprocess import call
    from distutils.core import setup
    from setuputils import convert_md_to_rst, setup_vars
    convert_md_to_rst()
    call(['sed', '-i', 's/github.com\/pdonis/pypi.python.org\/pypi/', 'README'])
    setup(**setup_vars(globals()))
Пример #2
0
:Author:        {author}
:Release Date:  {releasedate}
"""

if __name__ == '__main__':
    import sys
    import os
    from subprocess import call
    from distutils.core import setup
    from setuputils import convert_md_to_rst, current_date, setup_vars, long_description as make_long_description

    if "sdist" in sys.argv:
        convert_md_to_rst(rst_header_template,
                          startline=2,
                          name=name.upper(),
                          version=version,
                          author=author,
                          releasedate=current_date("%d %b %Y"))
        call([
            'sed', '-i',
            's/bitbucket.org\/pdonis\/plib-/pypi.python.org\/pypi\/plib./',
            'README'
        ])
        call([
            'sed', '-i',
            's/bitbucket.org\/pdonis\/plib3-/pypi.python.org\/pypi\/plib3./',
            'README'
        ])
        call([
            'sed', '-i', 's/github.com\/pdonis/pypi.python.org\/pypi/',
            'README'
Пример #3
0
"""

requires = """
plib.stdlib (>=0.9.2)
"""

rst_header_template = """**{basename}** for {name} {version}

:Author:        {author}
:Release Date:  {releasedate}
"""


if __name__ == '__main__':
    from subprocess import call
    from distutils.core import setup
    from setuputils import convert_md_to_rst, current_date, setup_vars
    
    convert_md_to_rst(rst_header_template,
        startline=2,
        name=name.upper(),
        version=version,
        author=author,
        releasedate=current_date("%d %b %Y")
    )
    call(['sed', '-i', 's/bitbucket.org\/pdonis\/plib-/pypi.python.org\/pypi\/plib./', 'README'])
    call(['sed', '-i', 's/bitbucket.org\/pdonis\/plib3-/pypi.python.org\/pypi\/plib3./', 'README'])
    call(['sed', '-i', 's/github.com\/pdonis/pypi.python.org\/pypi/', 'README'])
    
    setup(**setup_vars(globals()))
Пример #4
0
description = "A utility to automate away boilerplate in Python setup scripts."
startline = 4

author = "Peter A. Donis"
author_email = "*****@*****.**"

license = "PSF"

dev_status = "Beta"

classifiers = """
Environment :: Console
Intended Audience :: Developers
Intended Audience :: System Administrators
Operating System :: OS Independent
Topic :: Software Development :: Libraries :: Python Modules
Topic :: System :: Systems Administration
Topic :: Utilities
"""

py_modules = ["setuputils"]

if __name__ == '__main__':
    from subprocess import call
    from distutils.core import setup
    from setuputils import convert_md_to_rst, setup_vars
    convert_md_to_rst()
    call(
        ['sed', '-i', 's/github.com\/pdonis/pypi.python.org\/pypi/', 'README'])
    setup(**setup_vars(globals()))