equal
deleted
inserted
replaced
17 # You should have received a copy of the GNU Lesser General Public License along |
17 # You should have received a copy of the GNU Lesser General Public License along |
18 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
19 """cubicweb global packaging information for the cubicweb knowledge management |
19 """cubicweb global packaging information for the cubicweb knowledge management |
20 software |
20 software |
21 """ |
21 """ |
22 from os import listdir |
|
23 from os.path import join |
|
24 |
|
25 |
22 |
26 modname = distname = "cubicweb" |
23 modname = distname = "cubicweb" |
27 |
24 |
28 numversion = (3, 26, 0) |
25 numversion = (3, 26, 0) |
29 version = '.'.join(str(num) for num in numversion) |
26 version = '.'.join(str(num) for num in numversion) |
39 'Framework :: CubicWeb', |
36 'Framework :: CubicWeb', |
40 'Programming Language :: Python', |
37 'Programming Language :: Python', |
41 'Programming Language :: JavaScript', |
38 'Programming Language :: JavaScript', |
42 ] |
39 ] |
43 |
40 |
44 _server_migration_dir = join(modname, 'misc', 'migration') |
|
45 |
|
46 # data files that shall be copied into the main package directory |
41 # data files that shall be copied into the main package directory |
47 package_data = { |
42 package_data = { |
48 'cubicweb.web.views': ['*.pt'], |
43 'cubicweb.web.views': ['*.pt'], |
49 'cubicweb.pyramid': ['development.ini.tmpl'], |
44 'cubicweb.pyramid': ['development.ini.tmpl'], |
50 } |
45 } |
51 |
|
52 try: |
|
53 # data files that shall be copied outside the main package directory |
|
54 data_files = [ |
|
55 # server data |
|
56 [join('share', 'cubicweb', 'migration'), |
|
57 [join(_server_migration_dir, filename) |
|
58 for filename in listdir(_server_migration_dir)]], |
|
59 ] |
|
60 except OSError: |
|
61 # we are in an installed directory, don't care about this |
|
62 pass |
|