-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from SciKit-Surgery/18-move-tosks
18 move tosks
- Loading branch information
Showing
6 changed files
with
126 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
service_name: travis-ci | ||
repo_token: BY7CsmZLxsoGVRr5MUfIHBKf80Jp4CDYp | ||
repo_token: IttknVKD3g94z7XGhphBKd6XUgp3LorGf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
cff-version: 1.2.0 | ||
message: "If you use SnappySonic, please cite it as below." | ||
authors: | ||
- family-names: "Thompson" | ||
given-names: "Stephen" | ||
orcid: "https://orcid.org/0000-0001-7286-1326" | ||
- family-names: "Dowrick" | ||
given-names: "Thomas" | ||
orcid: "https://orcid.org/0000-0002-2712-4447" | ||
- family-names: "Ahmad" | ||
given-names: "Mian" | ||
orcid: "https://orcid.org/0000-0002-4706-4146" | ||
- family-names: "Clarkson" | ||
given-names: "Matthew" | ||
orcid: "https://orcid.org/0000-0002-5565-1252" | ||
title: "SnappySonic" | ||
doi: 10.5281/zenodo.3491054 | ||
url: "https://github.com/SciKit-Surgery/snappysonic" | ||
preferred-citation: | ||
type: article | ||
authors: | ||
- family-names: "Thompson" | ||
given-names: "Stephen" | ||
orcid: "https://orcid.org/0000-0001-7286-1326" | ||
- family-names: "Dowrick" | ||
given-names: "Thomas" | ||
orcid: "https://orcid.org/0000-0002-2712-4447" | ||
- family-names: "Xiao" | ||
given-names: "Guofang" | ||
- family-names: "Ramalhinho" | ||
given-names: "Jo{\~a}o" | ||
- family-names: "Robu" | ||
given-names: "Maria" | ||
- family-names: "Ahmad" | ||
given-names: "Mian" | ||
orcid: "https://orcid.org/0000-0002-4706-4146" | ||
- family-names: "Taylor" | ||
given-names: "Dan" | ||
- family-names: "Clarkson" | ||
given-names: "Matthew" | ||
orcid: "https://orcid.org/0000-0002-5565-1252" | ||
doi: 10.5334/jors.289 | ||
journal: "Journal of Open Research Software" | ||
title: "SnappySonic: An Ultrasound Acquisition Replay Simulator" | ||
volume: 8 | ||
issue: 1 | ||
year: 2020 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# coding=utf-8 | ||
|
||
"""scikit-surgerynditracker tests""" | ||
|
||
# Pytest style | ||
|
||
def test_requirements_vs_setup(): | ||
""" | ||
Test that the requirements.txt matches setup.py | ||
""" | ||
|
||
# setup=open("setup.py","r") | ||
# setuptxt = setup.read() | ||
# setup.close() | ||
|
||
with open("setup.py", "r", encoding='us-ascii') as file_to_read: | ||
searchlines = file_to_read.readlines() | ||
|
||
install_line = -1 | ||
for i, line in enumerate(searchlines): | ||
if "install_requires" in line: | ||
install_line = i | ||
break | ||
|
||
end_line = -1 | ||
for i, line in enumerate(searchlines[install_line:]): | ||
if "]" in line: | ||
end_line = install_line + i | ||
break | ||
|
||
setup_reqs = [] | ||
|
||
for line in searchlines[install_line + 1: end_line]: | ||
req = line.replace(',', '').replace("'", "") | ||
req = req.replace(' ', '').replace('\n', '') | ||
setup_reqs.append(req) | ||
|
||
|
||
with open("requirements.txt", "r", encoding='us-ascii') as file_to_read: | ||
searchlines = file_to_read.readlines() | ||
|
||
reqs = [] | ||
for line in searchlines: | ||
if "#" not in line: | ||
reqs.append(line.replace('\n', '')) | ||
|
||
for setup_req in setup_reqs: | ||
assert setup_req in reqs | ||
|
||
for req in reqs: | ||
assert req in setup_reqs |