IliaLarchenko
commited on
Commit
•
ff50e43
1
Parent(s):
c150b6f
minor bug fix
Browse files- requirements.txt +0 -1
- setup.py +22 -0
- tests/__init__.py +0 -0
- tests/test_utils.py +10 -0
requirements.txt
CHANGED
@@ -23,7 +23,6 @@ flake8==3.7.9
|
|
23 |
future==0.18.2
|
24 |
identify==1.4.7
|
25 |
idna==2.8
|
26 |
-
imageio==2.6.1
|
27 |
imgaug==0.2.6
|
28 |
importlib-metadata==0.23
|
29 |
Jinja2==2.10.3
|
|
|
23 |
future==0.18.2
|
24 |
identify==1.4.7
|
25 |
idna==2.8
|
|
|
26 |
imgaug==0.2.6
|
27 |
importlib-metadata==0.23
|
28 |
Jinja2==2.10.3
|
setup.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import setuptools
|
2 |
+
|
3 |
+
with open("README.md", "r") as fh:
|
4 |
+
long_description = fh.read()
|
5 |
+
|
6 |
+
setuptools.setup(
|
7 |
+
name="albumentations-demo", # Replace with your own username
|
8 |
+
version="0.0.1",
|
9 |
+
author="Ilya Larchenko",
|
10 |
+
author_email="ilia.larchenko@gmail.com",
|
11 |
+
description="Service for demonstration of ",
|
12 |
+
long_description=long_description,
|
13 |
+
long_description_content_type="text/markdown",
|
14 |
+
url="https://github.com/pypa/sampleproject",
|
15 |
+
packages=setuptools.find_packages(),
|
16 |
+
classifiers=[
|
17 |
+
"Programming Language :: Python :: 3",
|
18 |
+
"License :: OSI Approved :: MIT License",
|
19 |
+
"Operating System :: OS Independent",
|
20 |
+
],
|
21 |
+
python_requires='>=3.6',
|
22 |
+
)
|
tests/__init__.py
ADDED
File without changes
|
tests/test_utils.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# test
|
2 |
+
|
3 |
+
from src.utils import get_images_list
|
4 |
+
|
5 |
+
|
6 |
+
def test_get_images_list():
|
7 |
+
images_list = get_images_list("images")
|
8 |
+
assert isinstance(images_list, list)
|
9 |
+
assert len(images_list) > 0
|
10 |
+
assert isinstance(images_list[0], str)
|