Skip to content

Commit c25a4f2

Browse files
committed
setup.py config
1 parent 2c6dd69 commit c25a4f2

File tree

2 files changed

+22
-27
lines changed

2 files changed

+22
-27
lines changed

pyproject.toml

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pyproject.toml
22
[build-system]
3-
requires = ["setuptools", "wheel", "setuptools_scm"]
3+
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
44
build-backend = "setuptools.build_meta"
55

66
[project]
@@ -11,21 +11,8 @@ license = { file = "LICENSE" }
1111
authors = [
1212
{ name = "Henrique Sagara", email = "henrique.sagara@hotmail.com" }
1313
]
14-
dependencies = [
15-
"cohere",
16-
"colorama",
17-
"groq",
18-
"python-dotenv",
19-
"toml",
20-
"black",
21-
"ruff",
22-
"pre-commit",
23-
"coverage"
24-
]
25-
dynamic = ["version"] # Keep only 'version' dynamic
26-
14+
dynamic = ["version", "dependencies"]
2715
requires-python = ">=3.7"
28-
2916
classifiers = [
3017
"Programming Language :: Python :: 3",
3118
"License :: OSI Approved :: MIT License",
@@ -34,37 +21,29 @@ classifiers = [
3421

3522
[tool.setuptools_scm]
3623
version_scheme = "post-release"
37-
write_to = "src/_version.py" # Optional: Write version to a file
24+
write_to = "src/_version.py"
3825

3926
[project.urls]
4027
Homepage = "https://github.com/HTSagara/readme_genie"
4128
Documentation = "https://github.com/HTSagara/readme_genie/blob/main/README.md"
4229

43-
# Set up black as formatter
4430
[tool.black]
4531
line-length = 79
4632
target-version = ["py311"]
4733

48-
# Set up ruff as linter only
4934
[tool.ruff]
50-
# Exclude directories that don’t need linting (e.g., virtual environments)
5135
exclude = [
5236
"venv/",
5337
"__pycache__/"
5438
]
5539
fix = true
56-
57-
58-
# Enable specific linting rules
59-
select = ["F", "E", "W", "B", "I", "S"] # Example codes: F=flake8, E=errors, W=warnings, B=bugbear, I=import, S=safety
60-
# Exclude Black-compatible rules to avoid conflicts with Black's formatting.
61-
ignore = ["E501", "E203", "E231"] # Exclude Black-incompatible style issues
40+
select = ["F", "E", "W", "B", "I", "S"]
41+
ignore = ["E501", "E203", "E231"]
6242

6343
[tool.coverage.run]
6444
source = ["."]
6545
branch = true
6646
omit = ["tests/*"]
6747

68-
6948
[tool.pytest.ini_options]
70-
pythonpath = ["src"]
49+
pythonpath = ["src"]

setup.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@
1111
packages=find_packages(where="src"),
1212
package_dir={"": "src"},
1313
python_requires=">=3.7",
14+
install_requires=[
15+
"cohere>=1.2.6,<2.0.0",
16+
"colorama>=0.4.6,<0.5.0",
17+
"groq>=0.11.0,<0.12.0",
18+
"python-dotenv>=1.0.0,<2.0.0",
19+
"toml>=0.10.0,<0.11.0",
20+
"black>=24.1.0,<25.0.0",
21+
"ruff>=0.2.0,<0.3.0",
22+
"pre-commit>=3.5.0,<4.0.0",
23+
"coverage>=7.4.0,<8.0.0",
24+
],
25+
entry_points={
26+
"console_scripts": [
27+
"readmegenie=readmegenie.cli:main",
28+
],
29+
},
1430
classifiers=[
1531
"Programming Language :: Python :: 3",
1632
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)