Update readme & setup.py: make project installable from pypi again

This commit is contained in:
neumond 2020-07-17 23:34:13 +03:00
parent 2b5f9f39fa
commit 3c8aa784bc
2 changed files with 4 additions and 16 deletions

View file

@ -7,7 +7,7 @@ Never use code in this repo if you don't trust your players!
1. Download and install wheel from github releases
```sh
pip install computercraft-*.whl
pip install computercraft
```
2. Enable localhost in mod server config

View file

@ -1,20 +1,8 @@
from pathlib import Path
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()
longdesc = (Path(__file__).parent / 'README.md').read_text()
setup(
@ -22,6 +10,7 @@ setup(
version='0.3.0',
description='Pythonization of ComputerCraft Minecraft mod. Write Python instead Lua!',
long_description=longdesc,
long_description_content_type='text/markdown',
url='https://github.com/neumond/python-computer-craft',
author='Vitalik Verhovodov',
author_email='knifeslaughter@gmail.com',
@ -30,7 +19,6 @@ setup(
'Development Status :: 3 - Alpha',
'Intended Audience :: Education',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Games/Entertainment',