-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mauko Quiroga
committed
Oct 19, 2018
1 parent
b46ae77
commit 2319b3b
Showing
8 changed files
with
79 additions
and
35 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
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,4 +1,3 @@ | ||
#! /usr/bin/env bash | ||
|
||
python setup.py bdist_wheel # build this package in the dist directory | ||
twine upload dist/* --username $PYPI_USERNAME --password $PYPI_PASSWORD # publish |
File renamed without changes.
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 +1 @@ | ||
recursive-include * * | ||
recursive-include openfisca_country_template * |
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,7 +1,40 @@ | ||
all: test | ||
|
||
uninstall: | ||
pip freeze | grep -v "^-e" | xargs pip uninstall -y | ||
|
||
clean: | ||
rm -rf build dist | ||
find . -name '*.pyc' -exec rm \{\} \; | ||
|
||
test: | ||
flake8 | ||
deps: | ||
pip install --upgrade pip twine wheel | ||
|
||
install: deps | ||
@# Install OpenFisca-Extension-Template for development. | ||
@# `make install` installs the editable version of OpenFisca-France. | ||
@# This allows contributors to test as they code. | ||
pip install --editable .[dev] --upgrade | ||
|
||
build: clean deps | ||
@# Install OpenFisca-Extension-Template for deployment and publishing. | ||
@# `make build` allows us to be be sure tests are run against the packaged version | ||
@# of OpenFisca-Extension-Template, the same we put in the hands of users and reusers. | ||
python setup.py bdist_wheel | ||
find dist -name "*.whl" -exec pip install --upgrade {}[dev] \; | ||
|
||
check-syntax-errors: | ||
python -m compileall -q . | ||
|
||
format-style: | ||
@# Do not analyse .gitignored files. | ||
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764. | ||
autopep8 `git ls-files | grep "\.py$$"` | ||
|
||
check-style: | ||
@# Do not analyse .gitignored files. | ||
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764. | ||
flake8 `git ls-files | grep "\.py$$"` | ||
|
||
test: clean check-syntax-errors check-style | ||
openfisca-run-test --country-package openfisca_country_template openfisca_country_template/tests |
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,9 +1,14 @@ | ||
# This file configures flake8, a Python tool which makes sure our code follow certain standards. | ||
; E128/133: We prefer hang-closing visual indents | ||
; E251: We prefer `function(x = 1)` over `function(x=1)` | ||
; E501: We do not enforce a maximum line length | ||
; F403/405: We ignore * imports | ||
; W503/504: We break lines before binary operators (Knuth's style) | ||
|
||
[flake8] | ||
hang-closing = true | ||
; E251: We prefer `function(x = 1)` over `function(x=1)` | ||
; E501: We do not enforce a maximum line length | ||
; F403, F405: We allow `import *` | ||
; W503: We break lines before binary operators | ||
ignore = E251, E501, F403, F405, W503 | ||
ignore = E128,E251,F403,F405,E501,W503 | ||
|
||
[pep8] | ||
hang-closing = true | ||
ignore = E128,E251,F403,F405,E501,W503 | ||
in-place = true |
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,30 +1,37 @@ | ||
#! /usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
from setuptools import setup, find_packages | ||
|
||
|
||
setup( | ||
name='OpenFisca-Country-Template', | ||
version='3.5.0', | ||
author='OpenFisca Team', | ||
author_email='contact@openfisca.fr', | ||
description=u'OpenFisca tax and benefit system for Country-Template', | ||
keywords='benefit microsimulation social tax', | ||
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html', | ||
url='https://github.com/openfisca/country-template', | ||
name = "OpenFisca-Country-Template", | ||
version = "3.5.0", | ||
author = "OpenFisca Team", | ||
author_email = "contact@openfisca.org", | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: GNU Affero General Public License v3", | ||
"Operating System :: POSIX", | ||
"Programming Language :: Python", | ||
"Topic :: Scientific/Engineering :: Information Analysis", | ||
], | ||
description = "OpenFisca tax and benefit system for Country-Template", | ||
keywords = "benefit microsimulation social tax", | ||
license ="http://www.fsf.org/licensing/licenses/agpl-3.0.html", | ||
url = "https://github.com/openfisca/country-template", | ||
include_package_data = True, # Will read MANIFEST.in | ||
install_requires=[ | ||
'OpenFisca-Core[web-api] >= 24.6, < 25.0', | ||
data_files = [ | ||
("share/openfisca/openfisca-country-template", ["CHANGELOG.md", "LICENSE", "README.md"]), | ||
], | ||
install_requires = [ | ||
"OpenFisca-Core[web-api] >= 24.6, < 25.0", | ||
], | ||
extras_require = { | ||
'dev': [ | ||
'flake8 >= 3.4.0, < 3.5.0', | ||
'flake8-print', | ||
'nose', | ||
"dev": [ | ||
"autopep8 == 1.4.0", | ||
"flake8 >= 3.5.0, < 3.6.0", | ||
"flake8-print", | ||
"pycodestyle >= 2.3.0, < 2.4.0", # To avoid incompatibility with flake | ||
] | ||
}, | ||
packages=find_packages(), | ||
test_suite='nose.collector', | ||
) |