~hristoast/mousikofidi

88502b549f77e08ede15dcb0dcedea3f3c8fda6c — Hristos N. Triantafillou 1 year, 2 months ago 0197574
Setuptools installation (#50)
49 files changed, 40 insertions(+), 10 deletions(-)

A MANIFEST.in
M Makefile
M example/fidi-nginx.conf
A mousikofidi/__init__.py
R mousikofidi.py => mousikofidi/mousikofidi.py
R static/{OFL.txt => fidi/static/OFL.txt}
R static/{PressStart2P-Regular.ttf => fidi/static/PressStart2P-Regular.ttf}
R static/css/{fidi-nes.css => /static/css/fidi-nes.css}
R static/css/{fidi-nes.min.css => /static/css/fidi-nes.min.css}
R static/css/{fidi.css => /static/css/fidi.css}
R static/css/{fidi.min.css => /static/css/fidi.min.css}
R static/css/nes/{nes.css => tic/css/nes/nes.css}
R static/css/nes/{nes.min.css => tic/css/nes/nes.min.css}
R static/css/{normalize.css => /static/css/normalize.css}
R static/css/{normalize.min.css => /static/css/normalize.min.css}
R static/css/water/{dark.standalone.css => c/css/water/dark.standalone.css}
R static/css/water/{dark.standalone.css.map => c/css/water/dark.standalone.css.map}
R static/css/water/{dark.standalone.min.css => c/css/water/dark.standalone.min.css}
R static/css/water/{dark.standalone.min.css.map => c/css/water/dark.standalone.min.css.map}
R static/css/water/{light.standalone.css => c/css/water/light.standalone.css}
R static/css/water/{light.standalone.css.map => c/css/water/light.standalone.css.map}
R static/css/water/{light.standalone.min.css => c/css/water/light.standalone.min.css}
R static/css/water/{light.standalone.min.css.map => c/css/water/light.standalone.min.css.map}
R static/{fidi-orig.png => fidi/static/fidi-orig.png}
R static/{fidi.png => fidi/static/fidi.png}
R static/{gnu-cat.png => fidi/static/gnu-cat.png}
R static/js/{player.js => i/static/js/player.js}
R static/js/{player.min.js => i/static/js/player.min.js}
R static/js/{tests.js => i/static/js/tests.js}
R templates/{about.html => i/templates/about.html}
R templates/{audio_player.html => i/templates/audio_player.html}
R templates/{base.html => i/templates/base.html}
R templates/{dir_detail.html => i/templates/dir_detail.html}
R templates/{dir_table.html => i/templates/dir_table.html}
R templates/{directory_details.html => i/templates/directory_details.html}
R templates/{dirs.html => i/templates/dirs.html}
R templates/{error.html => i/templates/error.html}
R templates/{file_detail.html => i/templates/file_detail.html}
R templates/{index.html => i/templates/index.html}
R templates/{item_table.html => i/templates/item_table.html}
R templates/{playlist.html => i/templates/playlist.html}
R templates/{playlists.html => i/templates/playlists.html}
R templates/{plist_table.html => i/templates/plist_table.html}
R templates/{settings.html => i/templates/settings.html}
R templates/{test_js.html => i/templates/test_js.html}
R templates/{video_player.html => i/templates/video_player.html}
A setup.cfg
A setup.py
M test_stuff_is_minified.sh
A MANIFEST.in => MANIFEST.in +2 -0
@@ 0,0 1,2 @@
recursive-include mousikofidi/templates *
recursive-include mousikofidi/static *

M Makefile => Makefile +16 -7
@@ 3,21 3,30 @@ proj_dir := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
.DEFAULT_GOAL:= server

clean:
	rm -fr $(proj_dir)/__pycache__ $(proj_dir)/.pytest_cache
	rm -fr $(proj_dir)/mousikofidi/__pycache__ $(proj_dir)/.pytest_cache

install:
	pip3 install --user --upgrade $(proj_dir)

install-global:
	pip3 install --upgrade $(proj_dir)

uninstall:
	pip3 uninstall MousikoFidi

minify-css:
	yuicompressor --type css $(proj_dir)/static/css/fidi.css -o $(proj_dir)/static/css/fidi.min.css --charset utf-8
	yuicompressor --type css $(proj_dir)/static/css/fidi-nes.css -o $(proj_dir)/static/css/fidi-nes.min.css --charset utf-8
	yuicompressor --type css $(proj_dir)/mousikofidi/static/css/fidi.css -o $(proj_dir)/mousikofidi/static/css/fidi.min.css --charset utf-8
	yuicompressor --type css $(proj_dir)/mousikofidi/static/css/fidi-nes.css -o $(proj_dir)/mousikofidi/static/css/fidi-nes.min.css --charset utf-8

minify-css-quiet:
	@yuicompressor --type css $(proj_dir)/static/css/fidi.css -o $(proj_dir)/static/css/fidi.min.css --charset utf-8
	@yuicompressor --type css $(proj_dir)/static/css/fidi-nes.css -o $(proj_dir)/static/css/fidi-nes.min.css --charset utf-8
	@yuicompressor --type css $(proj_dir)/mousikofidi/static/css/fidi.css -o $(proj_dir)/mousikofidi/static/css/fidi.min.css --charset utf-8
	@yuicompressor --type css $(proj_dir)/mousikofidi/static/css/fidi-nes.css -o $(proj_dir)/mousikofidi/static/css/fidi-nes.min.css --charset utf-8

minify-js:
	yuicompressor --type js $(proj_dir)/static/js/player.js -o $(proj_dir)/static/js/player.min.js --charset utf-8
	yuicompressor --type js $(proj_dir)/mousikofidi/static/js/player.js -o $(proj_dir)/mousikofidi/static/js/player.min.js --charset utf-8

minify-js-quiet:
	@yuicompressor --type css $(proj_dir)/static/js/player.js -o $(proj_dir)/static/js/player.min.js --charset utf-8
	@yuicompressor --type css $(proj_dir)/mousikofidi/static/js/player.js -o $(proj_dir)/mousikofidi/static/js/player.min.js --charset utf-8

minify: minify-css minify-js


M example/fidi-nginx.conf => example/fidi-nginx.conf +2 -1
@@ 33,7 33,8 @@ server {

	location / {
		# This should point to the `static` directory from the code repository.
		root /opt/fidi/mousikofidi/static;
        # When pip-installed, that's found under a path like what's seen below.
		root /opt/fidi/.local/lib/python3.6/site-packages/mousikofidi/static;
		try_files $uri @fidi;
	}


A mousikofidi/__init__.py => mousikofidi/__init__.py +1 -0
@@ 0,0 1,1 @@
from .mousikofidi import *  # NOQA

R mousikofidi.py => mousikofidi/mousikofidi.py +0 -0

R static/OFL.txt => mousikofidi/static/OFL.txt +0 -0

R static/PressStart2P-Regular.ttf => mousikofidi/static/PressStart2P-Regular.ttf +0 -0

R static/css/fidi-nes.css => mousikofidi/static/css/fidi-nes.css +0 -0

R static/css/fidi-nes.min.css => mousikofidi/static/css/fidi-nes.min.css +0 -0

R static/css/fidi.css => mousikofidi/static/css/fidi.css +0 -0

R static/css/fidi.min.css => mousikofidi/static/css/fidi.min.css +0 -0

R static/css/nes/nes.css => mousikofidi/static/css/nes/nes.css +0 -0

R static/css/nes/nes.min.css => mousikofidi/static/css/nes/nes.min.css +0 -0

R static/css/normalize.css => mousikofidi/static/css/normalize.css +0 -0

R static/css/normalize.min.css => mousikofidi/static/css/normalize.min.css +0 -0

R static/css/water/dark.standalone.css => mousikofidi/static/css/water/dark.standalone.css +0 -0

R static/css/water/dark.standalone.css.map => mousikofidi/static/css/water/dark.standalone.css.map +0 -0

R static/css/water/dark.standalone.min.css => mousikofidi/static/css/water/dark.standalone.min.css +0 -0

R static/css/water/dark.standalone.min.css.map => mousikofidi/static/css/water/dark.standalone.min.css.map +0 -0

R static/css/water/light.standalone.css => mousikofidi/static/css/water/light.standalone.css +0 -0

R static/css/water/light.standalone.css.map => mousikofidi/static/css/water/light.standalone.css.map +0 -0

R static/css/water/light.standalone.min.css => mousikofidi/static/css/water/light.standalone.min.css +0 -0

R static/css/water/light.standalone.min.css.map => mousikofidi/static/css/water/light.standalone.min.css.map +0 -0

R static/fidi-orig.png => mousikofidi/static/fidi-orig.png +0 -0

R static/fidi.png => mousikofidi/static/fidi.png +0 -0

R static/gnu-cat.png => mousikofidi/static/gnu-cat.png +0 -0

R static/js/player.js => mousikofidi/static/js/player.js +0 -0

R static/js/player.min.js => mousikofidi/static/js/player.min.js +0 -0

R static/js/tests.js => mousikofidi/static/js/tests.js +0 -0

R templates/about.html => mousikofidi/templates/about.html +0 -0

R templates/audio_player.html => mousikofidi/templates/audio_player.html +0 -0

R templates/base.html => mousikofidi/templates/base.html +0 -0

R templates/dir_detail.html => mousikofidi/templates/dir_detail.html +0 -0

R templates/dir_table.html => mousikofidi/templates/dir_table.html +0 -0

R templates/directory_details.html => mousikofidi/templates/directory_details.html +0 -0

R templates/dirs.html => mousikofidi/templates/dirs.html +0 -0

R templates/error.html => mousikofidi/templates/error.html +0 -0

R templates/file_detail.html => mousikofidi/templates/file_detail.html +0 -0

R templates/index.html => mousikofidi/templates/index.html +0 -0

R templates/item_table.html => mousikofidi/templates/item_table.html +0 -0

R templates/playlist.html => mousikofidi/templates/playlist.html +0 -0

R templates/playlists.html => mousikofidi/templates/playlists.html +0 -0

R templates/plist_table.html => mousikofidi/templates/plist_table.html +0 -0

R templates/settings.html => mousikofidi/templates/settings.html +0 -0

R templates/test_js.html => mousikofidi/templates/test_js.html +0 -0

R templates/video_player.html => mousikofidi/templates/video_player.html +0 -0

A setup.cfg => setup.cfg +6 -0
@@ 0,0 1,6 @@
[egg_info]
tag_build = .dev
tag_date = 1

[aliases]
release = egg_info -Db ''

A setup.py => setup.py +11 -0
@@ 0,0 1,11 @@
from setuptools import setup

setup(
    name="MousikoFidi",
    version="0.15",
    long_description=__doc__,
    packages=["mousikofidi"],
    include_package_data=True,
    zip_safe=False,
    install_requires=["Flask==1.0.3", "mutagen==1.42.0", "uWSGI==2.0.18"],
)

M test_stuff_is_minified.sh => test_stuff_is_minified.sh +2 -2
@@ 16,7 16,7 @@
# along with this program.  If not, see <http://www.gnu.org/licenses/>.


for path in ./static/css/fidi.min.css ./static/css/fidi-nes.min.css; do
for path in ./mousikofidi/static/css/fidi.min.css ./mousikofidi/static/css/fidi-nes.min.css; do
    git diff "${path}" | grep diff >/dev/null 2>/dev/null

    result=$?


@@ 27,7 27,7 @@ for path in ./static/css/fidi.min.css ./static/css/fidi-nes.min.css; do
    fi
done

git diff ./static/js/player.min.js | grep diff >/dev/null 2>/dev/null
git diff ./mousikofidi/static/js/player.min.js | grep diff >/dev/null 2>/dev/null

result=$?