diff --git a/docs/conf.py b/docs/conf.py index 3b48bd8..f1b1599 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,7 +19,7 @@ # package data about: t.Dict[str, str] = {} -with open(project_root / "gp_libs" / "__about__.py") as fp: +with open(project_root / "src" / "gp_libs.py") as fp: exec(fp.read(), about) extensions = [ diff --git a/docs/developing.md b/docs/developing.md index 142559e..f38ea77 100644 --- a/docs/developing.md +++ b/docs/developing.md @@ -59,7 +59,7 @@ CI. See the configuration in `pyproject.toml` and `setup.cfg`: [poetry] handles virtualenv creation, package requirements, versioning, building, and publishing. Therefore there is no setup.py or requirements files. -Update `__version__` in `__about__.py` and `pyproject.toml`:: +Update `__version__` in `src/gp_libs.py` and `pyproject.toml`:: git commit -m 'build(gp_libs): Tag v0.1.1' git tag v0.1.1 diff --git a/gp_libs/__init__.py b/gp_libs/__init__.py deleted file mode 100755 index 0d9cc7b..0000000 --- a/gp_libs/__init__.py +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env python -import typing as t - - -def run(*args: object, **kwargs: t.Any) -> t.Optional[str]: - if args: - return "Hello" - return None - - -if __name__ == "__main__": - run() diff --git a/pyproject.toml b/pyproject.toml index 4185207..ec73de4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,6 @@ classifiers = [ ] packages = [ { include = "*", from = "src" }, - { include = "gp_libs" }, ] include = [ { path = "tests", format = "sdist" }, diff --git a/setup.cfg b/setup.cfg index a69e42b..0af1ef9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,16 +1,16 @@ [flake8] -exclude = .*/,.tox,*.egg,gp_libs/__*__.py, +exclude = .*/,.tox,*.egg max-line-length = 88 extend-ignore = E203 [isort] profile = black -combine_as_imports= true +combine_as_imports = true default_section = THIRDPARTY include_trailing_comma = true multi_line_output = 3 known_pytest = pytest,py -known_first_party = gp_libs +known_first_party = gp_libs,doctest_docutils,linkify_issues,pytest_doctest_docutils,sphinx_doctree_autodoc_fix sections = FUTURE,STDLIB,PYTEST,THIRDPARTY,FIRSTPARTY,LOCALFOLDER line_length = 88 @@ -18,6 +18,5 @@ line_length = 88 addopts = --tb=short --no-header --showlocals --doctest-modules doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE testpaths = - gp_libs tests docs diff --git a/gp_libs/__about__.py b/src/gp_libs.py similarity index 100% rename from gp_libs/__about__.py rename to src/gp_libs.py