Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
e34fe315
Commit
e34fe315
authored
Oct 22, 2012
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated setup.py to remove initial import
parent
110566c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
8 deletions
+22
-8
__init__.py
flask_admin/__init__.py
+4
-1
setup.py
setup.py
+18
-7
No files found.
flask_admin/__init__.py
View file @
e34fe315
__version__
=
'1.0.2'
__version__
=
'1.0.3'
__author__
=
'Serge S. Koval'
__email__
=
'serge.koval+github@gmail.com'
from
.base
import
expose
,
Admin
,
BaseView
,
AdminIndexView
setup.py
View file @
e34fe315
# Fix for older setuptools
import
multiprocessing
,
logging
,
os
import
flask_admin
import
re
import
os
from
setuptools
import
setup
,
find_packages
def
fpath
(
name
):
return
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
name
)
def
read
(
fname
):
return
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
fname
))
.
read
()
return
open
(
fpath
(
fname
))
.
read
()
def
desc
():
...
...
@@ -17,13 +20,21 @@ def desc():
except
IOError
:
return
info
# grep flask_admin/__init__.py since python 3.x cannot import it before using 2to3
file_text
=
read
(
fpath
(
'flask_admin/__init__.py'
))
def
grep
(
attrname
):
pattern
=
r"{0}\W*=\W*'([^']+)'"
.
format
(
attrname
)
strval
,
=
re
.
findall
(
pattern
,
file_text
)
return
strval
setup
(
name
=
'Flask-Admin'
,
version
=
flask_admin
.
__version__
,
version
=
grep
(
'__version__'
)
,
url
=
'https://github.com/mrjoes/flask-admin/'
,
license
=
'BSD'
,
author
=
'Serge S. Koval'
,
author_email
=
'serge.koval+github@gmail.com'
,
author
=
grep
(
'__author__'
)
,
author_email
=
grep
(
'__email__'
)
,
description
=
'Simple and extensible admin interface framework for Flask'
,
long_description
=
desc
(),
packages
=
find_packages
(),
...
...
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