def get_cmdclass(): # make sure these are always available, even when run by dependabot global versioneer, octoprint_setuptools, md_to_html_build_py_factory cmdclass = versioneer.get_cmdclass() # add clean command cmdclass.update( dict(clean=octoprint_setuptools.CleanCommand.for_options( source_folder="src", eggs=["OctoPrint*.egg-info"]))) # add translation commands translation_dir = "translations" pot_file = os.path.join(translation_dir, "messages.pot") bundled_dir = os.path.join("src", "octoprint", "translations") cmdclass.update( octoprint_setuptools.get_babel_commandclasses( pot_file=pot_file, output_dir=translation_dir, pack_name_prefix="OctoPrint-i18n-", pack_path_prefix="", bundled_dir=bundled_dir)) cmdclass["build_py"] = md_to_html_build_py_factory( { "octoprint/templates/_data": [ "AUTHORS.md", "SUPPORTERS.md", "THIRDPARTYLICENSES.md", ] }, cmdclass["build_py"] if "build_py" in cmdclass else _build_py) return cmdclass
def get_cmdclass(): cmdclass = versioneer.get_cmdclass() # add clean command cmdclass.update( dict(clean=octoprint_setuptools.CleanCommand.for_options( source_folder="src", eggs=["BEEweb*.egg-info"]))) # add translation commands translation_dir = "translations" pot_file = os.path.join(translation_dir, "messages.pot") bundled_dir = os.path.join("src", "octoprint", "translations") cmdclass.update( octoprint_setuptools.get_babel_commandclasses( pot_file=pot_file, output_dir=translation_dir, pack_name_prefix="BEEweb-i18n-", pack_path_prefix="", bundled_dir=bundled_dir)) cmdclass["build_py"] = data_copy_build_py_factory( { "octoprint/templates/_data": [ "AUTHORS.md", "CHANGELOG.md", "SUPPORTERS.md", "THIRDPARTYLICENSES.md", ] }, cmdclass["build_py"] if "build_py" in cmdclass else _build_py) return cmdclass
def get_cmdclass(): cmdclass = versioneer.get_cmdclass() # add clean command cmdclass.update(dict(clean=octoprint_setuptools.CleanCommand.for_options(source_folder="src", eggs=["OctoPrint*.egg-info"]))) # add translation commands translation_dir = "translations" pot_file = os.path.join(translation_dir, "messages.pot") bundled_dir = os.path.join("src", "octoprint", "translations") cmdclass.update(octoprint_setuptools.get_babel_commandclasses(pot_file=pot_file, output_dir=translation_dir, pack_name_prefix="OctoPrint-i18n-", pack_path_prefix="", bundled_dir=bundled_dir)) return cmdclass
def get_cmdclass(): cmdclass = versioneer.get_cmdclass() # add clean command cmdclass.update(dict(clean=octoprint_setuptools.CleanCommand.for_options(source_folder="src", eggs=["OctoPrint*.egg-info"]))) # add translation commands translation_dir = "translations" pot_file = os.path.join(translation_dir, "messages.pot") bundled_dir = os.path.join("src", "octoprint", "translations") cmdclass.update(octoprint_setuptools.get_babel_commandclasses(pot_file=pot_file, output_dir=translation_dir, pack_name_prefix="OctoPrint-i18n-", pack_path_prefix="", bundled_dir=bundled_dir)) cmdclass["build_py"] = data_copy_build_py_factory({ "octoprint/templates/_data": [ "AUTHORS.md", "CHANGELOG.md", "SUPPORTERS.md", "THIRDPARTYLICENSES.md", ] }, cmdclass["build_py"] if "build_py" in cmdclass else _build_py) return cmdclass