Skip to content

Commit 3d9ecdc

Browse files
authored
Merge pull request #79 from benjaoming/release1.1
Simplify requirements structure
2 parents b85729f + 53a79a1 commit 3d9ecdc

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

django_nyt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
_disable_notifications = False
22

3-
__version__ = "1.1b2"
3+
__version__ = "1.1"
44

55
default_app_config = "django_nyt.apps.DjangoNytConfig"
66

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
import os
1+
from setuptools import find_packages
2+
from setuptools import setup
23

34
from django_nyt import __version__
4-
from setuptools import find_packages, setup
5-
6-
7-
def get_path(fname):
8-
return os.path.join(os.path.dirname(os.path.abspath(__file__)), fname)
9-
10-
def read(fname):
11-
return open(get_path(fname)).read()
125

136

147
packages = find_packages()
@@ -24,7 +17,7 @@ def read(fname):
2417
keywords=["django", "notification" "alerts"],
2518
packages=find_packages(),
2619
zip_safe=False,
27-
install_requires=read('requirements.txt').split("\n"),
20+
install_requires=["django>=1.11,<2.1"],
2821
classifiers=[
2922
'Development Status :: 5 - Production/Stable',
3023
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',

test-project/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
-r ../requirements.txt
21
channels

0 commit comments

Comments
 (0)