Example #1
0
def get_long_description():
    with open("README.md") as f:
        long_description = f.read()
    try:
        import github2pypi

        return github2pypi.replace_url(slug="wkentaro/labelme",
                                       content=long_description)
    except Exception:
        return long_description
Example #2
0
def get_long_description():
    with open('README.md') as f:
        long_description = f.read()
    try:
        import github2pypi
        return github2pypi.replace_url(
            slug='yuankaihuo/EasierPath', content=long_description
        )
    except Exception:
        return long_description
Example #3
0
def get_long_description():
    with open('README.md') as f:
        long_description = f.read()

    try:
        import github2pypi
        return github2pypi.replace_url(slug='wkentaro/octomap-python',
                                       content=long_description)
    except Exception:
        return long_description
Example #4
0
def get_long_description():
    with open('README.md') as f:
        long_description = f.read()
    try:
        import github2pypi
        return github2pypi.replace_url(
            slug='wkentaro/labelme', content=long_description
        )
    except Exception:
        return long_description
Example #5
0
def get_long_description():
    with open('README.md') as f:
        long_description = f.read()

    try:
        import github2pypi
    except ImportError:
        return long_description

    return github2pypi.replace_url(slug='wkentaro/pytorch-fcn',
                                   content=long_description)
Example #6
0
def get_long_description():
    with open("README.md") as f:
        long_description = f.read()

    try:
        import github2pypi

        return github2pypi.replace_url(slug="haruishi43/equilib",
                                       content=long_description)
    except Exception:
        return long_description
Example #7
0
def get_long_description():
    with open('README.md') as f:
        long_description = f.read()

    try:
        import github2pypi
    except ImportError:
        return long_description

    return github2pypi.replace_url(
        slug='wkentaro/fcn', content=long_description
    )
def get_long_description():
    with open('README.md') as f:
        long_description = f.read()

    try:
        import github2pypi

        return github2pypi.replace_url(
            slug='IanTaehoonYoo/semantic-segmentation-pytorch',
            content=long_description)
    except Exception:
        return long_description
Example #9
0
def get_long_description():
    with open("README.md") as f:
        long_description = f.read()
    try:
        # when this package is being released
        import github2pypi

        return github2pypi.replace_url(slug="wkentaro/labelme",
                                       content=long_description,
                                       branch="main")
    except ImportError:
        # when this package is being installed
        return long_description
Example #10
0
        'python setup.py sdist',
        'twine upload dist/labelme-{:s}.tar.gz'.format(version),
    ]
    for cmd in commands:
        subprocess.check_call(shlex.split(cmd))
    sys.exit(0)


if not hasattr(github2pypi, '__file__'):
    print('Please update submodule:\n\n\tgit submodule update --init')
    sys.exit(1)


with open('README.md') as f:
    long_description = github2pypi.replace_url(
        slug='wkentaro/labelme', content=f.read()
    )


setup(
    name='labelme',
    version=version,
    packages=find_packages(),
    description='Image Polygonal Annotation with Python',
    long_description=long_description,
    long_description_content_type='text/markdown',
    author='Kentaro Wada',
    author_email='*****@*****.**',
    url='https://github.com/wkentaro/labelme',
    install_requires=install_requires,
    license='GPLv3',
Example #11
0
        sys.exit(1)

    commands = [
        'git pull origin master',
        'git tag v{:s}'.format(version),
        'git push origin master --tag',
        'python setup.py sdist',
        'twine upload dist/torchfcn-{:s}.tar.gz'.format(version),
    ]
    for cmd in commands:
        print('+ {}'.format(cmd))
        subprocess.check_call(shlex.split(cmd))
    sys.exit(0)

with open('README.md') as f:
    long_description = github2pypi.replace_url(slug='wkentaro/pytorch-fcn',
                                               content=f.read())

setup(
    name='torchfcn',
    version=version,
    packages=find_packages(exclude=['github2pypi']),
    install_requires=[r.strip() for r in open('requirements.txt')],
    description='PyTorch Implementation of Fully Convolutional Networks.',
    long_description=long_description,
    long_description_content_type='text/markdown',
    package_data={'torchfcn': ['ext/*']},
    include_package_data=True,
    author='Kentaro Wada',
    author_email='*****@*****.**',
    license='MIT',
    url='https://github.com/wkentaro/pytorch-fcn',