GithubHelp home page GithubHelp logo

wdm0006 / cookiecutter-pipproject Goto Github PK

View Code? Open in Web Editor NEW
79.0 79.0 35.0 20 KB

A(nother) cookiecutter template for pip-installable python projects

Python 42.57% Shell 1.58% Makefile 28.53% Batchfile 27.32%

cookiecutter-pipproject's People

Contributors

asmodehn avatar bmihelac avatar marco-santoni avatar ojengwa avatar wdm0006 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cookiecutter-pipproject's Issues

String escaping in setup.py

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('"', '\"') }}",

Incorrect list comprehension

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+')?

Actual tests

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...

Typo in setup.py

There is a typo in setup.py, line 38. depedency was misspelt.
depedency_links=dependency_links should be dependency_links=dependency_links

Lacking instructions to use

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.