1.Creation of base directory for the project: oereb cd oereb
-
prepare it for git git init
-
Install the virtual environnement (supposed you already have python installed) virtualenv --setuptools --no-site-packages .build/venv
-
Install a basic Pyramid component* (* if you are sure about what you do, you may activate venv with .build\venv\Scripts\activate to further ommit the path to your venv, but otherwise leave it and enter the complete path for each install command) .build\venv\Scripts\pip install pyramid==1.7.4
-
get one level up to create the empty project cd .. oereb.build\venv\Scripts\pcreate.exe -s alchemy oereb
-
Delete unused files for this project: cd oereb
- .coveragerc
- MANIFEST.in
- pytest.ini
- Maybe create an github project with this base structure and push it but first create a .gitignore file with at least *.pyc /.build as content - other files will follow... git add .gitignore git commit -m "added .gitignore"
then create your git repository and add is as remote to the local directory: git remote add upstream https://github.com/youraccount/oereb.git
-
collect complementary files created on github such as the README.md git fetch upstream git merge upstream/master
-
Add your local files and push them to the repository to get an clean initial version git add -A git commit -m "commit message" git push upstream master
-
On windows there's a problem with the shapely dependencies, so before installing all the other dependencies, one should manually install shapely and psycopg2 wheels: .build\venv\Scripts\pip install wheel [path to psycopg2-2.5.5-cp27-none-win32.whl or newer version] .build\venv\Scripts\pip install wheel [path to Shapely-1.5.13-cp27-none-win32.whl or newer version]
-
Then install the pyramid_oereb egg and the dependencies .build\venv\Scripts\pip install pyramid_oereb In the setup.py add "pyramid_oereb" in the list of requirements then run .build\venv\Scripts\pip install -e .
-
Create the standard parameters file by running: .build\venv\Scripts\create_standard_yaml
-
Now to the configuration - you could do a commit and push on git to have a clean project before configuration... :) you want to add *.egg-info/ in your .gitignore file first