diff --git a/readme.md b/readme.md index 0e638bf..4cda9f2 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@ *Command line User Tools for Input Easification* -[![Build Status](https://travis-ci.org/Kamik423/cutie.svg?branch=master)](https://travis-ci.org/Kamik423/cutie) +[![Build Status](https://travis-ci.org/Kamik423/cutie.svg?branch=main)](https://travis-ci.org/Kamik423/cutie) [![Coverage Status](https://coveralls.io/repos/github/Kamik423/cutie/badge.svg?branch=coveralls_integration)](https://coveralls.io/github/Kamik423/cutie?branch=coveralls_integration) [![PRs Welcome](https://img.shields.io/badge/Homepage-GitHub-green.svg)](https://github.com/kamik423/cutie) [![PyPI version](https://badge.fury.io/py/cutie.svg)](https://badge.fury.io/py/cutie) @@ -20,12 +20,12 @@ It will only return once the user inputs a number in that format, showing a warn It should work on all major operating systems (Mac, Linux, Windows). -![example](https://github.com/Kamik423/cutie/blob/master/example.gif?raw=true) +![example](https://github.com/Kamik423/cutie/blob/main/example.gif?raw=true) ## Usage These are the main functions of cutie. -[example.py](https://github.com/Kamik423/cutie/blob/master/example.py) contains an extended version of this also showing off the `select_multiple` option. +[example.py](https://github.com/Kamik423/cutie/blob/main/example.py) contains an extended version of this also showing off the `select_multiple` option. ```python import cutie @@ -91,7 +91,7 @@ pip3 install -r requirements.txt ## Documentation All functions of cutie are explained here. -If something is still unclear or you have questions about the implementation just take a look at [cutie.py](https://github.com/Kamik423/cutie/blob/master/cutie.py). +If something is still unclear or you have questions about the implementation just take a look at [cutie.py](https://github.com/Kamik423/cutie/blob/main/cutie.py). The implementation is rather straight forward. ### get\_number @@ -200,7 +200,7 @@ In that case space bar and enter select a line. The button can be hidden. In that case space bar selects the line and enter confirms the selection. -This is not in the example in this readme, but in [example.py](https://github.com/Kamik423/cutie/blob/master/example.py). +This is not in the example in this readme, but in [example.py](https://github.com/Kamik423/cutie/blob/main/example.py). ```python packages_to_update = cutie.select_multiple( @@ -339,7 +339,7 @@ If you have a project that uses cutie please let me know and I'll link it here! ## License -The project is licensed under the [MIT-License](https://github.com/Kamik423/cutie/blob/master/license.md). +The project is licensed under the [MIT-License](https://github.com/Kamik423/cutie/blob/main/license.md). ## Acknowledgments diff --git a/setup.py b/setup.py index 4d8ae34..525b7ab 100755 --- a/setup.py +++ b/setup.py @@ -1,12 +1,19 @@ """Setup module for PyPI / pip integration. """ -import cutie +import imp + import setuptools with open("readme.md", encoding="utf-8") as file: LONG_DESCRIPTION = file.read() +with open("cutie.py", encoding="utf-8") as file: + # only go to first import since that module is not yet installed + CUTIE_CONTENTS = file.read().split("import")[0] + +cutie = imp.new_module("cutie") +exec(CUTIE_CONTENTS, cutie.__dict__) setuptools.setup( name="cutie",