-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (25 loc) · 785 Bytes
/
Copy pathsetup.py
File metadata and controls
35 lines (25 loc) · 785 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
33
34
35
import os
import setuptools
def src(x):
root = os.path.dirname(__file__)
return os.path.abspath(os.path.join(root, x))
def _read_file(fname, op):
with open(src(fname), "r") as fin:
return op(fin.readlines())
def readme():
return _read_file("README.md", lambda lines: "".join(lines))
def requirements():
return ["pygame", "numpy"]
setuptools.setup(
name="museumghosts",
version="0.1.3",
author="pgdr",
packages=["museumghosts"],
long_description=readme(),
long_description_content_type="text/markdown",
install_requires=requirements(),
tests_require=list(requirements()) + ["pytest"],
entry_points={"console_scripts": ["museumghosts=museumghosts:main"]},
include_package_data=True,
test_suite="tests",
)