Repository: ryancheley/toggl-to-sqlite (language: python)

Issue:
Convert to pyproject.toml
**Describe the solution you'd like**
Convert to use of pyproject.toml based on [PEP 621](https://peps.python.org/pep-0621/)

**Describe alternatives you've considered**
None

**Additional context**
None


Discussion / hints:

Fix patch:
diff --git a/pyproject.toml b/pyproject.toml
index 612d5c2..66c1831 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,52 @@
+[project]
+name = "toggl-to-sqlite"
+version = "0.7.0"
+description = "ACreate a SQLite database containing data from your Toggl account"
+readme = "README.md"
+authors = [{name = "Ryan Cheley"}]
+license = {text = "Apache-2.0"}
+classifiers = [
+    "Development Status :: 4 - Beta",
+    "Intended Audience :: Developers",
+    "Topic :: Utilities",
+    "Programming Language :: Python :: 3.8",
+    "Programming Language :: Python :: 3.9",
+    "Programming Language :: Python :: 3.10",
+    "Programming Language :: Python :: 3.11",
+    "Programming Language :: Python :: 3.12",
+]
+dependencies = [
+    "sqlite-utils>=2.4.4",
+    "click",
+    "requests",
+    "requests_mock",
+    "toml",
+    "click",
+]
+
+[build-system]
+requires = ["setuptools>=61.0"]
+build-backend = "setuptools.build_meta"
+
+[project.urls]
+Issues = "https://github.com/ryancheley/toggl-to-sqlite/issues"
+CI = "https://github.com/ryancheley/toggl-to-sqlite/actions"
+Changelog = "https://github.com/ryancheley/toggl-to-sqlite/releases"
+Documentation = "https://github.com/ryancheley/toggl-to-sqlite/blob/main/README.md"
+
+[project.optional-dependencies]
+test = [
+    "pytest",
+    "black",
+    "isort",
+    "coverage",
+    "mypy",
+    "cogapp",
+    "pre-commit"
+]
+
 [tool.black]
 line-length = 130
-target-version = ['py39']
+target-version = ['py311']
 include = '\.pyi?$'
 exclude = '(venv)'
diff --git a/setup.py b/setup.py
deleted file mode 100644
index 2cee3a0..0000000
--- a/setup.py
+++ /dev/null
@@ -1,51 +0,0 @@
-import os
-
-from setuptools import setup
-
-VERSION = "0.6.0"
-
-
-def get_long_description():
-    with open(
-        os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
-        encoding="utf8",
-    ) as fp:
-        return fp.read()
-
-
-setup(
-    name="toggl-to-sqlite",
-    description="Create a SQLite database containing data from your Toggl account",
-    long_description=get_long_description(),
-    long_description_content_type="text/markdown",
-    author="Ryan Cheley",
-    project_urls={
-        "Issues": "https://github.com/ryancheley/toggl-to-sqlite/issues",
-        "CI": "https://github.com/ryancheley/toggl-to-sqlite/actions",
-        "Changelog": "https://github.com/ryancheley/toggl-to-sqlite/releases",
-        "Documentation": "https://github.com/ryancheley/toggl-to-sqlite/blob/main/README.md",
-    },
-    url="https://github.com/ryancheley/toggle-to-sqlite",
-    license="Apache License, Version 2.0",
-    version=VERSION,
-    packages=["toggl_to_sqlite"],
-    package_dir={"": "src"},
-    entry_points="""
-        [console_scripts]
-        toggl-to-sqlite=toggl_to_sqlite.cli:cli
-    """,
-    install_requires=["sqlite-utils>=2.4.4", "click", "requests", "requests_mock", "toml"],
-    extras_require={"test": ["pytest", "black", "isort", "coverage", "mypy", "cogapp", "pre-commit"]},
-    tests_require=["toggl-to-sqlite[test]"],
-    python_requires=">=3.6",
-    classifiers=[
-        "Development Status :: 4 - Beta",
-        "Intended Audience :: Developers",
-        "Topic :: Utilities",
-        "Programming Language :: Python :: 3.7",
-        "Programming Language :: Python :: 3.8",
-        "Programming Language :: Python :: 3.9",
-        "Programming Language :: Python :: 3.10",
-        "Programming Language :: Python :: 3.11",
-    ],
-)


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 1892bba..6615977 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -7,7 +7,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12-dev"]
+        python-version: [3.8, 3.9, "3.10", "3.11", "3.12-dev"]
     steps:
     - uses: actions/checkout@v2
     - name: Set up Python ${{ matrix.python-version }}