From a0259707b22b7c90b1d80d5d7df535b17f91a863 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sun, 5 Dec 2021 21:17:05 +0100 Subject: [PATCH] Released v1.0.0 to PyPi --- .gitignore | 2 ++ README.md | 5 +++++ project.toml | 4 ++++ riscemu/__init__.py | 3 ++- setup.py | 31 +++++++++++++++++++++++++++++++ test.asm | 0 6 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 project.toml create mode 100644 setup.py delete mode 100644 test.asm diff --git a/.gitignore b/.gitignore index 57e5c62..5fe8770 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ venv __pycache__ .mypy_cache +dist/ +riscemu.egg-info diff --git a/README.md b/README.md index 23ccfa6..e47bfcf 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,11 @@ This emulator contains: * Basic implementation of some syscalls * A debugging environment +## Installation: + +```bash +$ pip install riscemu +``` ## Running simple Assembly: A couple of basic assembly programs are provided inside `examples/`, such as [`hello-world.asm`](examples/hello-world.asm). diff --git a/project.toml b/project.toml new file mode 100644 index 0000000..1870a2e --- /dev/null +++ b/project.toml @@ -0,0 +1,4 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + diff --git a/riscemu/__init__.py b/riscemu/__init__.py index bde98e7..e006fb3 100644 --- a/riscemu/__init__.py +++ b/riscemu/__init__.py @@ -27,4 +27,5 @@ from .CPU import CPU from .Config import RunConfig __author__ = "Anton Lydike " -__copyright__ = "Copyright 2021 Anton Lydike" \ No newline at end of file +__copyright__ = "Copyright 2021 Anton Lydike" +__version__ = '1.0.0' \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..238e88f --- /dev/null +++ b/setup.py @@ -0,0 +1,31 @@ +import setuptools + +import riscemu + +with open("README.md", "r", encoding="utf-8") as fh: + long_description = fh.read() + +setuptools.setup( + name="riscemu", + version=riscemu.__version__, + author="Anton Lydike", + author_email="pip@antonlydike.de", + description="RISC-V userspace and privileged emulator", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/antonlydike/riscemu", + project_urls={ + "Bug Tracker": "https://github.com/AntonLydike/riscemu/issues", + }, + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], + package_dir={"": "."}, + packages=["riscemu", "riscemu.decoder", "riscemu.instructions", "riscemu.IO", "riscemu.priv"], + python_requires=">=3.6", + install_requires=[ + "pyelftools~=0.27" + ] +) \ No newline at end of file diff --git a/test.asm b/test.asm deleted file mode 100644 index e69de29..0000000