diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d32eefb9..43b91eac 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing Guidelines -{{project_name}} is [{{license}} licensed](LICENSE) and accepts +ML Ops Quickstart is [MIT licensed](LICENSE) and accepts contributions via GitHub pull requests. This document outlines some of the conventions on development workflow, commit message formatting, contact points, and other resources to make it easier to get your contribution accepted. @@ -8,7 +8,7 @@ and other resources to make it easier to get your contribution accepted. ## Certificate of Origin By contributing to this project you agree to the [Developer Certificate of -Origin (DCO)](DCO). This document was created by the Linux Kernel community and is a +Origin (DCO)](DCO.md). This document was created by the Linux Kernel community and is a simple statement that you, as a contributor, have the legal right to make the contribution. @@ -22,7 +22,7 @@ This can be done easily using the [`-s`](https://github.com/git/git/blob/b2c150d The official support channels, for both users and contributors, are: -- GitHub [issues](https://github.com/{{owner}}/{{project_name}}/issues)* +- GitHub [issues](https://github.com/fragiletech/ml-ops-quickstart/issues)* *Before opening a new issue or submitting a new pull request, it's helpful to search the project - it's likely that another user has already reported the diff --git a/Dockerfile b/Dockerfile index 2ecb216d..1cd31b68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,4 @@ RUN cd mloq \ RUN make -f mloq/scripts/makefile.docker remove-dev-packages RUN mkdir /root/.jupyter && \ echo 'c.NotebookApp.token = "'${JUPYTER_PASSWORD}'"' > /root/.jupyter/jupyter_notebook_config.py -CMD pipenv run jupyter notebook --allow-root --port 8080 --ip 0.0.0.0 \ No newline at end of file +CMD jupyter notebook --allow-root --port 8080 --ip 0.0.0.0 diff --git a/Makefile b/Makefile index cff4210c..cf6d301f 100644 --- a/Makefile +++ b/Makefile @@ -19,8 +19,8 @@ check: pylint ${PROJECT} black --check ${PROJECT} -.PHONY: pipenv-build -pipenv-build: +.PHONY: pipenv-install +pipenv-install: rm -rf *.egg-info && rm -rf build && rm -rf __pycache__ rm -f Pipfile && rm -f Pipfile.lock pipenv install --dev -r requirements-test.txt @@ -29,22 +29,29 @@ pipenv-build: pipenv install -e . pipenv lock +.PHONY: test +test: + find -name "*.pyc" -delete + pytest -s + .PHONY: pipenv-test pipenv-test: find -name "*.pyc" -delete pipenv run pytest -s -.PHONY: test -test: - find -name "*.pyc" -delete - pytest -s +.PHONY: docker-build +docker-build: + docker build --pull -t ${DOCKER_ORG}/${PROJECT}:${VERSION} . .PHONY: docker-test docker-test: find -name "*.pyc" -delete docker run --rm -v $(pwd):/io --network host -w /${PROJECT} --entrypoint python3 ${DOCKER_ORG}/${PROJECT}:${VERSION} -m pytest -.PHONY: docker-build -docker-build: - docker build --pull -t ${DOCKER_ORG}/${PROJECT}:${VERSION} . +.PHONY: docker-shell +docker-shell: + docker run --rm -v $(pwd):/io --network host -w /${PROJECT} -it ${DOCKER_ORG}/${PROJECT}:${VERSION} bash +.PHONY: docker-notebook +docker-notebook: + docker run --rm -v $(pwd):/io --network host -w /${PROJECT} -it ${DOCKER_ORG}/${PROJECT}:${VERSION} \ No newline at end of file diff --git a/scripts/rename_testpypi_wheels.py b/scripts/rename_testpypi_wheels.py index bdba3d2a..4696521a 100644 --- a/scripts/rename_testpypi_wheels.py +++ b/scripts/rename_testpypi_wheels.py @@ -30,6 +30,7 @@ def main(): project = os.environ.get("PROJECT_NAME", "mloq") last_version = get_versions(project)[-1] rename_wheels(last_version) + return 0 if __name__ == "__main__":