Skip to content

Commit

Permalink
Change: improve setup.py for includes management
Browse files Browse the repository at this point in the history
  • Loading branch information
Pan6ora committed May 15, 2024
1 parent f209407 commit 51f9725
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
accepted_filetypes = (".html", ".png", ".svg", ".js", ".css")

for dirpath, dirnames, filenames in os.walk("ab_plugin_template"):
for dirpath, dirnames, filenames in os.walk("ab_online"):
# Ignore dirnames that start with '.'
if ('__init__.py' in filenames
or any(x.endswith(accepted_filetypes) for x in filenames)):
pkg = dirpath.replace(os.path.sep, '.')
if "__init__.py" in filenames or "includes" in dirpath:
pkg = dirpath.replace(os.path.sep, ".")
if os.path.altsep:
pkg = pkg.replace(os.path.altsep, '.')
pkg = pkg.replace(os.path.altsep, ".")
packages.append(pkg)

if 'VERSION' in os.environ:
Expand All @@ -30,8 +28,8 @@
author="Rémy Le Calloch",
author_email="[email protected]",
license=open('LICENSE.txt').read(),
install_requires=[], # dependency management in conda recipe
install_requires=[], # dependency management in conda recipe
url="https://github.com/Pan6ora/activity-browser-plugin-template",
long_description=open('README.md').read(),
description="An empty plugin to start from",
)
)

0 comments on commit 51f9725

Please sign in to comment.