From 6bcc0a65a773e967dc7b41e6e4069475d007f05b Mon Sep 17 00:00:00 2001 From: bleudev Date: Mon, 1 Jul 2024 23:20:01 +0300 Subject: [PATCH] fix issues from sourcery's review --- examples/ustack.md | 4 ++-- setup.py | 15 ++------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/examples/ustack.md b/examples/ustack.md index 7837502..220383a 100644 --- a/examples/ustack.md +++ b/examples/ustack.md @@ -2,7 +2,7 @@ ## Introduction -Stack is list with possibility to get only top element with useful features. [Wiki](https://en.wikipedia.org/wiki/Stack_(abstract_data_type)) +Stack is a list with the possibility to get only the top element with useful features. [Wiki](https://en.wikipedia.org/wiki/Stack_(abstract_data_type)) Firstly, import `Stack` from `ufpy` @@ -107,7 +107,7 @@ s = Stack() s.is_empty() # True ``` -Also, you can use `if Stack` syntax for checking that stack is not empty +You can also use the `if Stack` syntax to check if the stack is not empty ```python s = Stack() if s: diff --git a/setup.py b/setup.py index 2430bdd..a3a0b35 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from setuptools import setup +from setuptools import setup, find_packages from ufpy import __version__ @@ -16,17 +16,6 @@ github_url = f'https://github.com/{organization_name}/{project_name}' -def __package(name: str) -> str: - return f'{project_name}.{name}' - - -def __gen_packages_list(*packages: str) -> list[str]: - res = [project_name] - for i in packages: - res.append(__package(i)) - return res - - setup( name=project_name, version=__version__, @@ -37,7 +26,7 @@ def __gen_packages_list(*packages: str) -> list[str]: long_description=long_description, long_description_content_type='text/markdown', url=github_url, - packages=__gen_packages_list('typ', 'ustl', 'path', 'github'), + packages=find_packages(), classifiers=[ 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.12',