Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kota-Karthik committed Nov 14, 2024
1 parent 68b1fc5 commit aeebafe
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 10 deletions.
32 changes: 24 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ __pycache__/
*.so

# Virtual environment
.env/
.venv/
env/
venv/
Expand All @@ -16,8 +15,6 @@ env.bak/
venv.bak/

# Poetry virtual environment
# The virtual environment created by Poetry will be ignored
# .cache is where Poetry stores the virtual environment by default
.cache/
.pdm.toml

Expand All @@ -38,8 +35,6 @@ var/
*.whl

# PyInstaller
# Usually these files are written by a Python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

Expand Down Expand Up @@ -87,11 +82,9 @@ profile_default/
ipython_config.py

# pyenv
# Ignore Python runtime files
.python-version

# pipenv
# Ignore pipenv-specific files
Pipfile
Pipfile.lock

Expand Down Expand Up @@ -129,9 +122,32 @@ venv.bak/
.dmypy.json
dmypy.json

# Miscellaneous
*.db-journal
*.db

# Issue tracker files
/issue

test.py
# Python test coverage cache
/.pytest_cache/

# Build files
build/
dist/
*.whl
*.tar.gz

# TwinTrim build artifacts
build/
dist/
*.egg-info/

# VSCode settings
.vscode/

# Test files
test.py

# Ignore the search index
search/search_index.json
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include LICENSE
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ pytest-mock = "^3.14.0"
pytest = "^8.3.3"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"


[tool.pytest.ini_options]
testpaths = ["tests"]
Expand Down
36 changes: 36 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from setuptools import setup, find_packages

setup(
name='twinTrim', # Name of the package
version='0.1.0', # Version number
description='A CLI tool to find and delete duplicate files in a directory.', # Short description
long_description=open('README.md').read(), # Readme for long description
long_description_content_type='text/markdown', # Type of long description
author='Kota-Karthik', # Author name
author_email='kotakarthik2307@gmail.com', # Author's email
url='https://github.com/kota-karthik/twinTrim', # URL of the project
packages=find_packages(), # Automatically finds and includes all packages
install_requires=[ # Dependencies
'click>=8.0',
'tqdm>=4.66.5',
'mkdocs>=1.6.1',
'mkdocs-material>=9.5.44',
],
extras_require={ # Optional dependencies for development
'dev': [
'pytest>=8.3.3',
'pytest-mock>=3.14.0',
],
},
classifiers=[ # Classifiers to help PyPI users find your package
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.8', # Minimum Python version
entry_points={ # CLI tool entry point
'console_scripts': [
'twinTrim=twinTrim.main:cli', # Adjusted entry point based on Poetry
],
},
)
Empty file.

0 comments on commit aeebafe

Please sign in to comment.