Comments (4)
Now sure what you're asking of me here. The packaging provided by this template should work in any environment than works with source or wheel distributions, and that includes virtualenvs.
Clarify what this means:
During set up, this template installs Python packages through pip to the Python user install directory
What "set up"?
from cookiecutter-pylibrary.
What I meant to suggest was adding the option to set up a virtual environment after executing cookiecutter ...
. Something like
1 - no
2 - yes
Install dependencies inside venv? [1]:
By selecting option 1, everything would happen as right now. By selecting option 2 though a virtual environment would be created inside the rendered template, and it would then be sourced so tox
and other template dependencies were installed in the venv.
I thought this would be a good feature since I wasn't expecting installing a library to my user as a side effect of cloning a cookiecutter template, and because some users prefer installing packages using pip only on virtual environments.
from cookiecutter-pylibrary.
Adding this would involve adding the option to the cookiecutter
menu and then modifying this part of the post-gen hook
cookiecutter-pylibrary/hooks/post_gen_project.py
Lines 135 to 141 in 2b2d9db
if this is a use case this template wants to support of course.
Implementing it should be straightforward, except perhaps for supporting the different shells and their different ways of activating the venv.
from cookiecutter-pylibrary.
I don't think this is a widely accepted workflow. I am using pipx to install tooling (including tox) ... and all this seems very crummy and will create support work for me, something I want to avoid especially when it's not my daily workflow.
from cookiecutter-pylibrary.
Related Issues (20)
- Shortcut option to disable python 2 versions HOT 10
- Adding GitHub Actions workflows HOT 1
- Remove Landscape.io
- tox bootstrap fails HOT 2
- Error with bumpversion if not github hosting HOT 4
- pytest command does not work without workarounds HOT 5
- CI Bootstrapping errors HOT 8
- Distribution vs package naming HOT 4
- linter_config; or more broadly, options to enable automation HOT 3
- Generating CI configuration step fails
- Bad ``pre-commit`` reference for ``flake8``
- WARNING: autodoc: failed to import module 'XXX'; the following exception was raised: No module named 'pandas' HOT 5
- codecov coverage uploader is deprecated
- bumpversion didn't find 'version='0.0.0'' in file: 'setup.py'
- TemplateNotFound: .github\workflows\github-actions.yml HOT 1
- Multiple extensions modules from different languages HOT 2
- Bad configuration when sphnix_theme is set to furo
- Possible skip logic issue on codacy question? HOT 2
- ``bump2version`` is deprecated, new development is in **Bump My Version** HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cookiecutter-pylibrary.