Skip to content

Commit ed57b9b

Browse files
committed
Releasing a wheel
1 parent aad15ec commit ed57b9b

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
__pycache__/
22
*.pyc
3+
/build/
4+
/*.egg-info/
5+
/dist/

setup.py

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
from setuptools import setup
2+
from sys import argv
3+
4+
5+
def is_register_command(a):
6+
for item in a:
7+
if item.startswith('-'):
8+
continue
9+
return item in ('register', 'bdist_wheel')
10+
return False
11+
12+
longdesc = None
13+
if is_register_command(argv[1:]):
14+
import os
15+
with os.popen('pandoc -f markdown_github -t rst README.md') as f:
16+
longdesc = f.read()
17+
18+
19+
setup(
20+
name='computercraft',
21+
version='0.1.1',
22+
description='Pythonization of ComputerCraft Minecraft mod. Write Python instead Lua!',
23+
long_description=longdesc,
24+
url='https://github.com/neumond/python-computer-craft',
25+
author='Vitalik Verhovodov',
26+
author_email='knifeslaughter@gmail.com',
27+
license='MIT',
28+
classifiers=[
29+
'Development Status :: 3 - Alpha',
30+
'Intended Audience :: Education',
31+
'License :: OSI Approved :: MIT License',
32+
'Programming Language :: Python :: 3.5',
33+
'Programming Language :: Python :: 3.6',
34+
'Topic :: Games/Entertainment',
35+
],
36+
keywords='computercraft minecraft',
37+
packages=['computercraft', 'computercraft.subapis'],
38+
package_data={'computercraft': ['back.lua']},
39+
install_requires=['aiohttp'],
40+
entry_points={
41+
'console_scripts': [
42+
'computercraft=computercraft.server:main',
43+
],
44+
},
45+
)

0 commit comments

Comments
 (0)