Skip to content

Commit

Permalink
Rebuild in CircleCI for publication
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauko Quiroga committed Sep 7, 2021
1 parent 066f07c commit 4769d1b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,19 @@ jobs:
command: if ! .circleci/has-functional-changes.sh ; then circleci step halt ; fi

- run:
name: Upload a Python package to Pypi
name: Install Twine
command: |
source /tmp/venv/openfisca_core/bin/activate
pip install --upgrade twine
- run:
name: Build openfisca-core
command: |
source /tmp/venv/openfisca_core/bin/activate
python setup.py bdist_wheel
- run:
name: Upload openfisca-core package to PyPi
command: |
source /tmp/venv/openfisca_core/bin/activate
twine upload dist/* --username $PYPI_USERNAME --password $PYPI_PASSWORD
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ clean: \
@$(call doc,$@:)
@rm -rf $?

## Compile python files to check for syntax errors.
check-syntax-errors: .
@$(call doc,$@:)
@python -m compileall -q $?

## Run linters to check for syntax and style errors.
check-style: $(shell git ls-files "*.py")
@$(call doc,$@:)
Expand Down

0 comments on commit 4769d1b

Please sign in to comment.