published to PyPi

This commit is contained in:
Nikolay Khabarov
2017-05-14 18:02:20 +03:00
parent c0087d4fe1
commit 7b9b67f575
4 changed files with 21 additions and 3 deletions

2
MANIFEST.in Normal file
View File

@@ -0,0 +1,2 @@
include README.md
include LICENSE

View File

@@ -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) ![](https://cloud.githubusercontent.com/assets/8740775/26027974/38cc80ac-3820-11e7-8fde-9cf106d77db5.png)
# Dependencies # 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 # GCode simulation
Just a link, mostly for myself :), to a nice web software for gcode files Just a link, mostly for myself :), to a nice web software for gcode files

4
setup.cfg Normal file
View File

@@ -0,0 +1,4 @@
[metadata]
description-file = README.md
license_file = LICENSE

View File

@@ -1,9 +1,15 @@
#!/usr/bin/env python #!/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 from setuptools import setup, find_packages
setup( setup(
name="pycnc", name="pycnc",
version="0.1", version="0.1.2",
packages=find_packages(), packages=find_packages(),
scripts=['pycnc'], scripts=['pycnc'],
@@ -11,7 +17,8 @@ setup(
author="Nikolay Khabarov", author="Nikolay Khabarov",
author_email="2xl@mail.ru", author_email="2xl@mail.ru",
description="CNC machine controller", description="CNC machine controller",
long_description=long_description,
license="MIT", license="MIT",
keywords="CNC 3D printer robot raspberry pi", keywords="CNC 3D printer robot raspberry pi",
url="https://github.com/Nikolay-Kha/PyCNC", url="https://github.com/Nikolay-Kha/PyCNC",
) )