Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Enrico
burp-ui
Commits
d89f664d
Commit
d89f664d
authored
Aug 25, 2014
by
Benjamin "Ziirish" SANS
Browse files
add: VERSION file
parent
3a87a56f
Changes
2
Hide whitespace changes
Inline
Side-by-side
VERSION
0 → 100644
View file @
d89f664d
0.0.1
setup.py
View file @
d89f664d
...
...
@@ -18,23 +18,13 @@ else:
def
u
(
x
):
return
x
def
get_version
():
VERSIONFILE
=
'burpui/__init__.py'
initfile_lines
=
open
(
VERSIONFILE
,
'rt'
).
readlines
()
VSRE
=
r
"^__version__ = ['\"]([^'\"]*)['\"]"
for
line
in
initfile_lines
:
mo
=
re
.
search
(
VSRE
,
line
,
re
.
M
)
if
mo
:
return
u
(
mo
.
group
(
1
))
raise
RuntimeError
(
'Unable to find version string in %s.'
%
(
VERSIONFILE
,))
if
sys
.
argv
[
-
1
]
==
'publish'
:
os
.
system
(
'python setup.py sdist upload'
)
sys
.
exit
()
setup
(
name
=
'burp-ui'
,
version
=
get_version
(),
version
=
open
(
'VERSION'
).
read
(),
description
=
u
(
'Burp-UI is a web-ui for burp backup written in python with Flask and jQuery/Bootstrap'
),
long_description
=
open
(
'README.md'
).
read
(),
license
=
open
(
'LICENSE'
).
read
(),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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