Skip to content

Commit

Permalink
Adding test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis committed Mar 28, 2014
1 parent 04fccbe commit 446c0e9
Show file tree
Hide file tree
Showing 5,737 changed files with 1,928,086 additions and 9 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
###SublimeText###
*.pyc

# SublimeText project files
*.sublime-workspace
Expand Down
34 changes: 25 additions & 9 deletions README.md
Expand Up @@ -21,42 +21,58 @@ Depending on your environment, you'll want to use the appropriate script. All d
#### Windows 32 bit
###### Python 2.5
```
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win32-py2.5#egg=psycopg2
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win32-py25#egg=psycopg2
```
###### Python 2.6
```
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win32-py2.6#egg=psycopg2
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win32-py26#egg=psycopg2
```
###### Python 2.7
```
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win32-py2.7#egg=psycopg2
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win32-py27#egg=psycopg2
```
###### Python 3.2
```
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win32-py3.2#egg=psycopg2
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win32-py32#egg=psycopg2
```
###### Python 3.3
```
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win32-py3.3#egg=psycopg2
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win32-py33#egg=psycopg2
```
#### Windows 64 bit
###### Python 2.6
```
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win64-py2.6#egg=psycopg2
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win64-py26#egg=psycopg2
```
###### Python 2.7
```
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win64-py2.7#egg=psycopg2
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win64-py27#egg=psycopg2
```
###### Python 3.2
```
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win64-py3.2#egg=psycopg2
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win64-py32#egg=psycopg2
```
###### Python 3.3
```
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win64-py3.3#egg=psycopg2
pip install -e git+git@github.com:nwcell/psycopg2-windows.git@win64-py33#egg=psycopg2
```

Tests
----
I've built a primitive test suite that builds python python virtual enviroments and then pip installs psycopg2. Pip becomes difficult to install starting with python 2.6 and I can't find MSI installs for 2.5. Because of this, I've not fully tested either of those python versions. That said, I've put together a .bat file that builds 32 and 63 bit virtualenvs for pythons 2.7, 3.2, and 3.3. It then installs psycopg2 into each virtualenv. To keep testing easy, I've included python installations in the tests folder. I realize that this is not very space sensitive, so the test directory is *only* in the master branch. Since each compiled version of psycopg2 is kept in a separate branch, installing via pip will not download 6 python installations.

If you *do* want to run the tests themselves, simply clone/checkout master and run tests\scrapt.bat. From there you may read the scripts output and also check each virtualenv to ensure that the psycopg2 was installed successfully. If you wan't to help out and have a different environment, please help with the tests. If you want to help expand the test suite, feel free to help and/or ask any questions.

The test suite assumes that you have a primary python installation with virtualenv already installed.

##### Successfully tested with virtualenv on Windows 7 64 bit:
- **Windows 32 bit:** Python 2.7
- **Windows 32 bit:** Python 3.2
- **Windows 32 bit:** Python 3.3
- **Windows 64 bit:** Python 2.7
- **Windows 64 bit:** Python 3.2
- **Windows 64 bit:** Python 3.3

Credits
-------
- [Me (AKA: Travis Krause)](http://codeforemen.com): Pipified stuff.... Wrote these docs too...
Expand Down
Binary file added tests/pythons/win32-py27/DLLs/_bsddb.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/_ctypes.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/_ctypes_test.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/_elementtree.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/_hashlib.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/_msi.pyd
Binary file not shown.
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/_socket.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/_sqlite3.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/_ssl.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/_testcapi.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/bz2.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/py.ico
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/pyc.ico
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/pyexpat.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/select.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/unicodedata.pyd
Binary file not shown.
Binary file added tests/pythons/win32-py27/DLLs/winsound.pyd
Binary file not shown.

0 comments on commit 446c0e9

Please sign in to comment.