From 6f01a4dbb901eee970c3c4b9bb18844016b0ab5e Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 21 Jan 2019 12:49:51 +0000 Subject: [PATCH] Prep for 0.0.1 --- Makefile | 7 +++++-- library/CHANGELOG.txt | 4 ++++ library/LICENSE.txt | 21 +++++++++++++++++++++ library/MANIFEST.in | 5 +++++ library/setup.py | 17 ++++++++++------- 5 files changed, 45 insertions(+), 9 deletions(-) create mode 100644 library/CHANGELOG.txt create mode 100644 library/LICENSE.txt create mode 100644 library/MANIFEST.in diff --git a/Makefile b/Makefile index ee7b766..93b0bc8 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ .PHONY: usage install uninstall usage: @echo "Usage: make , where target is one of:\n" - @echo "install: install the library locally from source" - @echo "uninstall: uninstall the local library" + @echo "install: install the library locally from source" + @echo "uninstall: uninstall the local library" @echo "python-readme: generate library/README.rst from README.md" @echo "python-wheels: build python .whl files for distribution" @echo "python-sdist: build python source distribution" @@ -42,3 +42,6 @@ python-dist: python-clean python-wheels python-sdist python-deploy: python-dist twine upload library/dist/* + +python-deploy-test: python-dist + twine upload --repository-url https://test.pypi.org/legacy/ library/dist/* diff --git a/library/CHANGELOG.txt b/library/CHANGELOG.txt new file mode 100644 index 0000000..0f98d12 --- /dev/null +++ b/library/CHANGELOG.txt @@ -0,0 +1,4 @@ +0.0.1 +----- + +* Initial Release diff --git a/library/LICENSE.txt b/library/LICENSE.txt new file mode 100644 index 0000000..aed751a --- /dev/null +++ b/library/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Pimoroni Ltd. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/library/MANIFEST.in b/library/MANIFEST.in new file mode 100644 index 0000000..db398bf --- /dev/null +++ b/library/MANIFEST.in @@ -0,0 +1,5 @@ +include CHANGELOG.txt +include LICENSE.txt +include README.rst +include setup.py +recursive-include ST7735 *.py diff --git a/library/setup.py b/library/setup.py index 53e3a36..1dc3f91 100644 --- a/library/setup.py +++ b/library/setup.py @@ -10,10 +10,13 @@ classifiers = ['Development Status :: 4 - Beta', 'Topic :: Software Development', 'Topic :: System :: Hardware'] -setup(name = 'ST7735', - version = '0.0.1', - description = 'Library to control an ST7735 168x80 TFT LCD display.', - license = 'MIT', - classifiers = classifiers, - url = 'https://github.com/pimoroni/st7735-160x80-python/', - packages = find_packages()) +setup(name='ST7735', + version='0.0.1', + description='Library to control an ST7735 168x80 TFT LCD display.', + long_description=open('README.rst').read() + '\n' + open('CHANGELOG.txt').read(), + license='MIT', + author='Philip Howard', + author_email='phil@pimoroni.com', + classifiers=classifiers, + url='https://github.com/pimoroni/st7735-160x80-python/', + packages=find_packages())