Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
72ecd32c
Commit
72ecd32c
authored
Feb 12, 2016
by
Xavier Ordoquy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pandoc to generate a nice PyPI information page.
parent
aeda2ade
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
requirements/requirements-packaging.txt
+3
-0
setup.py
+12
-0
No files found.
requirements/requirements-packaging.txt
View file @
72ecd32c
...
@@ -6,3 +6,6 @@ twine==1.4.0
...
@@ -6,3 +6,6 @@ twine==1.4.0
# Transifex client for managing translation resources.
# Transifex client for managing translation resources.
transifex-client==0.11
transifex-client==0.11
# Pandoc to have a nice pypi page
pypandoc
setup.py
View file @
72ecd32c
...
@@ -7,6 +7,17 @@ import sys
...
@@ -7,6 +7,17 @@ import sys
from
setuptools
import
setup
from
setuptools
import
setup
try
:
from
pypandoc
import
convert
def
read_md
(
f
):
return
convert
(
f
,
'rst'
)
except
ImportError
:
print
(
"warning: pypandoc module not found, could not convert Markdown to RST"
)
def
read_md
(
f
):
return
open
(
f
,
'r'
)
.
read
()
def
get_version
(
package
):
def
get_version
(
package
):
"""
"""
...
@@ -68,6 +79,7 @@ setup(
...
@@ -68,6 +79,7 @@ setup(
url
=
'http://www.django-rest-framework.org'
,
url
=
'http://www.django-rest-framework.org'
,
license
=
'BSD'
,
license
=
'BSD'
,
description
=
'Web APIs for Django, made easy.'
,
description
=
'Web APIs for Django, made easy.'
,
long_description
=
read_md
(
'README.md'
),
author
=
'Tom Christie'
,
author
=
'Tom Christie'
,
author_email
=
'tom@tomchristie.com'
,
# SEE NOTE BELOW (*)
author_email
=
'tom@tomchristie.com'
,
# SEE NOTE BELOW (*)
packages
=
get_packages
(
'rest_framework'
),
packages
=
get_packages
(
'rest_framework'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment