From cd033ef9a2515ebdc77de478db2f45f0397f3930 Mon Sep 17 00:00:00 2001 From: Asimov4 Date: Mon, 14 Sep 2020 05:19:00 -0700 Subject: [PATCH 01/12] Remove "sexy" from the list of bs words (#1259) Simple proposal to prevent borderline not safe for work associations like "enhance sexy experiences" or "enhance sexy relationships". --- faker/providers/company/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/faker/providers/company/__init__.py b/faker/providers/company/__init__.py index 5d539990b5..ecf2fc36fe 100644 --- a/faker/providers/company/__init__.py +++ b/faker/providers/company/__init__.py @@ -413,7 +413,6 @@ class Provider(BaseProvider): 'web-enabled', 'interactive', 'dot-com', - 'sexy', 'back-end', 'real-time', 'efficient', From cf63d62accd69f198483f2df00ba89ca3b196192 Mon Sep 17 00:00:00 2001 From: Flavio Curella <89607+fcurella@users.noreply.github.com> Date: Mon, 14 Sep 2020 09:44:18 -0500 Subject: [PATCH 02/12] Update CHANGELOG.rst --- CHANGELOG.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6677edf797..591aeafbf3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,7 +1,17 @@ Changelog ========= -`4.1.2 - 1&-August-2020 `__ +`4.1.3 - 14-September-2020 `__ +--------------------------------------------------------------------------------------- + +* Add ``es_ES`` autonomous communities (Spanish regions). Thanks @mondeja. +* Add JSON and Fixed Width argument group and parser support. Thanks @johnbrandborg. +* Update ``zh_CN`` ssn provider to support gender. Thanks @mapoor. +* Fix typo in ``de_DE`` job provider. Thanks @datadominik. +* ``or_IN`` Odia person's name added. Thanks @soumendrak. +* Remove ``datetime_safe`` shim subclass in favor of native Python ``datetime.datetime``. Thanks @samcrang. + +`4.1.2 - 17-August-2020 `__ ------------------------------------------------------------------------------------ * Extend Person Provider to support non-binary suffixes and prefixes. Thank you @crd. From deb9e01c8c2d47b33a5d409ea7dfdef221947890 Mon Sep 17 00:00:00 2001 From: fcurella Date: Mon, 14 Sep 2020 09:44:55 -0500 Subject: [PATCH 03/12] =?UTF-8?q?Bump=20version:=204.1.2=20=E2=86=92=204.1?= =?UTF-8?q?.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- VERSION | 2 +- docs/conf.py | 4 ++-- faker/__init__.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index f701b3c319..17dcf7410d 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 4.1.2 +current_version = 4.1.3 files = VERSION faker/__init__.py docs/conf.py commit = True tag = True diff --git a/VERSION b/VERSION index 4d0dcda01c..de197cc337 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.1.2 +4.1.3 diff --git a/docs/conf.py b/docs/conf.py index 36b84f6fa2..82d2241330 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -50,9 +50,9 @@ # built documents. # # The short X.Y version. -version = '4.1.2' +version = '4.1.3' # The full version, including alpha/beta/rc tags. -release = '4.1.2' +release = '4.1.3' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/faker/__init__.py b/faker/__init__.py index 619709392a..ea1eef9196 100644 --- a/faker/__init__.py +++ b/faker/__init__.py @@ -2,4 +2,4 @@ from faker.generator import Generator # noqa F401 from faker.proxy import Faker # noqa F401 -VERSION = '4.1.2' +VERSION = '4.1.3' From d0766354c65c49f71b4063c9ad7b8ed68fede441 Mon Sep 17 00:00:00 2001 From: Flavio Curella <89607+fcurella@users.noreply.github.com> Date: Thu, 17 Sep 2020 09:53:25 -0500 Subject: [PATCH 04/12] test autodeploy (#1265) --- .github/workflows/autodeploy.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/autodeploy.yml diff --git a/.github/workflows/autodeploy.yml b/.github/workflows/autodeploy.yml new file mode 100644 index 0000000000..0df6e0449f --- /dev/null +++ b/.github/workflows/autodeploy.yml @@ -0,0 +1,24 @@ +name: Auto Deploy +on: + push: + branches: + - master + status: {} +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: 'Wait for status checks' + id: waitforstatuschecks + uses: "WyriHaximus/github-action-wait-for-status@v2" + with: + ignoreActions: release + checkInterval: 13 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + - name: 'placeholder' + run: "echo hurray" + if: steps.waitforstatuschecks.outputs.status == 'success' + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + LABELS: release From 5e70e1c12b2e29bd39ea677428b2c508f006c68f Mon Sep 17 00:00:00 2001 From: fcurella Date: Thu, 17 Sep 2020 09:55:08 -0500 Subject: [PATCH 05/12] fix action path --- .github/workflows/autodeploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autodeploy.yml b/.github/workflows/autodeploy.yml index 0df6e0449f..bbbb73a46d 100644 --- a/.github/workflows/autodeploy.yml +++ b/.github/workflows/autodeploy.yml @@ -10,7 +10,7 @@ jobs: steps: - name: 'Wait for status checks' id: waitforstatuschecks - uses: "WyriHaximus/github-action-wait-for-status@v2" + uses: "WyriHaximus/github-action-wait-for-status@0.1.0" with: ignoreActions: release checkInterval: 13 From 12eca2ac25bf7cf655eff40d75d520108485138e Mon Sep 17 00:00:00 2001 From: fcurella Date: Thu, 17 Sep 2020 09:59:12 -0500 Subject: [PATCH 06/12] only run on push --- .github/workflows/autodeploy.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/autodeploy.yml b/.github/workflows/autodeploy.yml index bbbb73a46d..4b0369591b 100644 --- a/.github/workflows/autodeploy.yml +++ b/.github/workflows/autodeploy.yml @@ -3,7 +3,6 @@ on: push: branches: - master - status: {} jobs: release: runs-on: ubuntu-latest From 938573a3f2766f8ade13694a5e5df5d9576a1d9d Mon Sep 17 00:00:00 2001 From: fcurella Date: Thu, 17 Sep 2020 10:09:55 -0500 Subject: [PATCH 07/12] increase check interval --- .github/workflows/autodeploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autodeploy.yml b/.github/workflows/autodeploy.yml index 4b0369591b..862503ea29 100644 --- a/.github/workflows/autodeploy.yml +++ b/.github/workflows/autodeploy.yml @@ -12,7 +12,7 @@ jobs: uses: "WyriHaximus/github-action-wait-for-status@0.1.0" with: ignoreActions: release - checkInterval: 13 + checkInterval: 60 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - name: 'placeholder' From 92b74ce9814f345efc242315d1f2b45d16e4ee79 Mon Sep 17 00:00:00 2001 From: fcurella Date: Thu, 17 Sep 2020 10:25:19 -0500 Subject: [PATCH 08/12] =?UTF-8?q?add=20test=20for=20coverage=E2=80=99s=20s?= =?UTF-8?q?ake?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/providers/test_address.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/providers/test_address.py b/tests/providers/test_address.py index f33240393f..0494ccec8a 100644 --- a/tests/providers/test_address.py +++ b/tests/providers/test_address.py @@ -1271,6 +1271,11 @@ def test_floor_unit_number(self, faker, num_samples): assert 2 <= int(number[:-2]) <= 99 assert 1 <= int(number[-2:]) <= 40 + def test_ordinal_floor_number(self, faker, num_samples): + for _ in range(num_samples): + floor_number = faker.ordinal_floor_number() + assert floor_number[-2:] in ['th', 'st', 'nd', 'rd'] + def test_address(self, faker, num_samples): for _ in range(num_samples): address = faker.address() From b5b2c3c83384c1b037cc1d260c9f4f3b9068be19 Mon Sep 17 00:00:00 2001 From: fcurella Date: Thu, 17 Sep 2020 10:42:37 -0500 Subject: [PATCH 09/12] add more tests --- tests/providers/test_ssn.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/providers/test_ssn.py b/tests/providers/test_ssn.py index f8f120f572..13999dd97b 100644 --- a/tests/providers/test_ssn.py +++ b/tests/providers/test_ssn.py @@ -614,6 +614,24 @@ def test_ssn(self): assert re.search(r'^\d{11}$', value) assert value.endswith('0') + @freezegun.freeze_time('2002-01-01') + def test_ssn_2000(self): + self.fake.random = random2.Random() + + self.fake.seed_instance(0) + value = self.fake.ssn(min_age=0, max_age=1) + assert re.search(r'^\d{11}$', value) + assert value[0] in ('5', '6') + + @freezegun.freeze_time('2101-01-01') + def test_ssn_2100(self): + self.fake.random = random2.Random() + + self.fake.seed_instance(0) + value = self.fake.ssn(min_age=0, max_age=1) + assert re.search(r'^\d{11}$', value) + assert value[0] in ('7', '8') + def test_vat_id(self): for _ in range(100): assert re.search(r'^EE\d{9}$', self.fake.vat_id()) From 9ae13d5b6ff7140ea51e46a393f2ab5d92bf7595 Mon Sep 17 00:00:00 2001 From: fcurella Date: Thu, 17 Sep 2020 10:52:03 -0500 Subject: [PATCH 10/12] try excluding coveralls --- .github/workflows/autodeploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autodeploy.yml b/.github/workflows/autodeploy.yml index 862503ea29..788a051db7 100644 --- a/.github/workflows/autodeploy.yml +++ b/.github/workflows/autodeploy.yml @@ -11,7 +11,7 @@ jobs: id: waitforstatuschecks uses: "WyriHaximus/github-action-wait-for-status@0.1.0" with: - ignoreActions: release + ignoreActions: release,coverage/coveralls checkInterval: 60 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" From c9b2f4b0b8156aad3d99c6a4e175abf7a3b61b8b Mon Sep 17 00:00:00 2001 From: fcurella Date: Thu, 17 Sep 2020 11:01:14 -0500 Subject: [PATCH 11/12] remove experimental autodeploy --- .github/workflows/autodeploy.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .github/workflows/autodeploy.yml diff --git a/.github/workflows/autodeploy.yml b/.github/workflows/autodeploy.yml deleted file mode 100644 index 788a051db7..0000000000 --- a/.github/workflows/autodeploy.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Auto Deploy -on: - push: - branches: - - master -jobs: - release: - runs-on: ubuntu-latest - steps: - - name: 'Wait for status checks' - id: waitforstatuschecks - uses: "WyriHaximus/github-action-wait-for-status@0.1.0" - with: - ignoreActions: release,coverage/coveralls - checkInterval: 60 - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - - name: 'placeholder' - run: "echo hurray" - if: steps.waitforstatuschecks.outputs.status == 'success' - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - LABELS: release From e2197874e844b358f1cf03a2e90e5f0c31e62068 Mon Sep 17 00:00:00 2001 From: fcurella Date: Fri, 18 Sep 2020 15:37:52 -0500 Subject: [PATCH 12/12] Revert "remove experimental autodeploy" This reverts commit c9b2f4b0b8156aad3d99c6a4e175abf7a3b61b8b. --- .github/workflows/autodeploy.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/autodeploy.yml diff --git a/.github/workflows/autodeploy.yml b/.github/workflows/autodeploy.yml new file mode 100644 index 0000000000..5cd6734a52 --- /dev/null +++ b/.github/workflows/autodeploy.yml @@ -0,0 +1,24 @@ +name: Auto Deploy +on: + push: + branches: + - master +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: 'Wait for status checks' + id: waitforstatuschecks + uses: "fcurella/github-action-wait-for-status@ignore-contexts" + with: + ignoreActions: release + ignoreContexts: coverage/coveralls + checkInterval: 12 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + - name: 'placeholder' + run: "echo hurray" + if: steps.waitforstatuschecks.outputs.status == 'success' + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + LABELS: release