Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Upgrade Aspen to 0.42 #788

Merged
merged 8 commits into from
Dec 13, 2016
Merged

Upgrade Aspen to 0.42 #788

merged 8 commits into from
Dec 13, 2016

Conversation

chadwhitacre
Copy link
Contributor

Closes #766. Ready for review, @Nashe @techtonik! :-)

@ghost
Copy link

ghost commented Aug 23, 2016

!m @whit537

I was trying to upgrade it myself after @techtonik's comment on the issue (he's completely right), I should have told it :-(

Anyway, some code related to the menu is broken (cf Travis) and I was writing pages tests like it's done for gratipay.com so we don't have to ensure manually that all the pages are still working after one upgrade. I'll work on what's left 🐱

@ghost ghost mentioned this pull request Aug 23, 2016
@chadwhitacre
Copy link
Contributor Author

Gah, sorry. I'm happy to take a look when I get a chance if you don't get to it first.

@chadwhitacre
Copy link
Contributor Author

Rebased, was 1b535ba.

@chadwhitacre chadwhitacre force-pushed the upgrade-aspen-to-0.42 branch from 1b535ba to 3d10ed1 Compare December 5, 2016 15:54
@chadwhitacre
Copy link
Contributor Author

This is ready for review again @mattbk @techtonik @JessaWitzel et al.


@yield_fixture
def client():
yield Client(www_root='www', project_root='')
client = Client(www_root='www', project_root='.')
client._website = website
Copy link
Contributor

@JessaWitzel JessaWitzel Dec 10, 2016

Choose a reason for hiding this comment

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

What is this for? Why are we defining a _website variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're telling Aspen's testing infrastructure to use the website that we are making over in inside_gratipay/main.py, which is configured how we want it.

Under previous versions of Aspen, Aspen would look in the project root for a magically named file ("configure-aspen.py") and take configuration from there. The magic is gone in 0.42.

Copy link
Contributor

@JessaWitzel JessaWitzel left a comment

Choose a reason for hiding this comment

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

Now it makes sense to me. :)

We no longer have a magically named config file. Instead, we have a
regular Python module where we are to define our application.
Besides being more generally organized, this makes it easier to import
.main.website into the test suite.
@chadwhitacre
Copy link
Contributor Author

Rebased, was 9e4ecaf.

@JessaWitzel JessaWitzel merged commit fbce53a into master Dec 13, 2016
@JessaWitzel JessaWitzel deleted the upgrade-aspen-to-0.42 branch December 13, 2016 16:42
@EdOverflow
Copy link
Contributor

Has this been deployed?

@mattbk
Copy link
Contributor

mattbk commented Dec 23, 2016

Looks like: https://github.com/gratipay/gratipay.com/commits/master/www/version.txt. Version is bumped on deploy.

@chadwhitacre
Copy link
Contributor Author

@mattbk But this is for Inside Gratipay, not Gratipay.com.

Inside Gratipay is deployed automatically on push to master (except when it breaks #947 ;). So ... yes? :-)

Confirmed:

Deployed a2f565f

That includes this.

screen shot 2016-12-27 at 5 00 40 pm

@chadwhitacre chadwhitacre mentioned this pull request Jan 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants