Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
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
OpenEdx
django-pipeline
Commits
4efbc491
Commit
4efbc491
authored
Apr 17, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move Versionning class
parent
1f218765
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
compress/versioning/__init__.py
+11
-0
compress/versioning/base.py
+0
-11
compress/versioning/git/__init__.py
+1
-1
compress/versioning/hash/__init__.py
+1
-1
compress/versioning/mtime/__init__.py
+1
-1
No files found.
compress/versioning/__init__.py
View file @
4efbc491
class
VersioningBase
(
object
):
def
get_version
(
self
,
source_files
):
raise
NotImplementedError
def
needs_update
(
self
,
output_file
,
source_files
,
version
):
raise
NotImplementedError
class
VersioningError
(
Exception
):
"""This exception is raised when version creation fails"""
pass
compress/versioning/base.py
deleted
100644 → 0
View file @
1f218765
class
VersioningBase
(
object
):
def
get_version
(
self
,
source_files
):
raise
NotImplementedError
def
needs_update
(
self
,
output_file
,
source_files
,
version
):
raise
NotImplementedError
class
VersioningError
(
Exception
):
"""This exception is raised when version creation fails"""
pass
compress/versioning/git/__init__.py
View file @
4efbc491
from
compress.conf
import
settings
from
compress.utils
import
get_output_filename
,
get_hexdigest
,
compress_source
from
compress.versioning
.base
import
VersioningBase
,
VersioningError
from
compress.versioning
import
VersioningBase
,
VersioningError
try
:
import
git
...
...
compress/versioning/hash/__init__.py
View file @
4efbc491
...
...
@@ -3,7 +3,7 @@ from hashlib import md5, sha1
from
compress.conf
import
settings
from
compress.utils
import
concat
,
get_output_filename
from
compress.versioning
.base
import
VersioningBase
from
compress.versioning
import
VersioningBase
class
HashVersioningBase
(
VersioningBase
):
...
...
compress/versioning/mtime/__init__.py
View file @
4efbc491
import
os
from
compress.utils
import
get_output_filename
,
compress_source
,
compress_root
from
compress.versioning
.base
import
VersioningBase
from
compress.versioning
import
VersioningBase
class
MTimeVersioning
(
VersioningBase
):
...
...
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