Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
awstats
Commits
65b21e042ed3
Commit
803b32b7
authored
Jul 20, 2017
by
Adrien Di Mascio
Browse files
[pkg] new-style cube packaging
parent
6401affb0d06
Changes
28
Hide whitespace changes
Inline
Side-by-side
MANIFEST.in
View file @
65b21e04
include
*
.py
include
*/*.py
recursive-include data *.gif *.png *.ico *.css *.js
recursive-include i18n *.po
recursive-
include
wdoc *
include
setup
.py
include
README
recursive-include
cubicweb_awstats/
data *.gif *.png *.ico *.css *.js
recursive-include
cubicweb_awstats/
i18n *.po
include
tox.ini
cubicweb-awstats.spec
View file @
65b21e04
...
...
@@ -35,7 +35,7 @@ find . -name '*.py' -type f -print0 | xargs -0 sed -i '1,3s;^#!.*python.*$;#! /
%endif
%install
NO_SETUPTOOLS=1
%{__python} setup.py --quiet install --no-compile --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
%{__python} setup.py --quiet install --no-compile --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
# remove generated .egg-info file
rm -rf $RPM_BUILD_ROOT/usr/lib/python*
...
...
@@ -45,4 +45,3 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_prefix}/share/cubicweb*
__init__.py
→
cubicweb_awstats/
__init__.py
View file @
65b21e04
File moved
__pkginfo__.py
→
cubicweb_awstats/
__pkginfo__.py
View file @
65b21e04
...
...
@@ -4,17 +4,20 @@
modname
=
'awstats'
distname
=
'cubicweb-awstats'
numversion
=
(
0
,
2
,
0
)
numversion
=
(
0
,
3
,
0
)
version
=
'.'
.
join
(
str
(
num
)
for
num
in
numversion
)
license
=
'LGPL'
author
=
'LOGILAB S.A. (Paris, FRANCE)'
author_email
=
'contact@logilab.fr'
description
=
'cubicweb integrated awstats frontend'
web
=
'http://www.cubicweb.org/project/%s'
%
distname
web
=
'http
s
://www.cubicweb.org/project/%s'
%
distname
__depends__
=
{
'cubicweb'
:
'>= 3.20.0'
,}
__recommends__
=
{
'cubicweb-raphael'
:
None
,}
__depends__
=
{
'cubicweb'
:
'>= 3.24.0'
,
'six'
:
None
,
}
__recommends__
=
{
'cubicweb-raphael'
:
None
}
classifiers
=
[
'Environment :: Web Environment'
,
...
...
@@ -22,27 +25,3 @@ classifiers = [
'Programming Language :: Python'
,
'Programming Language :: JavaScript'
,
]
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
)
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'
,
'wdoc'
,
'i18n'
,
'migration'
):
if
isdir
(
dname
):
data_files
.
append
([
join
(
THIS_CUBE_DIR
,
dname
),
listdir
(
dname
)])
# Note: here, you'll need to add subdirectories if you want
# them to be included in the debian package
ccplugin.py
→
cubicweb_awstats/
ccplugin.py
View file @
65b21e04
File moved
data/cubes.awstats.js
→
cubicweb_awstats/
data/cubes.awstats.js
View file @
65b21e04
File moved
entities.py
→
cubicweb_awstats/
entities.py
View file @
65b21e04
File moved
hooks.py
→
cubicweb_awstats/
hooks.py
View file @
65b21e04
File moved
i18n/de.po
→
cubicweb_awstats/
i18n/de.po
View file @
65b21e04
File moved
i18n/en.po
→
cubicweb_awstats/
i18n/en.po
View file @
65b21e04
File moved
i18n/es.po
→
cubicweb_awstats/
i18n/es.po
View file @
65b21e04
File moved
i18n/fr.po
→
cubicweb_awstats/
i18n/fr.po
View file @
65b21e04
File moved
migration/postcreate.py
→
cubicweb_awstats/
migration/postcreate.py
View file @
65b21e04
File moved
schema.py
→
cubicweb_awstats/
schema.py
View file @
65b21e04
File moved
site_cubicweb.py
→
cubicweb_awstats/
site_cubicweb.py
View file @
65b21e04
File moved
utils.py
→
cubicweb_awstats/
utils.py
View file @
65b21e04
File moved
views/__init__.py
→
cubicweb_awstats/
views/__init__.py
View file @
65b21e04
File moved
views/actions.py
→
cubicweb_awstats/
views/actions.py
View file @
65b21e04
File moved
views/primary.py
→
cubicweb_awstats/
views/primary.py
View file @
65b21e04
File moved
views/startup.py
→
cubicweb_awstats/
views/startup.py
View file @
65b21e04
...
...
@@ -30,12 +30,13 @@ try:
from
cubicweb
import
_
except
ImportError
:
_
=
unicode
from
cubicweb.view
import
StartupView
from
cubicweb.web.views
import
forms
from
cubicweb.web.formfields
import
StringField
,
DateField
from
cubicweb.web
import
formwidgets
as
fwdgs
,
httpcache
from
cub
es.
awstats.utils
import
SECTIONSPEC
,
SECTIONLABELS
,
\
from
cub
icweb_
awstats.utils
import
SECTIONSPEC
,
SECTIONLABELS
,
\
extract_stats_dict
,
ORIGIN_LABELS
def
extract_available_time_periods
(
form
,
**
attrs
):
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
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