File: install-test-files.patch

package info (click to toggle)
pyjavaproperties 0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 160 kB
  • sloc: python: 232; makefile: 7
file content (25 lines) | stat: -rw-r--r-- 698 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,11 @@
 with open("README.rst", "r") as fh:
     long_description = fh.read()
 
+if sys.version_info[0] < 3:
+    pyversion = ''
+else:
+    pyversion = '3'
+
 setup(
     name='pyjavaproperties',
     version='0.7',
@@ -25,6 +30,8 @@
         'Topic :: Software Development :: Libraries :: Python Modules',
       ],
     py_modules=['pyjavaproperties'],
-    packages=[''],
-    package_dir={'': '.'},
+    data_files=[('share/python' + pyversion + '-pyjavaproperties',
+                 ['pyjavaproperties_test.py']),
+                ('share/python' + pyversion + '-pyjavaproperties/testdata',
+                 ['testdata/complex.properties'])],
     )