Skip to content

Commit d2555cf

Browse files
authored
Migrate to hatch (#8)
1 parent c15b2d7 commit d2555cf

File tree

3 files changed

+46
-41
lines changed

3 files changed

+46
-41
lines changed

MANIFEST.in

Lines changed: 0 additions & 5 deletions
This file was deleted.

pyproject.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[build-system]
2+
requires = [
3+
"hatchling",
4+
]
5+
build-backend = "hatchling.build"
6+
7+
[project]
8+
name = "pyjs-code-runner"
9+
description = "A driver to run wasm code from an emscripten-forge coda env like normal python code"
10+
readme = "README.md"
11+
authors = [
12+
{ name = "Thorsten Beier", email = "[email protected]" },
13+
]
14+
keywords = [
15+
"pyjs_code_runner",
16+
]
17+
classifiers = [
18+
"Intended Audience :: Developers",
19+
"Natural Language :: English",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
]
23+
dependencies = [
24+
"appdirs",
25+
"empack >=3.0.0",
26+
"playwright",
27+
"rich",
28+
"typer",
29+
]
30+
version = "2.0.0"
31+
32+
[project.license]
33+
file = "LICENSE"
34+
35+
[project.scripts]
36+
pyjs_code_runner = "pyjs_code_runner.cli.main:app"
37+
38+
[project.urls]
39+
Homepage = "https://github.com/emscripten-forge/pyjs-code-runner"
40+
41+
[tool.hatch.build.targets.sdist]
42+
exclude = [
43+
".github",
44+
]

setup.py

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,2 @@
1-
#!/usr/bin/env python
2-
3-
"""The setup script."""
4-
from setuptools import find_packages, setup
5-
6-
with open("README.md") as readme_file:
7-
readme = readme_file.read()
8-
9-
requirements = ["typer", "playwright", "appdirs", "empack >=3.0.0", "rich"]
10-
11-
setup(
12-
author="Thorsten Beier",
13-
author_email="[email protected]",
14-
classifiers=[
15-
"Intended Audience :: Developers",
16-
"Natural Language :: English",
17-
"Programming Language :: Python :: 3.10",
18-
"Programming Language :: Python :: 3.11",
19-
],
20-
include_package_data=True,
21-
description="pyjs_code_runner emscripten+boa",
22-
entry_points={
23-
"console_scripts": [
24-
"pyjs_code_runner=pyjs_code_runner.cli.main:app",
25-
],
26-
},
27-
install_requires=requirements,
28-
long_description=readme,
29-
long_description_content_type="text/markdown",
30-
keywords="pyjs_code_runner",
31-
name="pyjs_code_runner",
32-
packages=find_packages(),
33-
url="https://github.com/emscripten-forge/pyjs_code_runner",
34-
version="2.0.0",
35-
zip_safe=False,
36-
)
1+
# setup.py shim for use with applications that require it.
2+
__import__("setuptools").setup()

0 commit comments

Comments
 (0)