Skip to content

Commit 0c19414

Browse files
committed
setup.py update
1 parent d6736b1 commit 0c19414

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ minversion = 3.7
33
log_cli=true
44
python_files = test_*.py
55
pytest_plugins = ['pytest_profiling']
6-
;addopts = -n auto --dist=loadscope
6+
addopts = -n auto --dist=loadscope

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requests==2.26.0
44
requests-toolbelt>=0.9.1
55
aiohttp>=3.8.1
66
tqdm==4.64.0
7-
pillow>=7.2.0<9.0.1
7+
pillow>=7.2.0, <9.0.1
88
matplotlib>=3.3.1
99
xmltodict==0.12.0
1010
opencv-python>=4.4.0.42

setup.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,26 @@ def get_version():
1818
requirements.extend(f.read().splitlines())
1919

2020

21+
def package_files(directory):
22+
paths = []
23+
for (path, directories, filenames) in os.walk(directory):
24+
for filename in filenames:
25+
if filename.endswith("pyc"):
26+
continue
27+
paths.append(os.path.join('..', path, filename))
28+
return paths
29+
30+
2131
setup(
2232
name='superannotate',
2333
version=sdk_version,
2434
package_dir={"": "src"},
25-
package_data={"superannotate": ["logging.conf"]},
2635
packages=find_packages(where="src"),
36+
package_data={
37+
"superannotate.lib.app.server": ['*.txt', '*.sh', '*.html', 'Dockerfile'],
38+
"superannotate.lib.app.server.templates": ['*.html'],
39+
"superannotate.lib.app.server.deployment": ['*.ini', '*.sh'],
40+
},
2741
description='Python SDK to SuperAnnotate platform',
2842
license='MIT',
2943
author='SuperAnnotate AI',
@@ -48,5 +62,7 @@ def get_version():
4862
project_urls={
4963
'Documentation': 'https://superannotate.readthedocs.io/en/stable/',
5064
},
51-
python_requires='>=3.7'
65+
python_requires='>=3.7',
66+
include_package_data=True,
67+
5268
)

src/superannotate/lib/app/server/deployment/__init__.py

Whitespace-only changes.

src/superannotate/lib/app/server/templates/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)