From d89052115a2d98c0215a48ff3b28acde81bf31fe Mon Sep 17 00:00:00 2001 From: Kirill Markin Date: Mon, 16 Dec 2024 10:31:30 +0100 Subject: [PATCH] pyproject --- pyproject.toml | 44 ++++++++++++++++++++++++++++++++++++++++++++ requirements.txt | 5 ----- setup.py | 31 ------------------------------- 3 files changed, 44 insertions(+), 36 deletions(-) create mode 100644 pyproject.toml delete mode 100644 requirements.txt delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..5128f4b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,44 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "repo-to-text" +version = "0.5.2" +authors = [ + { name = "Kirill Markin", email = "markinkirill@gmail.com" }, +] +description = "Convert a directory structure and its contents into a single text file, including the tree output and file contents in markdown code blocks. It may be useful to chat with LLM about your code." +readme = "README.md" +requires-python = ">=3.6" +license = { text = "MIT" } +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Development Status :: 4 - Beta", +] +dependencies = [ + "setuptools>=70.0.0", + "pathspec>=0.12.1", + "argparse>=1.4.0", + "PyYAML>=6.0.1", +] + +[project.urls] +Homepage = "https://github.com/kirill-markin/repo-to-text" +Repository = "https://github.com/kirill-markin/repo-to-text" + +[project.scripts] +repo-to-text = "repo_to_text.main:main" +flatten = "repo_to_text.main:main" + +[project.optional-dependencies] +dev = [ + "pytest>=8.2.2", + "black", + "mypy", + "isort", + "build", + "twine", +] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index fee77c1..0000000 --- a/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -setuptools>=70.0.0 -pathspec>=0.12.1 -pytest>=8.2.2 -argparse>=1.4.0 -PyYAML>=6.0.1 diff --git a/setup.py b/setup.py deleted file mode 100644 index e531949..0000000 --- a/setup.py +++ /dev/null @@ -1,31 +0,0 @@ -from setuptools import setup, find_packages - -with open('requirements.txt') as f: - required = f.read().splitlines() - -setup( - name='repo-to-text', - version='0.5.1', - author='Kirill Markin', - author_email='markinkirill@gmail.com', - description='Convert a directory structure and its contents into a single text file, including the tree output and file contents in markdown code blocks. It may be useful to chat with LLM about your code.', - long_description=open('README.md').read(), - long_description_content_type='text/markdown', - url='https://github.com/kirill-markin/repo-to-text', - license='MIT', - packages=find_packages(), - install_requires=required, - include_package_data=True, - entry_points={ - 'console_scripts': [ - 'repo-to-text=repo_to_text.main:main', - 'flatten=repo_to_text.main:main', - ], - }, - classifiers=[ - 'Programming Language :: Python :: 3', - 'License :: OSI Approved :: MIT License', - 'Operating System :: OS Independent', - ], - python_requires='>=3.6', -)