click-contrib / click-datetime Goto Github PK
View Code? Open in Web Editor NEWDatetime type support for click.
Datetime type support for click.
Hi,
Thanks for your good library!
In setup.py
, README.md
is opend.
with open('README.md') as f:
readme = f.read()
But the file is not in click-datetime-0.2.tar.gz
on PyPi, which causes a FileNotFound error in case of non-binary installation.
This project is very usable. The README should show examples and install instructions.
Could you add a date type, for when we want dates without times?
Fix was merged here: assiotis#1
Without this I can't build this from source, which I would like due to other packages i'm installing at the same time requiring pip --global-options
, which disable use of wheels.
Is it possible to make a new patch version of click-datetime and release it to pypi?
If I:
@click.option(
'--start', '-s',
type=Datetime(format='%d/%m/%y'),
default=TODAY,
help='The start date',
required=True,
show_default=True,
)
Then I see:
-s, --start DATE The end date [default: 2018-09-10 11:30:58.726917; required]
I could probably raise this upstream but then it is also the responsibility here too?
Can help submit a patch if we're in agreement on a direction!
Thanks for the cool library.
It appears that the manifest is missing at least one file necessary to build
from the sdist for version 0.2. You're in good company, about 5% of other
projects updated in the last year are also missing files.
+ /tmp/venv/bin/pip3 wheel --no-binary click-datetime -w /tmp/ext click-datetime==0.2
Looking in indexes: http://10.10.0.139:9191/root/pypi/+simple/
Collecting click-datetime==0.2
Downloading http://10.10.0.139:9191/root/pypi/%2Bf/c56/2ad24b3711784/click-datetime-0.2.tar.gz (1.6 kB)
ERROR: Command errored out with exit status 1:
command: /tmp/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-ot6tapin/click-datetime/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-ot6tapin/click-datetime/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-wheel-ot6tapin/click-datetime/pip-egg-info
cwd: /tmp/pip-wheel-ot6tapin/click-datetime/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-wheel-ot6tapin/click-datetime/setup.py", line 5, in <module>
with open('README.md') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'README.md'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Just as a thought/suggestion... maybe consider using python-dateutil parser so that, instead of having to define a format, it can "guess" one... I've found it to be pretty accurate.
https://dateutil.readthedocs.io/en/stable/parser.html
Thanks for this regardless... was already a big timesaver!
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.