wdm0006 / cookiecutter-pipproject Goto Github PK
View Code? Open in Web Editor NEWA(nother) cookiecutter template for pip-installable python projects
A(nother) cookiecutter template for pip-installable python projects
My surname contains an apostrophe.
The setup.py template uses this without escaping:
author='{{cookiecutter.full_name}}',
This leads to a SytaxError when I try to make use of setup.py:
python setup.py develop
File "setup.py", line 36
author='Dan O'Huiginn',
^
SyntaxError: invalid syntax
It looks like the same is true of all the other data included in setup.py
I looked around at how other cookiecutters handle this. Most don't, but the least-bad was:
cookiecutter-pypackage:
author="{{ cookiecutter.full_name.replace('"', '\"') }}",
In setup.py the following statement:
dependency_links = [x.strip().replace('git+', '') for x in all_reqs if 'git+' not in x]
seems contradictory. If the list has no items with 'git+' in them why bother to replace 'git+' with ''?
i.e. the 'not' is incorrect. Should it also not be x.startswith('git+')?
We should probably have one test example in this template.
Running pytest on it fails (collected 0 items
-> return status 5) because there is actually no test...
There is a typo in setup.py
, line 38
. depedency
was misspelt.
depedency_links=dependency_links
should be dependency_links=dependency_links
I think it would be nice to have a manual or instruction file on how to use and what do the different files do, well, at least some links to get started
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.