Commit 1b363c81 authored by Fabrice Salvaire's avatar Fabrice Salvaire

added tools

parent 853fc87c
####################################################################################################
#
# PythonicGCodeMachine - @licence_header_description@
# Copyright (C) 2018 Fabrice Salvaire
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
####################################################################################################
#! /usr/bin/bash
find PythonicGCodeMachine -name "flycheck*.py" -exec rm {} \;
find PythonicGCodeMachine -name "parsetab.py" -exec rm {} \;
api=doc/sphinx/source/api
rm -rf ${api}
echo
echo Generate RST API files
pyterate-rst-api PythonicGCodeMachine
echo
echo Run Sphinx
pushd doc/sphinx/
./make-html #--clean
popd
#! /usr/bin/env python3
# -*- Python -*-
####################################################################################################
import subprocess
from setup_data import long_description
####################################################################################################
with open('README.rst', 'w') as f:
f.write(long_description)
subprocess.call(('rst2html', 'README.rst', 'README.html'))
#! /bin/bash
# bdist
# python setup.py check --verbose --metadata --restructuredtext --strict && \
# python setup.py register sdist upload
python setup.py bdist_wheel
twine register dist/*whl
gpg --detach-sign -a dist/*whl
twine upload dist/*
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment