Skip to content

Commit ecf4e7b

Browse files
Include tests and examples in source package, but don't install them
1 parent 2e80638 commit ecf4e7b

File tree

8 files changed

+8
-5
lines changed

8 files changed

+8
-5
lines changed

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
include README.md LICENSE
22
recursive-include graphene_django/templates *
33
recursive-include graphene_django/static *
4+
5+
include examples/cookbook/cookbook/ingredients/fixtures/ingredients.json
6+
include examples/cookbook-plain/cookbook/ingredients/fixtures/ingredients.json

examples/__init__.py

Whitespace-only changes.

examples/cookbook-plain/__init__.py

Whitespace-only changes.

examples/cookbook/__init__.py

Whitespace-only changes.

django_test_settings.py renamed to examples/django_test_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'graphene_django',
1111
'graphene_django.rest_framework',
1212
'graphene_django.tests',
13-
'starwars',
13+
'examples.starwars',
1414
]
1515

1616
DATABASES = {

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[pytest]
2-
DJANGO_SETTINGS_MODULE = django_test_settings
2+
DJANGO_SETTINGS_MODULE = examples.django_test_settings

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"pytest>=3.6.3",
1818
"pytest-cov",
1919
"coveralls",
20-
"mock",
20+
"mock>=4.0",
2121
"pytz",
2222
"django-filter<2;python_version<'3'",
2323
"django-filter>=2;python_version>='3'",
@@ -58,7 +58,7 @@
5858
"Framework :: Django :: 3.0",
5959
],
6060
keywords="api graphql protocol rest relay graphene",
61-
packages=find_packages(exclude=["tests"]),
61+
packages=find_packages(exclude=["tests", "examples", "examples.*"]),
6262
install_requires=[
6363
"six>=1.10.0",
6464
"graphene>=2.1.7,<3",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DJANGO =
2525
passenv = *
2626
usedevelop = True
2727
setenv =
28-
DJANGO_SETTINGS_MODULE=django_test_settings
28+
DJANGO_SETTINGS_MODULE=examples.django_test_settings
2929
deps =
3030
-e.[test]
3131
psycopg2-binary

0 commit comments

Comments
 (0)