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

Deploy package both in Python 2 and Python 3 #671

Merged
merged 2 commits into from
May 22, 2018
Merged

Conversation

fpagnoux
Copy link
Member

@fpagnoux fpagnoux commented May 22, 2018

Applies consensus reached on Country Template to Core.

Supersedes #666

@fpagnoux fpagnoux requested a review from MattiSG May 22, 2018 02:58
command: |
pip install --upgrade pip twine wheel
pip install --editable .[test] --upgrade
# pip install --editable git+https://github.com/openfisca/country-template.git@BRANCH_NAME#egg=OpenFisca-Country-Template # use a specific branch of OpenFisca-Country-Template
Copy link
Member

Choose a reason for hiding this comment

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

Should be Core.

Copy link
Member Author

Choose a reason for hiding this comment

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

OpenFisca Country Template is a test dependency of Core. This line allows you to run the tests with a specific branch of the country template.

This is useful when working and breaking changes that imply editions both on core and country template.

Copy link
Member

Choose a reason for hiding this comment

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

Oh yeah good point!

# . /tmp/venv/openfisca-core/bin/activate
# pip install --editable git+https://github.com/openfisca/country-template.git@BRANCH_NAME#egg=OpenFisca-Country-Template
pip install --editable .[test] --upgrade
# pip install --editable git+https://github.com/openfisca/country-template.git@BRANCH_NAME#egg=OpenFisca-Country-Template # use a specific branch of OpenFisca-Country-Template
Copy link
Member

Choose a reason for hiding this comment

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

Should be Core

Copy link
Member Author

Choose a reason for hiding this comment

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

See reply above

# PYPI_PASSWORD: this value is set in CircleCI's web interface; do not set it here, it is a secret!
- image: python:3.6
environment:
PYPI_USERNAME: openfisca-bot # Edit this value to replace it by your Pypi username
Copy link
Member

Choose a reason for hiding this comment

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

This comment does not make sense in Core.

CHANGELOG.md Outdated
@@ -1,5 +1,9 @@
# Changelog

### 23.1.2 [#671](https://github.com/openfisca/openfisca-core/pull/671)

- Publish both Python 2 and Python 3 version on Pypi
Copy link
Member

Choose a reason for hiding this comment

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

Use the long, proper version changelog: Technical improvement etc. As a reuser not knowing about CI, this is mystifying, help me figure out I don't have to feel concerned!

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think we ever agreed on a taxonomy of changesets in Core. What would not be a technical improvement?

Copy link
Member Author

Choose a reason for hiding this comment

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

Happy to give more details about the consequences of the change though.

Copy link
Member

Choose a reason for hiding this comment

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

Oh sorry, I reviewed too quickly 😞

@MattiSG
Copy link
Member

MattiSG commented May 22, 2018

Does this supersede #666?

@fpagnoux fpagnoux requested a review from MattiSG May 22, 2018 03:17
@MattiSG
Copy link
Member

MattiSG commented May 22, 2018

Seems good! I'll update required tests.

@MattiSG
Copy link
Member

MattiSG commented May 22, 2018

Done!

@fpagnoux fpagnoux merged commit 5b4bce0 into master May 22, 2018
@fpagnoux fpagnoux deleted the deploy-python3 branch May 22, 2018 03:22
@bonjourmauko bonjourmauko added kind:feat A feature request, a feature deprecation kind:ci Continuous ops, integration & deployment labels Jul 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:ci Continuous ops, integration & deployment kind:feat A feature request, a feature deprecation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants