This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from mitodl/upgrade-to-python3
* Upgrade to Python 3 * Add `venv` exclusion to `.gitignore`
- Loading branch information
Showing
20 changed files
with
421 additions
and
287 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 |
---|---|---|
|
@@ -60,4 +60,6 @@ docs/_build/ | |
# PyBuilder | ||
target/ | ||
#PyCharm | ||
.idea | ||
.idea | ||
# Virtualenv | ||
venv/ |
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 @@ | ||
3.7.5 |
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,24 @@ | ||
|
||
Upgrading or changing package dependencies | ||
========================================== | ||
|
||
``setup.py`` specifies acceptable constraints for package versions, which | ||
usually follow Semantic Versioning conventions. The ``requirements`` files | ||
specify exact versions for consistency between development, CI, and deployments. | ||
|
||
1. Delete out and recreate your virtualenv environment, or uninstall packages. (E.g. ``pip uninstall -r requirements.txt``, etc.) | ||
2. Edit ``setup.py``, specifying acceptable version constraints. The ``dev`` group of ``extras_require`` is for development and unit testing. | ||
3. ``pip install -e .`` | ||
4. ``pip freeze >> requirements.txt`` and edit ``requirements.txt`` to preserve the ``--index-url`` and ``-e .`` lines. | ||
5. ``pip install -e .[dev] >> test_requirements.txt`` and edit the file as above. | ||
6. ``pip install -e .[doc] >> doc_requirements.txt`` and edit the file as above. | ||
|
||
Running Tests | ||
============= | ||
|
||
Use ``tox``: | ||
|
||
.. code-block:: sh | ||
pip install -r test_requirements.txt | ||
tox |
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 |
---|---|---|
@@ -1,6 +1,53 @@ | ||
--index-url https://pypi.python.org/simple/ | ||
# Handy for development to install both | ||
|
||
alabaster==0.7.12 | ||
apipkg==1.5 | ||
atomicwrites==1.3.0 | ||
attrs==19.3.0 | ||
Babel==2.7.0 | ||
certifi==2019.9.11 | ||
chardet==3.0.4 | ||
coverage==4.5.4 | ||
ddt==1.2.1 | ||
docutils==0.15.2 | ||
execnet==1.7.1 | ||
httpretty==0.9.7 | ||
idna==2.8 | ||
imagesize==1.1.0 | ||
importlib-metadata==0.23 | ||
Jinja2==2.10.3 | ||
MarkupSafe==1.1.1 | ||
mock==3.0.5 | ||
more-itertools==7.2.0 | ||
packaging==19.2 | ||
pep8==1.7.1 | ||
pluggy==0.13.0 | ||
pockets==0.9.1 | ||
py==1.8.0 | ||
pyflakes==2.1.1 | ||
Pygments==2.4.2 | ||
pyparsing==2.4.4 | ||
pytest==5.2.2 | ||
pytest-cache==1.0 | ||
pytest-cov==2.8.1 | ||
pytest-flakes==4.0.0 | ||
pytest-pep8==1.0.6 | ||
pytz==2019.3 | ||
requests==2.22.0 | ||
semantic-version==2.8.2 | ||
six==1.13.0 | ||
snowballstemmer==2.0.0 | ||
Sphinx==2.2.1 | ||
sphinx-bootstrap-theme==0.7.1 | ||
sphinxcontrib-applehelp==1.0.1 | ||
sphinxcontrib-devhelp==1.0.1 | ||
sphinxcontrib-htmlhelp==1.0.2 | ||
sphinxcontrib-jsmath==1.0.1 | ||
sphinxcontrib-napoleon==0.7 | ||
sphinxcontrib-qthelp==1.0.2 | ||
sphinxcontrib-serializinghtml==1.1.3 | ||
urllib3==1.25.6 | ||
wcwidth==0.1.7 | ||
zipp==0.6.0 | ||
|
||
-e . | ||
sphinx>=1.2.3 | ||
sphinx_bootstrap_theme>=0.4.5 | ||
sphinxcontrib-napoleon |
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,5 @@ | ||
Development Notes | ||
----------------- | ||
|
||
.. include:: ../Development.rst | ||
|
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ Table of Contents | |
:maxdepth: 3 | ||
|
||
api | ||
development | ||
|
||
Indices and Search | ||
================== | ||
|
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
Oops, something went wrong.