Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating development and production environments (step by step) #164

Open
evereux opened this issue Oct 11, 2023 · 2 comments
Open

Creating development and production environments (step by step) #164

evereux opened this issue Oct 11, 2023 · 2 comments

Comments

@evereux
Copy link
Owner

evereux commented Oct 11, 2023

Development and production environments.

How to make seperate environments for project and development purposes.

The base folder in your home directory. Please replace ~ with
path you wish to use.

cd ~
mkdir pycatia-projects
cd .\pycatia-projects\

github (development)

cd .\pycatia-projects\
# deactivate any virtualenv if active
deactivate
# clone the github repo
git clone https://github.com/evereux/pycatia.git pycatia-git
cd pycatia-git
python -m virtualenv env
.\env\Scripts\activate
pip install -r .\requirements\requirements.txt

pypi (production)

# deactivate any virtualenv if active
deactivate
cd ~\pycatia-projects\
# first we'll create the project that uses pycatia from pypi
mkdir pycatia-pypi
cd .\pycatia-pypi\
# install and activate the virtualenv
python -m virtualenv env
.\env\Scripts\activate
pip install pycatia

Resultant folder structure:

Screenshot 2023-10-11 154250

Each environment (pycatia-git, pycatia-pypi) should be opened
independently with their respective virtualenvs activated within your IDE.

@ptm-tm
Copy link
Contributor

ptm-tm commented Oct 12, 2023

pls note me what can i do, if i need to see mistake error.

im create venv. and clone my git project in any folder
than i dev install my module pip install -e "git project folder"
and continue develop in git folder without install to side package.
or u can add your git folder in python path, but that case u will see pylint error but all will work.

@ptm-tm
Copy link
Contributor

ptm-tm commented Oct 12, 2023

pip install -e "git project folder" dont install your project, only make symlink to folder in pyhton path... every time when you run your script in your enviroment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants