Merge pull request #21 from kirill-markin:feature/pyproject

pyproject
This commit is contained in:
Kirill Markin 2024-12-16 10:31:49 +01:00 committed by GitHub
commit b2148b4b5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 44 additions and 36 deletions

44
pyproject.toml Normal file
View file

@ -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",
]

View file

@ -1,5 +0,0 @@
setuptools>=70.0.0
pathspec>=0.12.1
pytest>=8.2.2
argparse>=1.4.0
PyYAML>=6.0.1

View file

@ -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',
)