Skip to content

Commit

Permalink
Merge branch 'release/0.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Taranti committed May 13, 2022
2 parents eaa5666 + 3686135 commit 9f568aa
Show file tree
Hide file tree
Showing 25 changed files with 442 additions and 225 deletions.
36 changes: 9 additions & 27 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: pyupgrade
args: ["--py36-plus"]
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.6.0
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: reorder-python-imports
name: Reorder Python imports (src, tests)
files: "^(?!examples/)"
args: ["--application-directories", "src"]
- repo: https://github.com/psf/black
rev: 21.9b0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-implicit-str-concat
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-byte-order-marker
- id: trailing-whitespace
- id: end-of-file-fixer
- id: black
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Changelog
========================================

v0.1.2 - 2022-05-13
----------------------------------------
- Dropped Python 3.5 support and compatibility
- Dropped Python 3.6 support and compatibility
- Added Python 3.9 support and compatibility
- Added Python 3.10 support and compatibility
- Added support for multiple classifications

v0.1.1 - 2020-04-08
----------------------------------------
- sidrapy initial version
52 changes: 28 additions & 24 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
Expand All @@ -23,17 +23,17 @@ community include:
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
* Focusing on what is best not just for us as individuals, but for the overall
community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* The use of sexualized language or imagery, and sexual attention or advances of
any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Publishing others' private information, such as a physical or email address,
without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

Expand Down Expand Up @@ -61,7 +61,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[[email protected]](mailto:[email protected]).
[[email protected]](mailto:[email protected]).
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand All @@ -83,15 +83,15 @@ behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.
**Community Impact**: A violation through a single incident or series of
actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
like social media. Violating these terms may lead to a temporary or permanent
ban.

### 3. Temporary Ban

Expand All @@ -107,23 +107,27 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.
**Consequence**: A permanent ban from any sort of public interaction within the
community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org
Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
[https://www.contributor-covenant.org/translations][translations].

[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ No Windows, ativar o virtualenv é diferente.

* Instale o sidrapy no modo editável com as dependências de desenvolvimento.
```shell script
$ pip install -e . -r requirements/dev.txt
$ pip install -e . -r requirements/development.txt
```

* Opcional: Instale os hooks pre-commit.
Expand Down Expand Up @@ -113,13 +113,14 @@ Você pode executar o conjunto completo de testes com o tox, caso não queira es

* Instale as versões do Python suportadas:
```shell script
$ PY_VERSIONS=`pyenv install -l | awk '{$1=$1};1' | egrep -v '(-|r|^2|^3\.[0-5]\.)' | tac | sort -u -t'.' -k2,2`
$ PY_VERSIONS=`pyenv install -l | awk '{$1=$1};1' | egrep -v '(-|r|^2|^3\.[0-6]\.)' | tac | sort -u -t'.' -k2,2`
$ echo $PY_VERSIONS | xargs -n1 pyenv install
$ echo $PY_VERSIONS | xargs pyenv local
```

* Execute o tox:
```shell script
$ PY_VERSIONS=`pyenv versions | awk '{$1=$1};1' | egrep -v '(-|r|^2|^3\.[0-6]\.)'`
$ echo $PY_VERSIONS | xargs pyenv local
$ tox
```

Expand Down
7 changes: 4 additions & 3 deletions CONTRIBUTING_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ On Windows, activating is different.

* Install sidrapy in editable mode with development dependencies.
```shell script
$ pip install -e . -r requirements/dev.txt
$ pip install -e . -r requirements/development.txt
```

* Optional: Install the pre-commit hooks.
Expand Down Expand Up @@ -103,12 +103,13 @@ You can run the full test suite with tox if you don't want to wait.

* Install the supported Python Versions:
```shell script
$ PY_VERSIONS=`pyenv install -l | awk '{$1=$1};1' | egrep -v '(-|b|^2|^3\.[0-4])' | tac | sort -u -t'.' -k2,2`
$ PY_VERSIONS=`pyenv install -l | awk '{$1=$1};1' | egrep -v '(-|r|^2|^3\.[0-6]\.)' | tac | sort -u -t'.' -k2,2`
$ echo $PY_VERSIONS | xargs -n1 pyenv install
$ pyenv global system $PY_VERSIONS
```

```shell script
$ PY_VERSIONS=`pyenv versions | awk '{$1=$1};1' | egrep -v '(-|r|^2|^3\.[0-6]\.)'`
$ echo $PY_VERSIONS | xargs pyenv local
$ tox
```

Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include __version__
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
[![PyPI - Downloads](https://img.shields.io/pypi/dm/sidrapy)](https://pypi.python.org/pypi/sidrapy)
[![Python Version](https://img.shields.io/pypi/pyversions/sidrapy?style=flat)](https://pypi.python.org/pypi/sidrapy)
[![License](https://img.shields.io/github/license/AlanTaranti/Sidrapy)](https://github.com/AlanTaranti/sidrapy/blob/master/LICENSE)
![Maintenance](https://img.shields.io/maintenance/yes/2020)
![Maintenance](https://img.shields.io/maintenance/yes/2022)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](https://github.com/AlanTaranti/sidrapy/blob/master/CODE_OF_CONDUCT.md)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](https://github.com/AlanTaranti/sidrapy/blob/master/CODE_OF_CONDUCT.md)

## O que é esse projeto? / _What is this project?_

Expand All @@ -22,10 +22,10 @@ _Sidrapy allows you to access data about housing, inflation, industries and many
## Versões Python Suportadas / _Supported Python Versions_

Todas as versões do Python 3 oficialmente suportadas. Atualmente:
- Python 3.6+
- Python 3.7+

_All officially supported Python 3 versions. Currently:_
- _Python 3.6+_
- _Python 3.7+_

## Como instalar e utilizar esse projeto? / _How to install and use this project?_

Expand All @@ -45,12 +45,6 @@ pip install -U sidrapy
Aqui um exemplo de como utilizar essa biblioteca.
Digamos que desejamos os dados do IPCA dos ultimos 12 meses.

```python
import sidrapy

data = sidrapy.get_table(table_code="1419", territorial_level="1", ibge_territorial_code="all", period="last 12")
```

_Here is an example of how to use this library._
_Let's assume that we want the IPCA from Brazil from last 12 months._

Expand All @@ -75,5 +69,5 @@ Suporte / _Support:_
* [Grupo Telegram](https://t.me/joinchat/AmdQix1KKeZ5KGpsKVFsKw)

Mantenedor / _Maintainer_:
* Email: [[email protected]](mailto:[email protected])
* Website: <a href="http://alantaranti.github.io" target="_blank">alantaranti.github.io</a>
* Email: [[email protected]](mailto:[email protected])
* Website: <a href="https://alantaranti.me" target="_blank">alantaranti.me</a>
2 changes: 1 addition & 1 deletion __version__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2
7 changes: 0 additions & 7 deletions requirements/dev.in

This file was deleted.

10 changes: 10 additions & 0 deletions requirements/development.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Requisitos de Desenvolvimento

-r execution.in
-r tests.in
-r documentation.in

pip-tools
pre-commit
tox
coverage
Loading

0 comments on commit 9f568aa

Please sign in to comment.