diff --git a/pyproject.toml b/pyproject.toml index b0f0765..d52025c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,37 @@ [build-system] -requires = ["setuptools>=42"] +requires = [ + "setuptools>=61.0", + "wheel" +] build-backend = "setuptools.build_meta" + +[project] +name = "imap_box" +version = "0.1.10" +description = "High-resolution map visualization and conversion tool" +readme = "README.md" +requires-python = ">=3.6" +license = { text = "Apache Software License" } +authors = [ + { name = "daohu527", email = "daohu527@gmail.com" } +] +home-page = "https://github.com/daohu527/imap" +keywords = ["imap", "mapping", "visualization"] +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent" +] +dynamic = [] + +[project.urls] +"Bug Tracker" = "https://github.com/daohu527/imap/issues" + +[project.dependencies] +protobuf <= "3.19.4" +matplotlib +pyproj +record_msg <= "0.1.1" + +[project.scripts] +imap = "imap.main:main" diff --git a/setup.py b/setup.py deleted file mode 100644 index 062195c..0000000 --- a/setup.py +++ /dev/null @@ -1,37 +0,0 @@ -import setuptools - -with open("README.md", "r", encoding="utf-8") as fh: - long_description = fh.read() - -setuptools.setup( - name="imap_box", - version="0.1.9", - author="daohu527", - author_email="daohu527@gmail.com", - description="High-resolution map visualization and conversion tool", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/daohu527/imap", - project_urls={ - "Bug Tracker": "https://github.com/daohu527/imap/issues", - }, - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: Apache Software License", - "Operating System :: OS Independent", - ], - package_dir={"": "."}, - packages=setuptools.find_packages(where="."), - install_requires=[ - 'protobuf<=3.19.4', - 'matplotlib', - 'pyproj', - 'record_msg<=0.1.1', - ], - entry_points={ - 'console_scripts': [ - 'imap = imap.main:main', - ], - }, - python_requires=">=3.6", -)