Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pulsar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NDIP
Pulsar
Commits
60bf962f
Commit
60bf962f
authored
8 years ago
by
John Chilton
Browse files
Options
Downloads
Patches
Plain Diff
Remove support for Python 2.6.
parent
d5dcc5b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.travis.yml
+0
-1
0 additions, 1 deletion
.travis.yml
dev-requirements.txt
+0
-3
0 additions, 3 deletions
dev-requirements.txt
pulsar/main.py
+2
-25
2 additions, 25 deletions
pulsar/main.py
test/test_utils.py
+1
-4
1 addition, 4 deletions
test/test_utils.py
tox.ini
+1
-1
1 addition, 1 deletion
tox.ini
with
4 additions
and
34 deletions
.travis.yml
+
0
−
1
View file @
60bf962f
...
...
@@ -7,7 +7,6 @@ env:
-
TOX_ENV=py34-lint
-
TOX_ENV=py27-lint-readme
-
TOX_ENV=lint-docs
-
TOX_ENV=py26 SETUP=true
-
TOX_ENV=py27 SETUP=true
-
TOX_ENV=py34 SETUP=true
-
TOX_ENV=py34-unit SETUP=true
...
...
This diff is collapsed.
Click to expand it.
dev-requirements.txt
+
0
−
3
View file @
60bf962f
...
...
@@ -10,9 +10,6 @@ coverage
# For dev
sphinx
==1.2
# For Python 2.6 tests
unittest2
# Used for code checking.
pyflakes
flake8
...
...
This diff is collapsed.
Click to expand it.
pulsar/main.py
+
2
−
25
View file @
60bf962f
...
...
@@ -36,31 +36,8 @@ try:
except
ImportError
:
Daemonize
=
None
# Vaguely Python 2.6 compatibile ArgumentParser import
try
:
from
argparse
import
ArgumentParser
from
argparse
import
RawDescriptionHelpFormatter
except
ImportError
:
from
optparse
import
OptionParser
class
ArgumentParser
(
OptionParser
):
def
__init__
(
self
,
**
kwargs
):
if
"
formatter_class
"
in
kwargs
:
del
kwargs
[
"
formatter_class
"
]
self
.
delegate
=
OptionParser
(
**
kwargs
)
def
add_argument
(
self
,
*
args
,
**
kwargs
):
if
"
required
"
in
kwargs
:
del
kwargs
[
"
required
"
]
return
self
.
delegate
.
add_option
(
*
args
,
**
kwargs
)
def
parse_args
(
self
,
args
=
None
):
(
options
,
args
)
=
self
.
delegate
.
parse_args
(
args
)
return
options
RawDescriptionHelpFormatter
=
None
from
argparse
import
ArgumentParser
from
argparse
import
RawDescriptionHelpFormatter
log
=
logging
.
getLogger
(
__name__
)
...
...
This diff is collapsed.
Click to expand it.
test/test_utils.py
+
1
−
4
View file @
60bf962f
...
...
@@ -29,10 +29,7 @@ from pulsar.tools import ToolBox
from
pulsar.managers.base
import
JobDirectory
from
pulsar.web.framework
import
file_response
if
version_info
<
(
2
,
7
):
from
unittest2
import
TestCase
,
skip
else
:
from
unittest
import
TestCase
,
skip
from
unittest
import
TestCase
,
skip
try
:
from
nose.tools
import
nottest
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
1
−
1
View file @
60bf962f
[tox]
envlist
=
py27-lint, py27-lint-readme, lint-docs, py34-lint,
py26,
py27, py34, py34-unit
envlist
=
py27-lint, py27-lint-readme, lint-docs, py34-lint, py27, py34, py34-unit
toxworkdir
=
{env:TOX_WORK_DIR:.tox}
[testenv]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment