Skip to content

Commit

Permalink
Merge branch 'release/2.2.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Nov 14, 2020
2 parents e476e26 + c103d41 commit e382687
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 17 deletions.
10 changes: 10 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ History

.. towncrier release notes start
2.2.2 (2020-05-15)
=======================

Bugfixes
--------

- Fix pytest args splitting (#155)
- Fix runserver autoreload with channels 2.4 (#157)


2.2.1 (2020-04-23)
==================

Expand Down
2 changes: 1 addition & 1 deletion app_helper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals

__version__ = "2.2.1"
__version__ = "2.2.2"
__author__ = "Iacopo Spalletti <[email protected]>"
__all__ = ["runner"]

Expand Down
3 changes: 1 addition & 2 deletions app_helper/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,9 @@ def static_analisys(application):

def server(bind="127.0.0.1", port=8000, migrate_cmd=False, verbose=1): # pragma: no cover
try:
from channels.log import setup_logger
from channels.management.commands import runserver

logger = setup_logger("django.channels", 1)
logger = None
use_channels = True
except ImportError:
from django.contrib.staticfiles.management.commands import runserver
Expand Down
3 changes: 2 additions & 1 deletion app_helper/pytest_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import absolute_import, print_function, unicode_literals

import os
import shlex


class PytestTestRunner(object):
Expand All @@ -19,7 +20,7 @@ def run_tests(self, test_labels):
"""
import pytest

argv = os.environ.get("PYTEST_ARGS", "").split(" ")
argv = shlex.split(os.environ.get("PYTEST_ARGS", ""))
if self.verbosity == 0:
argv.append("--quiet")
if self.verbosity == 2:
Expand Down
16 changes: 8 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[bumpversion]
current_version = 2.2.1
current_version = 2.2.2
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.?)(?P<release>[a-z]*)(?P<relver>\d*)
serialize =
serialize =
{major}.{minor}.{patch}.{release}{relver}
{major}.{minor}.{patch}
commit = True
Expand All @@ -12,7 +12,7 @@ message = Release {new_version}

[bumpversion:part:release]
optional_value = gamma
values =
values =
dev
a
b
Expand All @@ -25,7 +25,7 @@ values =
name = django-app-helper
version = attr: app_helper.__version__
url = https://github.com/nephila/django-app-helper
project_urls =
project_urls =
Documentation = https://django-app-helper.readthedocs.io/
author = Iacopo Spalletti
author_email = [email protected]
Expand All @@ -34,7 +34,7 @@ long_description = file: README.rst, HISTORY.rst
long_description_content_type = text/x-rst
license = GPLv2+
license_file = LICENSE
classifiers =
classifiers =
License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
Development Status :: 5 - Production/Stable
Framework :: Django
Expand All @@ -52,12 +52,12 @@ classifiers =

[options]
include_package_data = True
install_requires =
install_requires =
dj-database-url
docopt
mock;python_version<"3.3"
six
setup_requires =
setup_requires =
setuptools
packages = find:
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
Expand All @@ -69,7 +69,7 @@ zip_safe = False
app_helper = *.html *.png *.gif *js *jpg *jpeg *svg *py *mo *po

[options.entry_points]
console_scripts =
console_scripts =
django-app-helper = app_helper.main:main

[options.extras_require]
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def tag_dev(c):
def docbuild(c):
""" Build documentation. """
os.chdir("docs")
c.run(f"python -msphinx -W -b html -d _build/doctrees . _build/html")
c.run("python -msphinx -W -b html -d _build/doctrees . _build/html")


@task(docbuild)
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ use_parentheses = True

[check-manifest]
ignore =
.[a-z]*
.*
*.ini
*.toml
*.txt
*.yml
app_helper/test_utils/AUTHORS
app_helper/test_utils/example1/locale*
changes*
docs*
app_helper/test_utils/example1/locale/**
changes/**
docs/**
tasks.py

0 comments on commit e382687

Please sign in to comment.