Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- update HACKING.txt to show how to use pip instead of easy_install #2492

Conversation

stevepiercy
Copy link
Member

- remove unnecessary tests stuff
- see Pylons#2474
'docs': docs_extras,
},
tests_require=tests_require,
test_suite="pyramid.tests",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah you can't drop the test_suite and tests_require stuff here. The core isn't interested in dropping python setup.py test support just yet.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Restored.

@stevepiercy
Copy link
Member Author

First draft. There are probably some things I cut that should not have been cut. Need feedback from core team.


$ cd ~/hack-on-pyramid
$ $VENV/bin/python setup.py dev
$ $VENV/bin/pip install -e .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just make this line $VENV/bin/pip install -e .[testing,docs] instead of adding multiple lines.

@digitalresistor
Copy link
Member

HACKING.txt update looks good. I would argue that instead of running tests directly using py.test, we teach people about tox -e.

I pretty much run:

tox -e py2-cover,py3-cover,coverage

Whenever I make changes in Pyramid. This tests Python 2, and Python 3, and gives me a coverage report at the same time. It means I can keep iterating pretty quickly, and I get a nice overview of what is going on, and I don't have to worry that my local env is only Python 3.5 for example, and all tests pass, but I accidentally broke something on Py 2.7.

@mmerickel mmerickel changed the title - update setup.py to use pytest and pytest-cov - update HACKING.txt to show how to use pip instead of easy_install Apr 13, 2016
@stevepiercy
Copy link
Member Author

I'd like to get agreement on @bertjwregeer's suggestion before making any changes to HACKING.txt.


cd env27/hacking
../bin/python setup.py develop
../bin/pip install -e .
../bin/pip install -e ".[testing,docs]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, no need for both pip commands.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed in upcoming commit.

- fixed inconsistent command indents
@digitalresistor
Copy link
Member

👍

@mmerickel
Copy link
Member

LGTM

@digitalresistor digitalresistor added this to the 1.7 milestone Apr 14, 2016
@stevepiercy stevepiercy merged commit b0940d4 into Pylons:feature/setup.py-hacking Apr 14, 2016
@stevepiercy
Copy link
Member Author

Closes #2474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants