diff --git a/.gitignore b/.gitignore index ad16919..6ad846b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,8 @@ .idea/ -__pycache__/ +__pycache__ *.pyc *.egg-info/ build/ dist/ - -.pytest_cache/ -.mypy_cache/ - -*.pickle diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..2b8b271 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include README.md +include LICENSE.md +include mem_edit/VERSION diff --git a/mem_edit/LICENSE.md b/mem_edit/LICENSE.md deleted file mode 120000 index 7eabdb1..0000000 --- a/mem_edit/LICENSE.md +++ /dev/null @@ -1 +0,0 @@ -../LICENSE.md \ No newline at end of file diff --git a/mem_edit/README.md b/mem_edit/README.md deleted file mode 120000 index 32d46ee..0000000 --- a/mem_edit/README.md +++ /dev/null @@ -1 +0,0 @@ -../README.md \ No newline at end of file diff --git a/mem_edit/VERSION.py b/mem_edit/VERSION.py new file mode 100644 index 0000000..e4f476e --- /dev/null +++ b/mem_edit/VERSION.py @@ -0,0 +1,4 @@ +""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """ +__version__ = ''' +0.6 +'''.strip() diff --git a/mem_edit/__init__.py b/mem_edit/__init__.py index 96e5812..a4a0178 100644 --- a/mem_edit/__init__.py +++ b/mem_edit/__init__.py @@ -17,7 +17,8 @@ from .utils import MemEditError __author__ = 'Jan Petykiewicz' -__version__ = '0.7' + +from .VERSION import __version__ version = __version__ # legacy compatibility diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 5c10cab..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,54 +0,0 @@ -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[project] -name = "mem_edit" -description = "Multi-platform library for memory editing" -readme = "README.md" -license = { file = "LICENSE.md" } -authors = [ - { name="Jan Petykiewicz", email="jan@mpxd.net" }, - ] -homepage = "https://mpxd.net/code/jan/mem_edit" -repository = "https://mpxd.net/code/jan/mem_edit" -keywords = [ - "memory", - "edit", - "editing", - "ReadProcessMemory", - "WriteProcessMemory", - "proc", - "mem", - "ptrace", - "multiplatform", - "scan", - "scanner", - "search", - "debug", - "cheat", - "trainer", - ] -classifiers = [ - "Programming Language :: Python :: 3", - "Development Status :: 4 - Beta", - "Environment :: Other Environment", - "Intended Audience :: Developers", - "License :: OSI Approved :: GNU Affero General Public License v3", - "Operating System :: POSIX :: Linux", - "Operating System :: Microsoft :: Windows", - "Topic :: Software Development", - "Topic :: Software Development :: Debuggers", - "Topic :: Software Development :: Testing", - "Topic :: System", - "Topic :: Games/Entertainment", - "Topic :: Utilities", - ] -requires-python = ">=3.7" -dynamic = ["version"] -dependencies = [ - ] - -[tool.hatch.version] -path = "mem_edit/__init__.py" - diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..b5a234e --- /dev/null +++ b/setup.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 + +from setuptools import setup, find_packages + + +with open('README.md', 'rt') as f: + long_description = f.read() + +with open('mem_edit/VERSION.py', 'rt') as f: + version = f.readlines()[2].strip() + +setup(name='mem_edit', + version=version, + description='Multi-platform library for memory editing', + long_description=long_description, + long_description_content_type='text/markdown', + author='Jan Petykiewicz', + author_email='jan@mpxd.net', + url='https://mpxd.net/code/jan/mem_edit', + keywords=[ + 'memory', + 'edit', + 'editing', + 'ReadProcessMemory', + 'WriteProcessMemory', + 'proc', + 'mem', + 'ptrace', + 'multiplatform', + 'scan', + 'scanner', + 'search', + 'debug', + 'cheat', + 'trainer', + ], + classifiers=[ + 'Programming Language :: Python :: 3', + 'Development Status :: 4 - Beta', + 'Environment :: Other Environment', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: GNU Affero General Public License v3', + 'Operating System :: POSIX :: Linux', + 'Operating System :: Microsoft :: Windows', + 'Topic :: Software Development', + 'Topic :: Software Development :: Debuggers', + 'Topic :: Software Development :: Testing', + 'Topic :: System', + 'Topic :: Games/Entertainment', + 'Topic :: Utilities', + ], + packages=find_packages(), + package_data={ + 'mem_edit': [] + }, + install_requires=[ + 'typing', + ], + extras_require={ + }, + ) +