diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..04f196a --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include README.md +include LICENSE diff --git a/README.md b/README.md index b252c74..c9eb96b 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,12 @@ sudo ln -s /opt/pypy/bin/pypy /usr/local/bin/pypy ![](https://cloud.githubusercontent.com/assets/8740775/26027974/38cc80ac-3820-11e7-8fde-9cf106d77db5.png) # Dependencies -Nothing. Just pure Python code. +Nothing for runtime. Just pure Python code. +For uploading to PyPi there is a need in `pandoc`: +```bash +sudo dnf install pandoc +sudo pip install pypandoc +``` # GCode simulation Just a link, mostly for myself :), to a nice web software for gcode files diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..486f4bd --- /dev/null +++ b/setup.cfg @@ -0,0 +1,4 @@ +[metadata] +description-file = README.md +license_file = LICENSE + diff --git a/setup.py b/setup.py index 806f2fa..e61fde9 100755 --- a/setup.py +++ b/setup.py @@ -1,9 +1,15 @@ #!/usr/bin/env python +try: + import pypandoc + long_description = pypandoc.convert('README.md', 'rst') +except(IOError, ImportError): + long_description = open('README.md').read() + from setuptools import setup, find_packages setup( name="pycnc", - version="0.1", + version="0.1.2", packages=find_packages(), scripts=['pycnc'], @@ -11,7 +17,8 @@ setup( author="Nikolay Khabarov", author_email="2xl@mail.ru", description="CNC machine controller", + long_description=long_description, license="MIT", keywords="CNC 3D printer robot raspberry pi", url="https://github.com/Nikolay-Kha/PyCNC", -) \ No newline at end of file +)