Files
befunge/setup.py
Wim Pomp 91462bea57 - store grid as ints
- fix put and get
2022-11-24 00:45:11 +01:00

38 lines
1.3 KiB
Python

import os
import setuptools
version = '2022.11.1'
with open('README.md', 'r') as fh:
long_description = fh.read()
with open(os.path.join(os.path.dirname(__file__), 'befunge', '_version.py'), 'w') as f:
f.write(f"__version__ = '{version}'\n")
try:
with open(os.path.join(os.path.dirname(__file__), '.git', 'HEAD')) as g:
head = g.read().split(':')[1].strip()
with open(os.path.join(os.path.dirname(__file__), '.git', head)) as h:
f.write("__git_commit_hash__ = '{}'\n".format(h.read().rstrip('\n')))
except Exception:
f.write(f"__git_commit_hash__ = 'unknown'\n")
setuptools.setup(
name='befunge',
version=version,
author='Wim Pomp',
author_email='wimpomp@gmail.com',
description='Befunge interpreter and debugger.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/wimpomp/befunge',
packages=setuptools.find_packages(),
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
],
python_requires='>=3.10',
install_requires=[],
entry_points={'console_scripts': ['befunge=befunge:main']}
)