Skip to content
Snippets Groups Projects
Select Git revision
  • 3ad8670d0208a47a864d6625d89a96a08852104e
  • develop default protected
  • redploy-placement-port
  • master protected
  • feature/NAT-1574-add-moodi-for-ixs
  • authorship-fix-from-develop
  • 1048-service-config-backfilling
  • feature/nat-1211-edgeport-lacp-xmit
  • fix/nat-1120-sdp-validation
  • NAT-1154-import-edge-port-update
  • fix/l3-imports
  • feature/10GGBS-NAT-980
  • fix/NAT-1009/fix-redeploy-base-config-if-there-is-a-vprn
  • 4.12
  • 4.11
  • 4.10
  • 4.8
  • 4.5
  • 4.4
  • 4.3
  • 4.2
  • 4.1
  • 4.0
  • 3.12
  • 3.11
  • 3.10
  • 3.9
  • 3.8
  • 3.7
  • 3.6
  • 3.5
  • 3.4
  • 3.3
33 results

validate_router.py

Blame
  • setup.py 1.37 KiB
    """
      wile_coyote
    """
    from ensurepip import version
    import os
    from glob import glob
    from shutil import rmtree
    from setuptools import setup, find_packages
    
    version = __import__("version").__version__
    description = """ this tool is used in conjunction with certbot to leverage
     the lifecycle of the certificates on the key store"""
    requirements = [
        x.strip() for x in
        open('requirements.txt').readlines() if not x.startswith('#') and x != '\n']
    
    rmtree('dist', ignore_errors=True)
    rmtree('deb_dist', ignore_errors=True)
    
    
    def read(fname):
        """ get file name """
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
    
    
    setup(
        name="wile_coyote",
        version=version,
        description="A tool to manage certificates on Vault, Redis, Consul",
        long_description=description,
        url="https://gitlab.geant.org/devops/wile_coyote",
        install_requires=requirements,
        author="Massimiliano Adamo",
        author_email="massimiliano.adamo@geant.org",
        license='GPLv3',
        license_files=('LICENSE.md',),
        scripts=glob('bin/*'),
        packages=find_packages(),
        zip_safe=False
    )
    
    print('removing stale items')
    for stale_files in glob('*/*.pyc') + glob('wile_coyote-*tar.gz'):
        try:
            os.remove(stale_files)
        except PermissionError:
            pass
    
    for pycache in glob('*/__pycache__') + ['build', 'wile_coyote.egg-info']:
        rmtree(pycache, ignore_errors=True)