diff --git a/pyproject.toml b/pyproject.toml index 07ebe13..5a04535 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,52 @@ requires = ["setuptools>=62.3"] build-backend = "setuptools.build_meta" +[project] +name = "am2r_yams" +version = "2.0.0" +authors = [ + {name = "Miepee"}, +] +description = "An open source randomizer patcher for AM2R." +readme = "README.md" +license = {file = "LICENSE"} +requires-python = ">=3.11" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Development Status :: 3 - Alpha", + "Programming Language :: Python :: 3.11" + +] +dependencies = [ + "pythonnet", +] + +[project.optional-dependencies] +test = [ + "pytest", + "pytest-cov", + "pytest-mock", +] + + +[project.urls] +Repository = "https://github.com/randovania/YAMS" + + +# Entry Points for PyInstaller +[project.entry-points."pyinstaller40"] +hook-dirs = "am2r_yams.__pyinstaller:get_hook_dirs" + + +[tool.setuptools] +packages = ["am2r_yams"] + +[tool.setuptools.package-data] +"*" = ["yams/**"] +"yams_py.yams" = ["**"] + + [tool.pytest.ini_options] minversion = "6.0" testpaths = [ diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 21edf88..0000000 --- a/setup.cfg +++ /dev/null @@ -1,54 +0,0 @@ -[metadata] -name = am2r_yams -version = 2.0.0 -description = An open source randomizer patcher for AM2R. -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/Miepee/YAMS -author = Miepee -license_files = - LICENSE - -classifiers = - Programming Language :: Python :: 3 - License :: OSI Approved :: GNU General Public License v3 (GPLv3) - Development Status :: 3 - Alpha - Programming Language :: Python :: 3.11 - -[options] -zip_safe = False -packages = find_namespace: -include_package_data = True -python_requires = >=3.11 -install_requires = - pythonnet - -[options.package_data] -* = yams/** -yams_py.yams = ** - - -[options.extras_require] -test = - pytest - pytest-cov - pytest-mock - - -# -# Entry Points for PyInstaller -# --------------------------------- -[options.entry_points] -pyinstaller40 = - # .. _hook_registration: - # - # **Hook registration**: This entry point refers to a function - # that will be invoked with no parameters. It must return a - # sequence of strings, each element of which provides an - # additional absolute path to search for hooks. This is equivalent - # to passing the ``additional-hooks-dir`` `command-line option - # `_ - # to PyInstaller for each string in the sequence. - # - # In this project, the function is ``get_hook_dirs``. - hook-dirs = am2r_yams.__pyinstaller:get_hook_dirs