Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
comment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
cubicweb
cubes
comment
Commits
e691ed317dda
Commit
e691ed317dda
authored
14 years ago
by
Sylvain Thénault
Browse files
Options
Downloads
Patches
Plain Diff
packaging fixes
parent
69db5f062634
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
__pkginfo__.py
+22
-20
22 additions, 20 deletions
__pkginfo__.py
with
22 additions
and
20 deletions
__pkginfo__.py
+
22
−
20
View file @
e691ed31
...
...
@@ -14,5 +14,5 @@
web
=
'
http://www.cubicweb.org/project/%s
'
%
distname
description
=
"
commenting system for the CubicWeb framework
"
short_desc
=
description
# XXX cw < 3.8 bw compat
...
...
@@ -18,5 +18,4 @@
__depends__
=
{
'
cubicweb
'
:
'
>= 3.6.0
'
}
classifiers
=
[
'
Environment :: Web Environment
'
,
'
Framework :: CubicWeb
'
,
...
...
@@ -24,4 +23,5 @@
'
Programming Language :: JavaScript
'
,
]
__depends__
=
{
'
cubicweb
'
:
'
>= 3.6.0
'
}
...
...
@@ -27,4 +27,3 @@
from
os
import
listdir
from
os.path
import
join
# package ###
...
...
@@ -30,3 +29,7 @@
CUBES_DIR
=
join
(
'
share
'
,
'
cubicweb
'
,
'
cubes
'
)
from
os
import
listdir
as
_listdir
from
os.path
import
join
,
isdir
,
exists
from
glob
import
glob
THIS_CUBE_DIR
=
join
(
'
share
'
,
'
cubicweb
'
,
'
cubes
'
,
modname
)
...
...
@@ -32,16 +35,15 @@
try
:
data_files
=
[
[
join
(
CUBES_DIR
,
'
comment
'
),
[
fname
for
fname
in
listdir
(
'
.
'
)
if
fname
.
endswith
(
'
.py
'
)
and
fname
!=
'
setup.py
'
]],
[
join
(
CUBES_DIR
,
'
comment
'
,
'
data
'
),
[
join
(
'
data
'
,
fname
)
for
fname
in
listdir
(
'
data
'
)]],
[
join
(
CUBES_DIR
,
'
comment
'
,
'
i18n
'
),
[
join
(
'
i18n
'
,
fname
)
for
fname
in
listdir
(
'
i18n
'
)]],
[
join
(
CUBES_DIR
,
'
comment
'
,
'
migration
'
),
[
join
(
'
migration
'
,
fname
)
for
fname
in
listdir
(
'
migration
'
)]],
]
except
OSError
:
# we are in an installed directory
pass
def
listdir
(
dirpath
):
return
[
join
(
dirpath
,
fname
)
for
fname
in
_listdir
(
dirpath
)
if
fname
[
0
]
!=
'
.
'
and
not
fname
.
endswith
(
'
.pyc
'
)
and
not
fname
.
endswith
(
'
~
'
)
and
not
isdir
(
join
(
dirpath
,
fname
))]
data_files
=
[
# common files
[
THIS_CUBE_DIR
,
[
fname
for
fname
in
glob
(
'
*.py
'
)
if
fname
!=
'
setup.py
'
]],
]
# check for possible extended cube layout
for
dname
in
(
'
entities
'
,
'
views
'
,
'
sobjects
'
,
'
hooks
'
,
'
schema
'
,
'
data
'
,
'
i18n
'
,
'
migration
'
):
if
isdir
(
dname
):
data_files
.
append
([
join
(
THIS_CUBE_DIR
,
dname
),
listdir
(
dname
)])
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