예제 #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
예제 #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
예제 #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
예제 #4
0
파일: setup.py 프로젝트: wkentaro/labelme
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
예제 #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)
예제 #6
0
파일: setup.py 프로젝트: brstar96/equilib
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
예제 #7
0
파일: setup.py 프로젝트: wkentaro/fcn
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
예제 #9
0
파일: setup.py 프로젝트: ttagu99/labelme
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
예제 #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',
예제 #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',