diff --git a/.gitignore b/.gitignore index 731f067..1558e03 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.pyc /build /dist +/.coverage diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a92f7b2 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,40 @@ +[project] +name = "myloginpath" +version = "0.0.4rc1" +description="MySQL login path file reader" + +readme = "README.md" +requires-python = ">=3.8" +authors = [ + {name = "Inada Naoki", email = "songofacandy@gmail.com"} +] +license = {file = "LICENSE.txt"} +keywords = ["MySQL"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Other Environment", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Topic :: Database", +] +dependencies = [ + "cryptography", +] + +[project.urls] +Project = "https://github.com/PyMySQL/myloginpath/" + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[tool.setuptools] +py-modules = [ + "myloginpath", +] diff --git a/setup.py b/setup.py deleted file mode 100644 index d2330c5..0000000 --- a/setup.py +++ /dev/null @@ -1,18 +0,0 @@ -from setuptools import setup - -with open("README.md", encoding="utf-8") as f: - readme = f.read() - -setup( - name="myloginpath", - license="MIT", - version="0.0.3", - description="MySQL login path file reader", - long_description=readme, - long_description_content_type="text/markdown", - url="https://github.com/PyMySQL/myloginpath/", - keywords="MySQL", - install_requires=["cryptography"], - python_requires=">=3.4", - py_modules=["myloginpath"], -)