Skip to content

Commit 28db280

Browse files
authored
Merge pull request #92 from Preocts/preocts
Remove requirements directory on alt_file use
2 parents 275c343 + 66b4e4f commit 28db280

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

alt_files/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "module-name"
77
version = "0.1.0"
8-
requires-python = ">=3.7"
8+
requires-python = ">=3.8"
99
description = "Module Description"
1010
readme = "README.md"
1111
license = { file = "LICENSE" }
@@ -103,7 +103,7 @@ max-line-length = 88
103103
[tool.tox]
104104
legacy_tox_ini = """
105105
[tox]
106-
envlist = py37,py38,py39,py310,py311,py312,coverage,mypy
106+
envlist = py38,py39,py310,py311,py312,coverage,mypy
107107
skip_missing_interpreters = true
108108
isolated_build = True
109109
@@ -114,7 +114,7 @@ commands =
114114
coverage run -p -m pytest tests/
115115
116116
[testenv:coverage]
117-
depends = py37,py38,py39,py310,py311,py312
117+
depends = py38,py39,py310,py311,py312
118118
parallel_show_output = true
119119
commands =
120120
python -m coverage combine

init_template.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
PYPROJECT_TARGET = Path("pyproject.toml")
1919
README_TARGET = Path("README.md")
2020
ALT_FILE_DIR = Path("alt_files")
21+
REQUIREMENTS_DIR = Path("requirements")
2122
ORG = "Preocts"
2223
REPO = r"python\-src\-template"
2324

@@ -77,6 +78,11 @@ def select_project_type() -> None:
7778
for file in ALT_FILE_DIR.iterdir():
7879
file.replace(file.name)
7980

81+
# Remove requirements directory and all contents
82+
for file in REQUIREMENTS_DIR.iterdir():
83+
os.remove(file)
84+
os.rmdir(REQUIREMENTS_DIR)
85+
8086
# Remove alt_files directory and all contents
8187
for file in ALT_FILE_DIR.iterdir():
8288
os.remove(file)

0 commit comments

Comments
 (0)