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
c4d800ef
Commit
c4d800ef
authored
Jun 02, 2011
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proper manifest. setup groks version from __init__
parent
fb805bbb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
MANIFEST.in
+5
-0
djangorestframework/__init__.py
+3
-1
setup.py
+9
-8
No files found.
MANIFEST.in
0 → 100644
View file @
c4d800ef
recursive-include djangorestframework/static *.ico *.txt
recursive-include djangorestframework/templates *.txt *.html
recursive-include examples .keep *.py *.txt
recursive-include docs *.py *.rst *.html *.txt
include AUTHORS LICENSE requirements.txt tox.ini
djangorestframework/__init__.py
View file @
c4d800ef
VERSION
=
"0.1.1"
__version__
=
'0.1.1'
VERSION
=
__version__
# synonym
setup.py
View file @
c4d800ef
...
@@ -3,13 +3,19 @@
...
@@ -3,13 +3,19 @@
from
setuptools
import
setup
from
setuptools
import
setup
import
os
,
re
path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'djangorestframework'
,
'__init__.py'
)
init_py
=
open
(
path
)
.
read
()
VERSION
=
re
.
match
(
"__version__ = '([^']+)'"
,
init_py
)
.
group
(
1
)
setup
(
setup
(
name
=
"djangorestframework"
,
name
=
'djangorestframework'
,
version
=
"0.1"
,
version
=
VERSION
,
url
=
'https://bitbucket.org/tomchristie/django-rest-framework/wiki/Home'
,
url
=
'https://bitbucket.org/tomchristie/django-rest-framework/wiki/Home'
,
download_url
=
'https://bitbucket.org/tomchristie/django-rest-framework/downloads'
,
download_url
=
'https://bitbucket.org/tomchristie/django-rest-framework/downloads'
,
license
=
'BSD'
,
license
=
'BSD'
,
description
=
"A lightweight REST framework for Django."
,
description
=
'A lightweight REST framework for Django.'
,
author
=
'Tom Christie'
,
author
=
'Tom Christie'
,
author_email
=
'tom@tomchristie.com'
,
author_email
=
'tom@tomchristie.com'
,
packages
=
[
'djangorestframework'
,
packages
=
[
'djangorestframework'
,
...
@@ -30,8 +36,3 @@ setup(
...
@@ -30,8 +36,3 @@ setup(
'Topic :: Internet :: WWW/HTTP'
,
'Topic :: Internet :: WWW/HTTP'
,
]
]
)
)
import
os
,
shutil
shutil
.
rmtree
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'djangorestframework.egg-info'
),
True
)
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