From 944c6198b38cc4b46a3f40f36a8163d026c3b489 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Sun, 29 Jul 2018 17:34:29 +0200 Subject: [PATCH 1/2] Simplify requirements structure --- requirements.txt | 1 - setup.py | 13 +++---------- test-project/requirements.txt | 1 - 3 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 66e22e7a..00000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -django>=1.11,<2.1 diff --git a/setup.py b/setup.py index 4b4a435a..72e4e935 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,7 @@ -import os +from setuptools import find_packages +from setuptools import setup from django_nyt import __version__ -from setuptools import find_packages, setup - - -def get_path(fname): - return os.path.join(os.path.dirname(os.path.abspath(__file__)), fname) - -def read(fname): - return open(get_path(fname)).read() packages = find_packages() @@ -24,7 +17,7 @@ def read(fname): keywords=["django", "notification" "alerts"], packages=find_packages(), zip_safe=False, - install_requires=read('requirements.txt').split("\n"), + install_requires=["django>=1.11,<2.1"], classifiers=[ 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', diff --git a/test-project/requirements.txt b/test-project/requirements.txt index 99daf26c..4c031442 100644 --- a/test-project/requirements.txt +++ b/test-project/requirements.txt @@ -1,2 +1 @@ --r ../requirements.txt channels From 53a79a15e7de62d30beedf90bef23427d554e469 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Sun, 29 Jul 2018 17:56:30 +0200 Subject: [PATCH 2/2] Bump to 1.1 --- django_nyt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_nyt/__init__.py b/django_nyt/__init__.py index 8efa8ea9..9d90e77f 100644 --- a/django_nyt/__init__.py +++ b/django_nyt/__init__.py @@ -1,6 +1,6 @@ _disable_notifications = False -__version__ = "1.1b2" +__version__ = "1.1" default_app_config = "django_nyt.apps.DjangoNytConfig"