Skip to content

Commit

Permalink
Releasing a wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
neumond committed Dec 4, 2016
1 parent aad15ec commit ed57b9b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
__pycache__/
*.pyc
/build/
/*.egg-info/
/dist/
45 changes: 45 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
from setuptools import setup
from sys import argv


def is_register_command(a):
for item in a:
if item.startswith('-'):
continue
return item in ('register', 'bdist_wheel')
return False

longdesc = None
if is_register_command(argv[1:]):
import os
with os.popen('pandoc -f markdown_github -t rst README.md') as f:
longdesc = f.read()


setup(
name='computercraft',
version='0.1.1',
description='Pythonization of ComputerCraft Minecraft mod. Write Python instead Lua!',
long_description=longdesc,
url='https://github.com/neumond/python-computer-craft',
author='Vitalik Verhovodov',
author_email='knifeslaughter@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Education',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Games/Entertainment',
],
keywords='computercraft minecraft',
packages=['computercraft', 'computercraft.subapis'],
package_data={'computercraft': ['back.lua']},
install_requires=['aiohttp'],
entry_points={
'console_scripts': [
'computercraft=computercraft.server:main',
],
},
)

0 comments on commit ed57b9b

Please sign in to comment.