diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 07e43b8..81cdce0 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -40,7 +40,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies with PyPI - run: pip install -r requirements.txt + run: pip install .[dev] - name: run the check by pytest run: | diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..8807e01 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,52 @@ +[build-system] +requires = ["setuptools>=42", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "appendfilename" +version = "2025.5.7" +description = "Intelligent appending text to file names, considering file extensions and file tags" +# readme = "README.org" +readme = {file = "README.org", content-type = "text/orgmode"} +requires-python = ">=3.9" +license = {file = "license.txt"} +authors = [ + {name="Karl Voit", email="tools@Karl-Voit.at"}, +] +keywords = [ + "file managing", + "file management", + "files", + "name", + "time", + "time-stamps", +] +classifiers = [ + "Programming Language :: Python :: 3 :: Only", + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Operating System :: OS Independent", +] +dependencies = [ + "pyreadline3" +] + +[project.optional-dependencies] +dev = [ + "build", + "pytest", +] + +[project.urls] +Homepage = "https://github.com/novoid/appendfilename" +Repository = "https://github.com/novoid/appendfilename" +Issues = "https://github.com/novoid/appendfilename/issues" + +[project.scripts] +appendfilename = "appendfilename:main" + +[tools.setuptools.packages.find] +where = ["."] + diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index b70e2ac..0000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -pyreadline3 -pytest \ No newline at end of file