Skip to content

Commit

Permalink
Merge pull request #14 from rgs258/release/0.0.5
Browse files Browse the repository at this point in the history
Changes for 0.0.5 release - setuptools_scm, README updates.
  • Loading branch information
FlipperPA authored Mar 31, 2022
2 parents 7b1f101 + 45a1933 commit d3fca56
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 71 deletions.
11 changes: 0 additions & 11 deletions AUTHORS.rst

This file was deleted.

28 changes: 0 additions & 28 deletions CHANGELOG.rst

This file was deleted.

5 changes: 0 additions & 5 deletions MANIFEST.in

This file was deleted.

44 changes: 21 additions & 23 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,6 @@ This package aims to make it easy to serve .md files on Django sites.
.. note::
* This package needs tests, and to have Travis and Coveralls properly configured.

Requirements
------------

Tested with:

**The Tested With section describes aspirational goals.**

* Python: 3.5, 3.6, 3.7, 3.8
* Django: 2.2, 3.0


.. note::
* Django 2.2 requires SQLite 3.8.3
* Django 2.2 supports Python 3.5, 3.6, and 3.7.
* Django 3.0 supports Python 3.6, 3.7 and 3.8.

We highly recommend and only officially support the latest release of each series.


Installation
------------

Expand Down Expand Up @@ -80,9 +61,9 @@ from ``markdown_view.views`` to serve a .md file
StaffMarkdownView.as_view(file_name='my_app/README.md'),
name="readme"),
Settings
~~~~~~~~

All settings are optional. See `<markdown_view/constants.py>`_ for the defaults.

* `MARKDOWN_VIEW_BASE_DIR` and `BASE_DIR`
Expand Down Expand Up @@ -183,13 +164,18 @@ Implementation

At a high level, `MarkdownView` will:

#. Use a template loader to locate .md given as `file_name`
#. Use a template loader to locate `.md` given as `file_name`

#. Render as a template, the contents of the .md file prepended with
`{{% load static %}}`, into several context variables
#. Render as a template, the contents of the `.md` file prepended with
`{% load static %}`, into several context variables

#. Serve the `MARKDOWN_VIEW_TEMPLATE` with the context variables

Release Notes and Contributors
------------------------------

* `Release notes <https://github.com/rgs258/django-markdown-view/releases>`_
* `Our wonderful contributors <https://github.com/rgs258/django-markdown-view/graphs/contributors>`_

Contributing
------------
Expand All @@ -204,3 +190,15 @@ We use `Travis`_ coupled with `Coveralls`_ as continious integration tools.
.. _`pull requests`: https://github.com/rgs258/django-markdown-view/pulls
.. _Travis: https://travis-ci.org/github/rgs258/django-markdown-view
.. _Coveralls: https://coveralls.io/github/rgs258/django-markdown-view

Requirements
------------

We aspire to support the currently supported versions of Django.

**The Tested With section describes aspirational goals.**

Tested with:

* Python: 3.6, 3.7, 3.8, 3.9, 3.10
* Django: 2.2, 3.2, 4.0
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
from setuptools import setup, find_packages


long_desc = open('README.rst', 'rb').read().decode('utf-8') + '\n\n' + \
open('AUTHORS.rst', 'rb').read().decode('utf-8') + '\n\n' + \
open('CHANGELOG.rst', 'rb').read().decode('utf-8')
long_desc = open('README.rst', 'rb').read().decode('utf-8')

setup(
name='django-markdown-view',
version='0.0.5',
description='Serve .md pages as Django views.',
long_description=long_desc,
author='Ryan J. Sullivan',
Expand All @@ -24,6 +21,8 @@
],
keywords=['django', 'markdown', 'markdown view', 'md'],
include_package_data=True,
setup_requires=["setuptools_scm"],
use_scm_version=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django :: 2',
Expand Down

0 comments on commit d3fca56

Please sign in to comment.