diff --git a/README.md b/README.md index 6dc7aa0..ac4fa14 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ def test_example(): # Creating a repository that Gitalong will use to store and share local changes. # You would normally host this somewhere like GitHub so your entire team has # access to it. - store = Repo.init(path="store.git", bare=True) + store = Repo.init(path=os.path.join(dirname, "store.git"), bare=True) # Setting up Gitalong in your project repository. # This will clone the registry repository in an ignored `.gitalong` folder. diff --git a/gitalong/cli.py b/gitalong/cli.py index f6db961..1b17194 100644 --- a/gitalong/cli.py +++ b/gitalong/cli.py @@ -6,12 +6,11 @@ from click.decorators import pass_context +from .__info__ import __version__ from .enums import CommitSpread from .exceptions import RepositoryNotSetup from .repository import Repository -__version__ = "0.1.0.dev1" - def get_repository(repository: str) -> Repository: try: diff --git a/setup.py b/setup.py index f84684a..21a6e19 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,6 @@ "pytest-html~=2.1", "pytest-pep8~=1.0", "pytest-profiling~=1.7", - "requests-mock~=1.8", "sphinx-markdown-tables~=0.0", "sphinx-rtd-theme~=0.5", "sphinxcontrib-apidoc~=0.3", diff --git a/tests/test_example.py b/tests/test_example.py index 4650fb8..e4eb0f3 100644 --- a/tests/test_example.py +++ b/tests/test_example.py @@ -24,7 +24,7 @@ def test_example(): # Creating a repository that Gitalong will use to store and share local changes. # You would normally host this somewhere like GitHub so your entire team has # access to it. - store = Repo.init(path="store.git", bare=True) + store = Repo.init(path=os.path.join(dirname, "store.git"), bare=True) # Setting up Gitalong in your project repository. # This will clone the registry repository in an ignored `.gitalong` folder.