Skip to content

setup.py #334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ def get_long_description(title):
"""Create the long_description from other files."""
ROOT = os.path.abspath(os.path.dirname(__file__))

readme = open(os.path.join(ROOT, "README.rst"), "r", "utf8").read()
with open(os.path.join(ROOT, "README.rst"), "r", "utf8") as f:
readme = f.read()
body_tag = ".. Omit badges from docs"
readme_body_start = readme.index(body_tag)
assert readme_body_start
readme_body = readme[readme_body_start + len(body_tag) :]
readme_body = readme[readme_body_start + len(body_tag):]

changelog = open(os.path.join(ROOT, "changelog.rst"), "r", "utf8").read()
with open(os.path.join(ROOT, "changelog.rst"), "r", "utf8") as f:
changelog = f.read()
old_tag = ".. Omit older changes from package"
changelog_body_end = changelog.index(old_tag)
assert changelog_body_end
Expand Down Expand Up @@ -45,6 +47,7 @@ def get_long_description(title):
setup_requires=["setuptools_scm"],
description="Makes your Django tests simple and snappy",
long_description=get_long_description("django-nose"),
long_description_content_type="text/x-rst", # Specify the content type
author="Jeff Balogh",
author_email="[email protected]",
maintainer="John Whitlock",
Expand All @@ -54,18 +57,11 @@ def get_long_description(title):
packages=find_packages(exclude=["testapp", "testapp/*"]),
include_package_data=True,
zip_safe=False,
install_requires=["nose>=1.2.1"],
install_requires=[
"nose>=1.3.7", # Updated to a more recent version of nose
"Django>=1.8,<3.0" # Specify Django compatibility
],
test_suite="testapp.runtests.runtests",
# This blows up tox runs that install django-nose into a virtualenv,
# because it causes Nose to import django_nose.runner before the Django
# settings are initialized, leading to a mess of errors. There's no reason
# we need FixtureBundlingPlugin declared as an entrypoint anyway, since you
# need to be using django-nose to find the it useful, and django-nose knows
# about it intrinsically.
# entry_points="""
# [nose.plugins.0.10]
# fixture_bundler = django_nose.fixture_bundling:FixtureBundlingPlugin
# """,
keywords="django nose django-nose",
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand Down