Skip to content

Commit

Permalink
fix: rename project to py-golf-games (#26)
Browse files Browse the repository at this point in the history
* fix: rename project to py-golf-games

* updated poetry.lock for cache
  • Loading branch information
ryankanno authored Aug 5, 2022
1 parent db0e784 commit 18db576
Show file tree
Hide file tree
Showing 22 changed files with 62 additions and 33 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENV PYTHONFAULTHANDLER=1 \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VERSION=1.1.12

ARG REPOSITORY=https://github.com/ryankanno/py-golf
ARG REPOSITORY=https://github.com/ryankanno/py-golf-games
ARG BUILD_DATETIME
ARG VERSION
ARG REVISION
Expand All @@ -24,7 +24,7 @@ ENV BRANCH ${BRANCH:-main}
LABEL maintainers="Ryan Kanno <[email protected]>"

LABEL org.opencontainers.image.created="${BUILD_DATETIME}" \
org.opencontainers.image.title="py-golf" \
org.opencontainers.image.title="py-golf-games" \
org.opencontainers.image.description="Library to help simulate golf games" \
org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.revision="${REVISION}" \
Expand All @@ -48,7 +48,7 @@ COPY poetry.lock /poetry.lock

RUN /bin/bash -c "poetry config virtualenvs.create false && poetry install --no-dev --no-interaction --no-ansi --no-root"

COPY ./py_golf /project/py_golf
COPY ./py_golf_games /project/py_golf_games

ENV PYTHONPATH "${PYTHONPATH}:/project"

Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include LICENSE
include MANIFEST.in
include README.rst
recursive-include py_golf *.py
recursive-include py_golf_games *.py
recursive-include tests *.py
recursive-include docs *
prune *.pyc
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
py-golf
=======

.. image:: https://github.com/ryankanno/py-golf/actions/workflows/ci.yml/badge.svg?branch=main
:target: https://github.com/ryankanno/py-golf
.. image:: https://github.com/ryankanno/py-golf-games/actions/workflows/ci.yml/badge.svg?branch=main
:target: https://github.com/ryankanno/py-golf-games

.. image:: https://codecov.io/gh/ryankanno/py-golf/branch/main/graph/badge.svg?token=OSzckqXl88
:target: https://codecov.io/gh/ryankanno/py-golf
.. image:: https://codecov.io/gh/ryankanno/py-golf-games/branch/main/graph/badge.svg?token=OSzckqXl88
:target: https://codecov.io/gh/ryankanno/py-golf-games

hic sunt dracones
-----------------
Expand Down
65 changes: 47 additions & 18 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion py_golf/__init__.py → py_golf_games/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

__title__ = 'py_golf'
__title__ = 'py_golf_games'
__author__ = 'Ryan Kanno'
__email__ = '[email protected]'
__license__ = 'MIT'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion py_golf/scorecard.py → py_golf_games/scorecard.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Scorecard(object):
>>> scorecard.record_score(p1, 1, 5)
>>> scorecard.record_score(p2, 1, 3)
>>> scorecard.get_scores(p1) #doctest: +ELLIPSIS
<py_golf.scorecard.PlayerScores object at 0x...>
<py_golf_games.scorecard.PlayerScores object at 0x...>
>>> scorecard.get_score(p1, 1).score
5
>>> scorecard.get_score(p2, 1).score
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tool.poetry]
name = "py-golf"
name = "py-golf-games"
version = "0.0.0"
description = "Simulation of golf games"
authors = ["Ryan <[email protected]>"]
packages = [
{ include = "py_golf" },
{ include = "py_golf_games" },
]

[tool.poetry.dependencies]
Expand Down Expand Up @@ -65,7 +65,7 @@ multi_line_output = 3
use_parentheses = true
known_third_party = []
default_section = "THIRDPARTY"
known_first_party = "py_golf"
known_first_party = "py_golf_games"
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"

[build-system]
Expand Down
2 changes: 1 addition & 1 deletion simulate.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env sh

export PYTHONPATH=py_golf && python -m py_golf.simulation.simulator
export PYTHONPATH=py_golf_games && python -m py_golf_games.simulation.simulator
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ deps =
sphinx_rtd_theme

[testenv:flake8]
commands = flake8 py_golf
commands = flake8 py_golf_games
deps = flake8

[testenv]
Expand Down

0 comments on commit 18db576

Please sign in to comment.