First commit.
This commit is contained in:
37
setup.py
Normal file
37
setup.py
Normal file
@@ -0,0 +1,37 @@
|
||||
import os
|
||||
import setuptools
|
||||
|
||||
version = '2022.11.0'
|
||||
|
||||
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']}
|
||||
)
|
||||
Reference in New Issue
Block a user