diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 3795446..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,5 +0,0 @@ -include pyjs_code_runner/html/browser_main.html -include pyjs_code_runner/html/browser_worker.html -include pyjs_code_runner/js/utils.js -include pyjs_code_runner/js/worker.js -include pyjs_code_runner/backend/node/node_main.js \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..7fa7966 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,44 @@ +[build-system] +requires = [ + "hatchling", +] +build-backend = "hatchling.build" + +[project] +name = "pyjs-code-runner" +description = "A driver to run wasm code from an emscripten-forge coda env like normal python code" +readme = "README.md" +authors = [ + { name = "Thorsten Beier", email = "derthorstenbeier@gmail.com" }, +] +keywords = [ + "pyjs_code_runner", +] +classifiers = [ + "Intended Audience :: Developers", + "Natural Language :: English", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", +] +dependencies = [ + "appdirs", + "empack >=3.0.0", + "playwright", + "rich", + "typer", +] +version = "2.0.0" + +[project.license] +file = "LICENSE" + +[project.scripts] +pyjs_code_runner = "pyjs_code_runner.cli.main:app" + +[project.urls] +Homepage = "https://github.com/emscripten-forge/pyjs-code-runner" + +[tool.hatch.build.targets.sdist] +exclude = [ + ".github", +] diff --git a/setup.py b/setup.py index 7b73ba8..b6c6681 100644 --- a/setup.py +++ b/setup.py @@ -1,36 +1,2 @@ -#!/usr/bin/env python - -"""The setup script.""" -from setuptools import find_packages, setup - -with open("README.md") as readme_file: - readme = readme_file.read() - -requirements = ["typer", "playwright", "appdirs", "empack >=3.0.0", "rich"] - -setup( - author="Thorsten Beier", - author_email="derthorstenbeier@gmail.com", - classifiers=[ - "Intended Audience :: Developers", - "Natural Language :: English", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - ], - include_package_data=True, - description="pyjs_code_runner emscripten+boa", - entry_points={ - "console_scripts": [ - "pyjs_code_runner=pyjs_code_runner.cli.main:app", - ], - }, - install_requires=requirements, - long_description=readme, - long_description_content_type="text/markdown", - keywords="pyjs_code_runner", - name="pyjs_code_runner", - packages=find_packages(), - url="https://github.com/emscripten-forge/pyjs_code_runner", - version="2.0.0", - zip_safe=False, -) +# setup.py shim for use with applications that require it. +__import__("setuptools").setup()