Skip to content

Commit

Permalink
Version 5.0.0 (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
lk-geimfari committed Jun 20, 2021
1 parent b3daba4 commit ff4a107
Show file tree
Hide file tree
Showing 238 changed files with 33,024 additions and 175,511 deletions.
4 changes: 2 additions & 2 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
staleLabel: stale

daysUntilStale: 60
daysUntilClose: 15
daysUntilStale: 80
daysUntilClose: 10

markComment: >
This issue has been automatically marked as stale because it has not had
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]
python-version: [3.6.x, 3.7.x, 3.8.x, 3.9.x]
steps:
- uses: actions/checkout@v2
Expand All @@ -31,11 +31,13 @@ jobs:
key: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install --no-interaction
- name: pytest and coverage
- name: pytest and codecov
run: poetry run pytest --cov=mimesis --cov-report=xml
- name: mypy
run: poetry run mypy mimesis/ tests/
- name: pyroma
run: poetry run mypy mimesis/
- name: Check code style
run: poetry run black mimesis tests --check
- name: Check packages friendliness
run: poetry run pyroma -d .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
44 changes: 44 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,47 @@
Version 5.0.0
-------------

**Note**: This release is still under active development.
**Warning**: This release contains some breaking changes in API.

**Renamed**:

- Rename ``enums.UnitName`` to ``enums.MeasureUnit``
- Rename ``enums.PrefixSign`` to ``enums.MetricPrefixSign``
- Rename ``Business()`` to ``Finance()``

**Fixed**:
- Fix inheritance issues for ``Generic``, now it inherits ``BaseProvider`` instead of ``BaseDataProvider``
- Fix locale-independent provider to make them accepts keyword-only arguments
- Fix DenmarkSpecProvider CPR to generate valid CPR numbers.
- Fix ``.cvv()`` to make it return string
- Fix ``.cid()`` to make it return string
- Fix ``.price()`` of ``Finance`` to make it return float.

**Added**:

- Added class ``Locale`` to ``mimesis.locales``
- Added ``measure_unit()`` and ``.metric_prefix()`` methods for ``Science``
- Added methods ``.iterator()`` and ``.infinite()`` for ``schema.Schema``
- Added methods ``.slug()`` and ``ip_v4_with_port()`` for ``Internet()``
- Added ``incremental()`` method for ``Numbers()``
- Added methods ``.stock_ticker()``, ``.stock_name()`` and ``.stock_exchange()`` for ``Finance()``
- Added ``BinaryFile`` data provider which provides binary data files, such as ``.mp3``, ``.mp4``, ``.png``, etc.

**Removed**:

- Removed invalid names and surnames from ``person.json`` for ``ru`` locale
- Removed data provider ``UnitSystem()``, use instead ``Science()``
- Removed data provider ``Structure()``, use instead ``schema.Schema``
- Removed ``GermanySpecProvider``
- Removed method ``copyright()`` of ``Finance()``
- Removed method ``network_protocol()`` of ``Internet()``
- Removed params ``with_port`` and ``port_range`` for ``ip_v4()`` of ``Internet()``. Use ``ip_v4_with_port()`` instead
- Removed method ``.sexual_orientation()``, ``.social_media_profile()`` and ``.avatar()`` of ``Person()``
- Removed a bunch of useless custom exceptions and replaced them with ``FieldError``
- Removed completely useless ``chemical_element`` and ``atomic_number`` methods of ``Science`` data provider and made it locale-independent


Version 4.1.3
-------------

Expand Down
Loading

0 comments on commit ff4a107

Please sign in to comment.