Skip to content

Commit

Permalink
refactor: move basic_frontend to the quetz module
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobuikhuizen committed Jul 14, 2020
1 parent a262b8f commit f99f0a6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
graft basic_frontend
File renamed without changes
File renamed without changes.
5 changes: 3 additions & 2 deletions quetz/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,5 +466,6 @@ def invalid_api():
print('installed frontend found')
app.mount("/", StaticFiles(directory=f'{sys.prefix}/share/quetz/frontend/', html=True), name="frontend")
else:
print('basic frontend')
app.mount("/", StaticFiles(directory='basic_frontend', html=True), name="frontend")
print(f'basic frontend')
basic_frontend_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'basic_frontend')
app.mount("/", StaticFiles(directory=basic_frontend_dir, html=True), name="frontend")
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
long_description="The Mamba package server",
url="https://github.com/thesnakepit/quetz",
packages=setuptools.find_packages(),
include_package_data=True,
python_requires='>=3.6',
)

0 comments on commit f99f0a6

Please sign in to comment.