evasseure / cprint Goto Github PK
View Code? Open in Web Editor NEWPrinting in color in python
License: MIT License
Printing in color in python
License: MIT License
If this is a wanted feature, I might submit a PR, but I won't submit one if you don't want the feature. :)
Try this in the setup.py:
with open("README.md","r") as file:
desc = file.read()
and then use long_description=contents
and long_description_content_type='text/markdown'
as parameters to setup()
.
I had an issue installing the package, and after downloading the .tar.gz
from PyPi, I noticed that there were a pyproject.toml
that is not in the repository.
For a reason unknown, it prevents installation on my side when installing in an environment generated using pipenv:
pipenv run pip install cprint
Collecting cprint
Downloading cprint-1.2.1.tar.gz (2.5 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
ERROR: Requested cprint from https://files.pythonhosted.org/packages/b4/7b/5fac29831c77a9ccdfd4d3dfec9e142a977e1c6bf6167f50beaa3220a04d/cprint-1.2.1.tar.gz#sha256=a8ebbae938b5481b51298e6b5473795a0af2d309a30e4b5d83b692ec9abbe20b has different version in metadata: '0.1.0'
When installing out of the environment, it did work by getting the previous version:
pip install cprint
Collecting cprint
Using cached cprint-1.2.1.tar.gz (2.5 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
WARNING: Discarding https://files.pythonhosted.org/packages/b4/7b/5fac29831c77a9ccdfd4d3dfec9e142a977e1c6bf6167f50beaa3220a04d/cprint-1.2.1.tar.gz#sha256=a8ebbae938b5481b51298e6b5473795a0af2d309a30e4b5d83b692ec9abbe20b (from https://pypi.org/simple/cprint/). Requested cprint from https://files.pythonhosted.org/packages/b4/7b/5fac29831c77a9ccdfd4d3dfec9e142a977e1c6bf6167f50beaa3220a04d/cprint-1.2.1.tar.gz#sha256=a8ebbae938b5481b51298e6b5473795a0af2d309a30e4b5d83b692ec9abbe20b has inconsistent version: filename has '1.2.1', but metadata has '0.1.0'
Downloading cprint-1.2.tar.gz (1.4 kB)
Using legacy 'setup.py install' for cprint, since package 'wheel' is not installed.
Installing collected packages: cprint
Running setup.py install for cprint ... done
Successfully installed cprint-1.2
Here are the contents of the pyproject.toml
file:
[tool.poetry]
name = "cprint"
version = "0.1.0"
description = ""
authors = ["Erwan <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.8"
tox = "^3.21.4"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
Installing in pipenv by setting the version to ==1.2
does work without any issue.
what license is cprint distributed under?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.