Skip to content

Commit 037179c

Browse files
committed
Fixed packaging
1 parent 811ce5c commit 037179c

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include LICENSE
22
include INSTALL
3-
include README
3+
include README.md
44
include MANIFEST.in
55

66
include debian/changelog

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Depends: ${python3:Depends}, ${misc:Depends},
1414
python3-application,
1515
python3-fastapi,
1616
python3-gnutls,
17-
python3-greenlet
17+
python3-greenlet,
1818
python3-lxml,
1919
python3-sipsimple,
2020
python3-sqlmodel,

debian/docs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
README
1+
README.md

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/make -f
22

33
%:
4-
dh $@ --with python2 --buildsystem=pybuild
4+
dh $@ --with python3 --buildsystem=pybuild
55

66
override_dh_clean:
77
dh_clean

setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11

2-
from setuptools import find_packages, setup
2+
import os
3+
4+
from setuptools import setup
35

46
import xcap
57

8+
9+
def find_packages(root):
10+
return [directory.replace(os.path.sep, '.') for directory, sub_dirs, files in os.walk(root) if '__init__.py' in files]
11+
612
long_description = """XCAP protocol allows a client to read, write, and modify application
713
configuration data stored in XML format on a server. XCAP maps XML document
814
sub-trees and element attributes to HTTP URIs, so that these components can
@@ -29,10 +35,10 @@
2935
"Operating System :: OS Independent",
3036
],
3137
python_requires=">=3.8",
32-
packages=find_packages(where="xcap"), # Looking for packages in the "xcap" folder
38+
packages=find_packages("xcap"),
3339
package_data={'xcap.appusage': ['xml-schemas/*']},
3440
data_files=[('/etc/openxcap', ['config.ini.sample']), ('/etc/openxcap/tls', ['tls/README'])],
35-
scrips=['openxcap'],
41+
scripts=['openxcap'],
3642
include_package_data=True,
3743
)
3844

0 commit comments

Comments
 (0)