Skip to content

sitn/oereb

Repository files navigation

oereb

1.Creation of base directory for the project: oereb cd oereb

  1. prepare it for git git init

  2. Install the virtual environnement (supposed you already have python installed) virtualenv --setuptools --no-site-packages .build/venv

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

  4. get one level up to create the empty project cd .. oereb.build\venv\Scripts\pcreate.exe -s alchemy oereb

  5. Delete unused files for this project: cd oereb

  • .coveragerc
  • MANIFEST.in
  • pytest.ini
  1. 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

  1. collect complementary files created on github such as the README.md git fetch upstream git merge upstream/master

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

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

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

  5. Create the standard parameters file by running: .build\venv\Scripts\create_standard_yaml

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published