From bd2db321cb81e2cbdab70d29e1514dd0f1006b8f Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Fri, 30 Jul 2021 16:10:20 -0700 Subject: [PATCH] changed sphinx thumbnail css --- Makefile | 17 +++++++++++++++-- docs/_static/css/sphinx_gallery.css | 4 ++-- version.py | 4 ++++ 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 version.py diff --git a/Makefile b/Makefile index 4f1fa098..a19fec35 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,19 @@ python=python pip=pip tests=./test version:=$(shell $(python) version.py) -sdist_name:=PlotMAPQ-$(version).tar.gz +sdist_name:=cassiopeia-$(version).tar.gz + +develop: + $(pip) install -e . + +clean_develop: + - $(pip) uninstall -y cassiopeia + - rm -rf *.egg-info + +clean_sdist: + - rm -rf dist + +clean: clean_develop clean_pypi install: - $(python) setup.py build @@ -17,6 +29,7 @@ check_build_reqs: test: check_build_reqs $(python) -m pytest -vv $(tests) + pypi: clean clean_sdist set -x \ && $(python) setup.py sdist bdist_wheel \ @@ -24,4 +37,4 @@ pypi: clean clean_sdist && twine upload --repository-url https://test.pypi.org/legacy/ dist/* clean_pypi: - - rm -rf build/ \ No newline at end of file + - rm -rf build/ diff --git a/docs/_static/css/sphinx_gallery.css b/docs/_static/css/sphinx_gallery.css index 25182134..665dcd9f 100644 --- a/docs/_static/css/sphinx_gallery.css +++ b/docs/_static/css/sphinx_gallery.css @@ -1,10 +1,10 @@ -.sphx-glr-thumbcontainer { +/* .sphx-glr-thumbcontainer { background: none !important; border: 1px solid #003262!important; text-align: center !important; min-height: 220px !important; } -/* .sphx-glr-thumbcontainer a.internal:hover { +.sphx-glr-thumbcontainer a.internal:hover { color: #003262!important; } p.sphx-glr-timing { diff --git a/version.py b/version.py new file mode 100644 index 00000000..293caa22 --- /dev/null +++ b/version.py @@ -0,0 +1,4 @@ +version = '2.0.0' + +if __name__ == '__main__': + print(version) \ No newline at end of file