Skip to content

Commit 34cec8b

Browse files
committed
add setup.py
1 parent cd2664b commit 34cec8b

12 files changed

+45
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
*.pyc
2+
*.egg-info
3+
/build
4+
/dist
25

gdanmaku/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VERSION = "0.2-dev"
2+

app.py renamed to gdanmaku/app.py

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

setup.py

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env python2
2+
# -*- coding:utf-8 -*-
3+
import os
4+
import sys
5+
6+
try:
7+
from setuptools import setup
8+
except ImportError:
9+
from distutils.core import setup
10+
11+
if sys.platform == "win32":
12+
import py2exe
13+
14+
15+
packages = ["gdanmaku"]
16+
requires = ["requests"]
17+
18+
with open("README.md") as f:
19+
readme = f.read()
20+
21+
setup(
22+
name="gdanmaku",
23+
version="0.2-dev",
24+
description="Display danmaku on any screen",
25+
long_description=readme,
26+
author="Justin Wong",
27+
author_email="[email protected]",
28+
url="https://github.com/tuna/gdanmaku/",
29+
packages=packages,
30+
package_data={'': ['LICENCE', ], 'gdanmaku': [os.path.join('images', '*.png'), ]},
31+
package_dir={'gdanmaku': 'gdanmaku'},
32+
include_package_data=True,
33+
install_requires=requires,
34+
license="GPLv3",
35+
entry_points={
36+
'console_scripts': ['gdanmaku = gdanmaku.danmaku:main'],
37+
},
38+
)
39+
40+
# vim: ts=4 sw=4 sts=4 expandtab

0 commit comments

Comments
 (0)