-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* modification in tests * removing obsolete examples * removing old style (yield from) in docs * rename psycopg2 to psycopg2-binary in docs * added note in docs about going to python3.5.2+ * interim fix due to issues #533 * add docs example and style * add isort and deleted obsolete non-asynchronous cursor iteration * fix async iter for python 3.5 * add readthedocs.yml * travis allow failures python:nightly * travis allow failures python:nightly * travis allow failures python:nightly * travis allow failures python:nightly * travis remove docker cache * fix code style yml * refactor * fix docs * normalized version c to rc pep440 * edit docs * refactor sa connection * fix travis * fix travis * fix travis * fix test * Update aiopg/cursor.py Co-Authored-By: Boryslav Larin <[email protected]> * Update docs/one_cursor.rst Co-Authored-By: Boryslav Larin <[email protected]> * Update .readthedocs.yml Co-Authored-By: Sviatoslav Sydorenko <[email protected]> * Update CONTRIBUTING.rst Co-Authored-By: Sviatoslav Sydorenko <[email protected]> * Update CONTRIBUTING.rst Co-Authored-By: Sviatoslav Sydorenko <[email protected]> * Update CONTRIBUTING.rst Co-Authored-By: Sviatoslav Sydorenko <[email protected]> * Update CONTRIBUTING.rst Co-Authored-By: Sviatoslav Sydorenko <[email protected]> * Update CONTRIBUTING.rst Co-Authored-By: Sviatoslav Sydorenko <[email protected]> * Update CONTRIBUTING.rst Co-Authored-By: Sviatoslav Sydorenko <[email protected]> * Update CONTRIBUTING.rst Co-Authored-By: Sviatoslav Sydorenko <[email protected]> * Update CONTRIBUTING.rst Co-Authored-By: Sviatoslav Sydorenko <[email protected]> * Update CONTRIBUTING.rst Co-Authored-By: Sviatoslav Sydorenko <[email protected]> * remove mogrify * add changes * python 3.8 and update requirements * python 3.8 and update requirements * python 3.8 and update requirements
- Loading branch information
Showing
64 changed files
with
1,416 additions
and
868 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[settings] | ||
line_length=79 | ||
multi_line_output=3 | ||
include_trailing_comma=True | ||
indent=' ' | ||
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: 2 | ||
|
||
build: | ||
image: latest | ||
|
||
python: | ||
version: 3.7 | ||
install: | ||
- requirements: requirements.txt | ||
- method: pip | ||
path: . | ||
system_packages: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,25 +4,33 @@ Instruction for contributors | |
Developer environment | ||
--------------------- | ||
|
||
First clone the git repo:: | ||
First clone the git repo: | ||
|
||
$ git clone [email protected]:aio-libs/aiopg.git | ||
$ cd aiopg | ||
.. code-block:: shell | ||
$ git clone [email protected]:aio-libs/aiopg.git | ||
$ cd aiopg | ||
After that you need to create and activate a virtual environment. I | ||
recommend using :term:`virtualenvwrapper` but just :term:`virtualenv` or | ||
:term:`venv` will also work. For ``virtualenvwrapper``:: | ||
:term:`venv` will also work. For :term:`virtualenvwrapper`: | ||
|
||
.. code-block:: shell | ||
$ mkvirtualenv aiopg -p `which python3` | ||
$ mkvirtualenv aiopg -p `which python3` | ||
For `venv` (for example; put the directory wherever you want): | ||
|
||
For ``venv`` (for example; put the directory wherever you want):: | ||
.. code-block:: shell | ||
$ python3 -m venv ../venv_directory | ||
$ source ../venv_directory/bin/activate | ||
$ python3 -m venv ../venv_directory | ||
$ source ../venv_directory/bin/activate | ||
Just as when doing a normal install, you need the :term:`libpq` library:: | ||
Just as when doing a normal install, you need the :term:`libpq` library: | ||
|
||
$ sudo apt-get install libpq-dev | ||
.. code-block:: shell | ||
$ sudo apt-get install libpq-dev | ||
**UPD** | ||
|
||
|
@@ -35,37 +43,47 @@ No local Postgres server needed. | |
|
||
In the virtual environment you need to install *aiopg* itself and some | ||
additional development tools (the development tools are needed for running | ||
the test suite and other development tasks):: | ||
the test suite and other development tasks) | ||
|
||
.. code-block:: shell | ||
$ pip install -Ue . | ||
$ pip install -Ur requirements.txt | ||
$ pip install -Ue . | ||
$ pip install -Ur requirements.txt | ||
That's all. | ||
|
||
To run all of the *aiopg* tests do:: | ||
To run all of the *aiopg* tests do: | ||
|
||
$ make test | ||
.. code-block:: shell | ||
$ make test | ||
This command runs :term:`pep8` and :term:`pyflakes` first and then executes | ||
the *aiopg* unit tests. | ||
|
||
|
||
When you are working on solving an issue you will probably want to run | ||
some specific test, not the whole suite:: | ||
some specific test, not the whole suite: | ||
|
||
.. code-block:: shell | ||
$ py.test -s -k test_initial_empty | ||
$ py.test -s -k test_initial_empty | ||
For debug sessions I prefer to use :term:`ipdb`, which is installed | ||
as part of the development tools. Insert the following line into your | ||
as part of the development tools. Insert the following line into your | ||
code in the place where you want to start interactively debugging the | ||
execution process:: | ||
execution process: | ||
|
||
import ipdb; ipdb.set_trace() | ||
.. code-block:: py3 | ||
import ipdb; ipdb.set_trace() | ||
The library is reasonably well covered by tests. There is a make | ||
target for generating the coverage report:: | ||
target for generating the coverage report: | ||
|
||
.. code-block:: shell | ||
$ make cov | ||
$ make cov | ||
Contribution | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
* Alexander <[email protected]> | ||
* Eugene Krevenets <[email protected]> | ||
* Fantix King | ||
* Lena Kryvonos | ||
* Low Kian Seong <[email protected]> | ||
* Marco Paolini | ||
* Michal Kuffa | ||
* Nikolay Novik <[email protected]> | ||
* Petr Viktorin <[email protected]> | ||
* R\. David Murray <[email protected]> | ||
* Ryan Hodge | ||
* Theron Luhn <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
Maintainers | ||
----------- | ||
|
||
The list of *aiopg* maintainers. | ||
|
||
Andrew Svetlov <[email protected]> | ||
Alexey Popravka <[email protected]> | ||
Alexey Firsov <[email protected]> | ||
* Andrew Svetlov <[email protected]> | ||
* Alexey Firsov <[email protected]> | ||
* Alexey Popravka <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
include LICENSE.txt | ||
include CHANGES.txt | ||
include README.rst | ||
include MAINTAINERS.txt | ||
graft aiopg | ||
global-exclude *.pyc | ||
exclude tests/** |
Oops, something went wrong.