Skip to content

Commit 28a5c4c

Browse files
committed
Get template ready for py-grim
1 parent 90775d3 commit 28a5c4c

File tree

16 files changed

+40
-40
lines changed

16 files changed

+40
-40
lines changed

CONTRIBUTING.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Types of Contributions
1515
Report Bugs
1616
~~~~~~~~~~~
1717

18-
Report bugs at https://github.com/nmdp-bioinformatics/my_project_template/issues.
18+
Report bugs at https://github.com/nmdp-bioinformatics/py-grim/issues.
1919

2020
If you are reporting a bug, please include:
2121

@@ -38,14 +38,14 @@ and "help wanted" is open to whoever wants to implement it.
3838
Write Documentation
3939
~~~~~~~~~~~~~~~~~~~
4040

41-
My Project Template could always use more documentation, whether as part of the
42-
official My Project Template docs, in docstrings, or even on the web in blog posts,
41+
py-grim could always use more documentation, whether as part of the
42+
official py-grim docs, in docstrings, or even on the web in blog posts,
4343
articles, and such.
4444

4545
Submit Feedback
4646
~~~~~~~~~~~~~~~
4747

48-
The best way to send feedback is to file an issue at https://github.com/nmdp-bioinformatics/my_project_template/issues.
48+
The best way to send feedback is to file an issue at https://github.com/nmdp-bioinformatics/py-grim/issues.
4949

5050
If you are proposing a feature:
5151

@@ -57,16 +57,16 @@ If you are proposing a feature:
5757
Get Started!
5858
------------
5959

60-
Ready to contribute? Here's how to set up `my_project_template` for local development.
60+
Ready to contribute? Here's how to set up `py-grim` for local development.
6161

62-
1. Fork the `my_project_template` repo on GitHub.
62+
1. Fork the `py-grim` repo on GitHub.
6363
2. Clone your fork locally::
6464

65-
$ git clone [email protected]:your_name_here/my_project_template.git
65+
$ git clone [email protected]:your_name_here/py-grim.git
6666

6767
3. Install your local copy into a virtual environment. This is how you set up your fork for local development::
6868

69-
$ cd my_project_template/
69+
$ cd py-grim/
7070
$ make venv
7171
$ source venv/bin/activate
7272
$ make install
@@ -109,7 +109,7 @@ Tips
109109

110110
To run a subset of tests::
111111

112-
$ pytest tests.test_my_project_template
112+
$ pytest tests.test_grim
113113

114114

115115
Deploying

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ RUN pip install --no-cache-dir -r requirements-deploy.txt
1414
COPY app.py /app/
1515
COPY api.py /app/
1616
COPY api-spec.yaml /app/
17-
COPY my_project_template /app/my_project_template
17+
COPY grim /app/grim
1818

1919
CMD ["gunicorn" , "--bind", "0.0.0.0:8080", "--worker-tmp-dir", "/dev/shm", "app:app"]

HEADER.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# my_project_template My Project Template.
2+
# grim Graph Imputation
33
# Copyright (c) 2021 Be The Match operated by National Marrow Donor Program. All Rights Reserved.
44
#
55
# This library is free software; you can redistribute it and/or modify it

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PROJECT_NAME := $(shell basename `pwd`)
2-
PACKAGE_NAME := my_project_template
2+
PACKAGE_NAME := py-grim
33

44
.PHONY: clean clean-test clean-pyc clean-build docs help test test-all
55
.DEFAULT_GOAL := help
@@ -71,7 +71,7 @@ test: clean-test ## run all(BDD and unit) tests
7171
behave
7272

7373
coverage: ## check code coverage quickly with the default Python
74-
coverage run --source my_project_template -m pytest
74+
coverage run --source py-grim -m pytest
7575
coverage report -m
7676
coverage html
7777
$(BROWSER) htmlcov/index.html

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@ How to use the template:
5858
| |-- HLA_alleles.py
5959
| `-- SLUG_match.py
6060
`-- unit
61-
`-- test_my_project_template.py
61+
`-- test_grim.py
6262
```
63-
8. Package Module files go in the `my_project_template` directory.
63+
8. Package Module files go in the `grim` directory.
6464
```
65-
my_project_template
65+
grim
6666
|-- __init__.py
6767
|-- algorithm
6868
| `-- match.py
6969
|-- model
7070
| |-- allele.py
7171
| `-- slug.py
72-
`-- my_project_template.py
72+
`-- grim.py
7373
```
7474
9. Run all tests with `make test` or different tests with `make behave` or `make pytest`. `make behave` will generate report files and open the browser to the report.
7575
10. Use `python app.py` to run the Flask service app in debug mode. Service will be available at http://localhost:8080/

api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from flask import request
22

3-
from my_project_template.model.allele import InvalidAllele
4-
from my_project_template.my_project_template import match
3+
from grim.model.allele import InvalidAllele
4+
from grim.grim import match
55

66

77
def slug_match_controller():

my_project_template/__init__.py renamed to grim/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
#
4-
# my_project_template My Project Template.
4+
# grim Graph Imputation
55
# Copyright (c) 2021 Be The Match operated by National Marrow Donor Program. All Rights Reserved.
66
#
77
# This library is free software; you can redistribute it and/or modify it
@@ -10,7 +10,7 @@
1010
# your option) any later version.
1111
#
1212
# This library is distributed in the hope that it will be useful, but WITHOUT
13-
# ANY WARRANTY; with out even the implied warranty of MERCHANTABILITY or
13+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1414
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1515
# License for more details.
1616
#
@@ -23,7 +23,7 @@
2323
#
2424

2525

26-
"""Top-level package for My Project Template."""
26+
"""Top-level package for py-grim."""
2727

2828
__organization__ = "NMDP/CIBMTR Bioinformatics"
2929
__version__ = "0.0.1"

my_project_template/algorithm/match.py renamed to grim/algorithm/match.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from my_project_template.model.slug import SLUG
1+
from grim.model.slug import SLUG
22

33

44
# SLUG match

my_project_template/my_project_template.py renamed to grim/grim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
#
4-
# my_project_template My Project Template.
4+
# grim Graph Imputation
55
# Copyright (c) 2021 Be The Match operated by National Marrow Donor Program. All Rights Reserved.
66
#
77
# This library is free software; you can redistribute it and/or modify it

my_project_template/model/allele.py renamed to grim/model/allele.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
#
4-
# my_project_template My Project Template.
4+
# grim Graph Imputation
55
# Copyright (c) 2021 Be The Match operated by National Marrow Donor Program. All Rights Reserved.
66
#
77
# This library is free software; you can redistribute it and/or modify it
@@ -10,7 +10,7 @@
1010
# your option) any later version.
1111
#
1212
# This library is distributed in the hope that it will be useful, but WITHOUT
13-
# ANY WARRANTY; with out even the implied warranty of MERCHANTABILITY or
13+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1414
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1515
# License for more details.
1616
#

0 commit comments

Comments
 (0)