aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-03-31 20:11:43 +0200
committerKarel Kočí <cynerd@email.cz>2016-03-31 21:17:33 +0200
commit46bcaf84cbc806fc34213c3fb88a62bec7d761e4 (patch)
tree8ee3b7296f7dd2cd56de88d75943a79e87c88c02
parent77cab339c532207378212ae09f4ba377d537cfcd (diff)
downloadmcserver-wrapper-46bcaf84cbc806fc34213c3fb88a62bec7d761e4.tar.gz
mcserver-wrapper-46bcaf84cbc806fc34213c3fb88a62bec7d761e4.tar.bz2
mcserver-wrapper-46bcaf84cbc806fc34213c3fb88a62bec7d761e4.zip
Change setup script and add ignores for build folderv0.3
Fixing setup script while setting up project to pypi.
-rw-r--r--.gitignore2
-rwxr-xr-xsetup.py16
2 files changed, 12 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 29d0c5a..1f175c8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,8 @@
.*
__*__
*.egg-info
+build
+dist
!.gitignore
!.travis.yml
diff --git a/setup.py b/setup.py
index d2a6baa..7541d25 100755
--- a/setup.py
+++ b/setup.py
@@ -1,15 +1,19 @@
#!/usr/bin/env python3
-from setuptools import setup, find_packages
from os import path
+from setuptools import setup
-here = path.abspath(path.dirname(__file__))
-with open(path.join(here, 'README.md'), encoding='utf-8') as f:
- long_description = f.read()
+readme_file = path.join(path.abspath(path.dirname(__file__)), 'README.md')
+long_description = ""
+try:
+ import pypandoc
+ long_description = pypandoc.convert(readme_file, 'rst', format='md')
+except (IOError, ImportError):
+ print("Pandoc not found. Long_description conversion failure.")
setup(
name='mcserver-wrapper',
- version='0.3.0',
+ version='0.3.6',
description="Minecraft server wrapper",
long_description=long_description,
url="https://github.com/Cynerd/mcserver-wrapper",
@@ -17,7 +21,7 @@ setup(
author_email="cynerd@email.cz",
license="GPLv2",
- clasifiers=[
+ classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',