diff --git a/HISTORY.rst b/HISTORY.rst index 804f02b2a8..d0f865924d 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,8 @@ -2.1.2 (2016-05-xx) +2.1.2 (2016-05-20) ================== - Sort document languages and user profile locale language lists. GitLab issue #292. +- Fix metadata lookup for {{ users }} and {{ group }}. Fixes GitLab #290. +- Add Makefile for common development tasks 2.1.1 (2016-05-17) ================== diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000..7645214f2b --- /dev/null +++ b/Makefile @@ -0,0 +1,113 @@ +.PHONY: clean-pyc clean-build + +define BROWSER_PYSCRIPT +import sys, webbrowser +webbrowser.open(sys.argv[1]) +endef +export BROWSER_PYSCRIPT +BROWSER := python -c "$$BROWSER_PYSCRIPT" + + +help: + @echo + @echo "clean-build - Remove build artifacts." + @echo "clean-pyc - Remove Python artifacts." + @echo "clean - Remove Python and build artifacts." + + @echo "test MODULE= - Run tests for a single App, module or test class." + @echo "test-all - Run all tests." + @echo "docs_serve - Run the livehtml documentation generator." + + @echo "translations_make - Refresh all translation files." + @echo "translations_compile - Compile all translation files." + @echo "translations_push - Upload all translation files to Transifex." + @echo "translations_pull - Download all translation files from Transifex." + + @echo "requirements_dev - Install development requirements." + @echo "requirements_docs - Install documentation requirements." + @echo "requirements_testing - Install testing requirements." + + @echo "sdist - Build the source distribution package." + @echo "wheel - Build the wheel distribution package." + @echo "release - Package (sdist and wheel) and upload a release." + + @echo "runserver - Run the development server." + + +# Cleaning + +clean: clean-build clean-pyc + +clean-build: + rm -fr build/ + rm -fr dist/ + rm -fr *.egg-info + +clean-pyc: + find . -name '*.pyc' -exec rm -f {} + + find . -name '*.pyo' -exec rm -f {} + + find . -name '*~' -exec rm -f {} + + + +# Testing + +test: + ./manage.py test $(MODULE) --settings=mayan.settings.testing --nomigrations + +test-all: + ./manage.py runtests --settings=mayan.settings.testing --nomigrations + + +# Documentation + +docs_serve: + $(BROWSER) http://127.0.0.1:8000 + cd docs;make livehtml + + +# Translations + +translations_make: + contrib/scripts/process_messages.py -m + +translations_compile: + contrib/scripts/process_messages.py -c + +translations_push: + tx push -s + +translations_pull: + tx pull + + +# Requirements + +requirements_dev: + pip install -r requirements/development.txt + +requirements_docs: + pip install -r requirements/documentation.txt + +requirements_testing: + pip install -r requirements/testing.txt + + +# Releases + +release: clean + python setup.py sdist bdist_wheel upload + +sdist: clean + python setup.py sdist + ls -l dist + +wheel: clean + python setup.py bdist_wheel + ls -l dist + + +# Dev server + +runserver: + $(BROWSER) http://127.0.0.1:8000 + ./manage.py runserver diff --git a/docs/releases/2.1.2.rst b/docs/releases/2.1.2.rst new file mode 100644 index 0000000000..1f9aeda0d9 --- /dev/null +++ b/docs/releases/2.1.2.rst @@ -0,0 +1,86 @@ +=============================== +Mayan EDMS v2.1.2 release notes +=============================== + +Released: May 20, 2016 + +What's new +========== + +This is a bugfix release and all users are encouraged to upgrade. + +Language list sorting +--------------------- +The document language list and the user locale profile language list are now +sorted to make it easier to find the desired language. + +Fixed the metadata lookup options: {{ users }} and {{ groups }} +--------------------------------------------------------------- +When configuring metadata type lookup options the {{ users }} and {{ groups }} +special options can be used to display a list of users or a list of groups. +These options where producing a list in the wrong format and were updated. + + +Other changes +------------- +- Add Makefile for common development tasks + + +Removals +-------- +* None + +Upgrading from a previous version +--------------------------------- + +Using PIP +~~~~~~~~~ + +Type in the console:: + + $ pip install -U mayan-edms + +the requirements will also be updated automatically. + +Using Git +~~~~~~~~~ + +If you installed Mayan EDMS by cloning the Git repository issue the commands:: + + $ git reset --hard HEAD + $ git pull + +otherwise download the compressed archived and uncompress it overriding the +existing installation. + +Next upgrade/add the new requirements:: + + $ pip install --upgrade -r requirements.txt + +Common steps +~~~~~~~~~~~~ + +Migrate existing database schema with:: + + $ mayan-edms.py performupgrade + +Add new static media:: + + $ mayan-edms.py collectstatic --noinput + +The upgrade procedure is now complete. + + +Backward incompatible changes +============================= + +* None + +Bugs fixed or issues closed +=========================== + +* `GitLab issue #290 `_ Unicode characters not supported as metadata values +* `GitLab issue #292 `_ Sort languages by name not by abbreviation + + +.. _PyPI: https://pypi.python.org/pypi/mayan-edms/ diff --git a/docs/releases/index.rst b/docs/releases/index.rst index ef8f792541..8af72af3ff 100644 --- a/docs/releases/index.rst +++ b/docs/releases/index.rst @@ -22,6 +22,7 @@ versions of the documentation contain the release notes for any later releases. .. toctree:: :maxdepth: 1 + 2.1.2 2.1.1 2.1 2.0.2