Fix the package script

This commit is contained in:
C5H12O5
2023-08-16 23:55:10 +08:00
parent d3c5dceb7f
commit 241c7bd04f
2 changed files with 3 additions and 3 deletions

View File

@ -6,5 +6,5 @@ import scraper
if __name__ == "__main__":
# Prints the output of the scraper to the console.
root_dir = Path(__file__).resolve().parent
plugin_id = root_dir.stem
plugin_id = root_dir.name
print(scraper.scrape(plugin_id))

View File

@ -9,7 +9,7 @@ from version import version
root_dir = Path(__file__).resolve().parent
# use the name of the root directory as the plugin id
plugin_id = root_dir.stem
plugin_id = root_dir.name
# write the INFO file for this plugin
info_tmpl = """
@ -48,7 +48,7 @@ setup(
package_data={
"": ["run.sh", "INFO"],
"scrapeflows": ["*.json"],
"configserver": ["*.html"],
"configserver": ["templates/*.html"],
},
python_requires=">=3.7",
)