-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
111 additions
and
65 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
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,56 @@ | ||
.. | ||
|
||
Hacking | ||
======= | ||
|
||
This project makes extensive use of `tox`_, `pytest`_, and `GNU Make`_. | ||
|
||
|
||
Development environment | ||
----------------------- | ||
|
||
Use following command to create a Python virtual environment with all | ||
necessary dependencies:: | ||
|
||
tox --recreate -e develop | ||
|
||
This creates a Python virtual environment in the ``.tox/develop`` directory. It | ||
can be activated with the following command:: | ||
|
||
. .tox/develop/bin/activate | ||
|
||
|
||
Run test suite | ||
-------------- | ||
|
||
In a Python virtual environment run the following command:: | ||
|
||
make review | ||
|
||
Outside of a Python virtual environment run the following command:: | ||
|
||
tox --recreate | ||
|
||
|
||
Build and package | ||
----------------- | ||
|
||
In a Python virtual environment run the following command:: | ||
|
||
make package | ||
|
||
Outside of a Python virtual environment run the following command:: | ||
|
||
tox --recreate -e package | ||
|
||
|
||
.. Links | ||
.. _`GNU Make`: https://www.gnu.org/software/make/ | ||
.. _`GNU Stow`: https://www.gnu.org/software/stow/ | ||
.. _`pytest`: https://pytest.org/ | ||
.. _`tox`: https://tox.readthedocs.io/ | ||
|
||
|
||
.. EOF |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# | ||
|
||
|
||
"""Internationalization""" | ||
|
||
|
||
def _translate(message): | ||
return message | ||
|
||
|
||
_ = _translate | ||
|
||
|
||
# EOF |
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