Skip to content

Commit

Permalink
Fix bug than entry point error in easier-docker cli merge pull request
Browse files Browse the repository at this point in the history
…#24 from touero/develop

Fix bug than entry point error in easier-docker cli
  • Loading branch information
touero authored Nov 29, 2024
2 parents 0b78ca8 + 72d7703 commit 44a9146
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ __pycache__/
dist/
easier_docker.egg-info/
example.egg-info/
easierdocker/easier_docker.egg-info/
venv/
.venv/
build/
.coverage
htmlcov
easierdocker/easier_docker.egg-info/
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ test:
clean:
find . -name '__pycache__' -type d -exec rm -rf {} +
find . -name 'easier_docker.egg-info' -type d -exec rm -rf {} +
find . -name 'example.egg-info' -type d -exec rm -rf {} +
rm -rf htmlcov
rm -rf build
rm -rf dist
rm -rf .coverage
Expand Down
6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ requires = ["setuptools>=68.2.0", "wheel>=0.42.0"]
build-backend = "setuptools.build_meta"


[tool.setuptools.packages]
find = { where = ["easierdocker"] }


[project]
name = "easier-docker"
version = "2.2.4"
version = "2.2.5"
description = "Configure your container image information more easily in python, allowing the container in docker to execute the configured program you want to execute."
readme = "README.md"
requires-python = ">=3.8"
Expand Down
3 changes: 2 additions & 1 deletion easierdocker/__init__.py → src/easierdocker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .easier_docker import EasierDocker
from .log_re import log
from .config import Config

__version__ = '2.2.4'
__version__ = '2.2.5'
4 changes: 1 addition & 3 deletions easierdocker/__main__.py → src/easierdocker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
import os
from argparse import ArgumentParser

from easierdocker.config import Config
from easierdocker.log_re import log
from easierdocker.easier_docker import EasierDocker
from . import EasierDocker, log, Config


def main():
Expand Down
2 changes: 1 addition & 1 deletion easierdocker/config.py → src/easierdocker/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import yaml

from easierdocker.log_re import log
from . import log


class Config:
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.
1 change: 0 additions & 1 deletion tests/__init__.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/test_easier_docker.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import unittest
from unittest.mock import patch, MagicMock

from src.easierdocker import EasierDocker
from docker.errors import ImageNotFound, APIError, NotFound, DockerException
from easierdocker import EasierDocker
from easierdocker.exceptions import DockerConnectionError, NotFoundImageInDockerHub
from src.easierdocker.exceptions import DockerConnectionError, NotFoundImageInDockerHub


class TestEasierDocker(unittest.TestCase):
Expand Down

0 comments on commit 44a9146

Please sign in to comment.