Skip to content

Commit

Permalink
cleanup 🌎
Browse files Browse the repository at this point in the history
  • Loading branch information
0jdxt committed Oct 24, 2018
1 parent 7afa85a commit a864167
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ before_install:
install:
- pip install -r requirements.txt
script:
# - python -m pytest
- coverage run --source pyvid -m pytest
- coverage report
after_success:
Expand Down
Binary file modified dist/pyvid-0.0.7-py2.py3-none-any.whl
Binary file not shown.
Binary file modified dist/pyvid-0.0.7.tar.gz
Binary file not shown.
11 changes: 3 additions & 8 deletions get_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
with open("pyproject.toml", "r") as f:
data = toml.load(f)["tool"]["poetry"]

reqs = []
for dep in data["dependencies"]:
reqs.append(dep + "==" + data["dependencies"][dep][1:])

for ddep in data["dev-dependencies"]:
reqs.append(ddep + "==" + data["dev-dependencies"][ddep][1:])

deps = {**data["dependencies"], **data["dev-dependencies"]}
with open("requirements.txt", "w") as f:
print("\n".join(reqs), file=f)
for dep, ver in deps.items():
print(f"{dep}=={ver[1:]}", file=f)
6 changes: 3 additions & 3 deletions test/test_vpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ def test_file_vpath_folder() -> None:
p = Path(folder)
fs = VideoPath(folder)

files = [p / ("Carne_job." + x) for x in ["mp4", "mov", "webm"]]
vids = [p / ("Carne_job." + x) for x in ["mp4", "mov", "webm"]]

for i, fname in enumerate(fs):
assert fname == files[i]
for i, vid in enumerate(fs):
assert vid == vids[i]
assert fs.is_dir()
assert not fs.is_file()

0 comments on commit a864167

Please sign in to comment.