Skip to content

Commit

Permalink
Fixing README so Pypi is happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobenolt committed Dec 10, 2019
1 parent 6d5bab7 commit a1ae0cc
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 43 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include setup.py README.rst MANIFEST.in LICENSE
include setup.py README.md MANIFEST.in LICENSE
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# django-sudo

[![](https://travis-ci.org/mattrobenolt/django-sudo.svg?branch=master)](https://travis-ci.org/mattrobenolt/django-sudo) [![](https://coveralls.io/repos/mattrobenolt/django-sudo/badge.png?branch=master)](https://coveralls.io/r/mattrobenolt/django-sudo?branch=master)

> Sudo mode is an extra layer of security for your most sensitive pages.<br>
> This is an implementation of GitHub's [Sudo Mode](https://github.com/blog/1513-introducing-github-sudo-mode) for [Django](https://www.djangoproject.com/).
## What is this for?

`django-sudo` provides an extra layer of security for after a user is already logged in. Views can
be decorated with `@sudo_required`, and then a user
must re-enter their password to view that page. After verifying their password, that user has
elevated permissions for the duration of `SUDO_COOKIE_AGE`. This duration is independent of the
normal session duration allowing short elevated permission durations, but retain long user sessions.

## Installation

```console
$ pip install django-sudo
```

## Compatibility

* Django 1.9-1.10
* Python 2.7, 3.6-3.7

## Resources

* [Documentation](https://django-sudo.readthedocs.io/)
* [Security](https://django-sudo.readthedocs.io/en/latest/security/index.html)
* [Changelog](https://django-sudo.readthedocs.io/en/latest/changelog/index.html)
41 changes: 0 additions & 41 deletions README.rst

This file was deleted.

3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

install_requires = []

with open('README.rst') as f:
with open('README.md') as f:
long_description = f.read()


Expand All @@ -23,6 +23,7 @@
description='Extra security for your sensitive pages',
license='BSD',
long_description=long_description,
long_description_content_type='text/markdown',
packages=find_packages(exclude=['tests']),
install_requires=install_requires,
zip_safe=True,
Expand Down
1 change: 1 addition & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ def release():
run('git push --tags')

run('python setup.py sdist bdist_wheel')
run('twine check dist/*')
run('twine upload -s dist/*')

0 comments on commit a1ae0cc

Please sign in to comment.