-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (26 loc) · 747 Bytes
/
setup.py
File metadata and controls
32 lines (26 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import re
from setuptools import setup, find_packages
def get_version():
with open('snakegame/__init__.py') as f:
version_match = re.search(r"__version__ = '(.*)'", f.read())
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name="SnakeGame",
license="MIT",
version=get_version(),
author="Vincent Bédard",
description="Snake game",
long_description="",
keywords='snake game',
url="https://github.com/vedard/SnakeGame/",
packages=find_packages(exclude=["test"]),
zip_safe=True,
python_requires=">=3.6",
entry_points={
'console_scripts': [
'snakegame=snakegame:main',
],
},
)