Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

random fixes #2140

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 33.0.0
current_version = 33.1.0
files = VERSION faker/__init__.py docs/conf.py
commit = True
tag = True
55 changes: 25 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,6 @@ jobs:
linters: flake8
run: flake8 --extend-ignore=E203 faker tests

checkmanifest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pip cache
uses: actions/cache@v4
id: pipcache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-checkmanifest
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install tox
- name: Check manifest
run: tox
env:
TOXENV: checkmanifest

isort:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -138,7 +114,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"

steps:
- uses: actions/checkout@v4
Expand All @@ -165,10 +147,17 @@ jobs:

test_ubuntu:
runs-on: ubuntu-latest
needs: [flake8, isort, black, doc8, checkmanifest, typing]
needs: [flake8, isort, black, doc8, typing]
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.10"]
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "pypy-3.10"

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -206,10 +195,16 @@ jobs:

test_windows:
runs-on: windows-latest
needs: [flake8, isort, black, doc8, checkmanifest, typing]
needs: [flake8, isort, black, doc8, typing]
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
arch: ["x86", "x64"]

steps:
Expand Down Expand Up @@ -241,7 +236,7 @@ jobs:

test_alpine:
runs-on: ubuntu-latest
needs: [flake8, isort, black, doc8, checkmanifest, typing]
needs: [flake8, isort, black, doc8, typing]

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ nosetests.xml
*.ipr
venv/
.vscode

# Files use by package managers
uv.lock
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

### [v33.1.0 - 2024-11-27](https://github.com/joke2k/faker/compare/v33.0.0...v33.1.0)

* Add support for Python 3.13. Thanks @edgarrmondragon.

### [v33.0.0 - 2024-11-14](https://github.com/joke2k/faker/compare/v32.1.0...v33.0.0)

* Revert "Make pytest fixture session-scoped".
Expand Down
23 changes: 0 additions & 23 deletions MANIFEST.in

This file was deleted.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
33.0.0
33.1.0
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-e .[dev]
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
# built documents.
#
# The short X.Y version.
version = "33.0.0"
version = "33.1.0"
# The full version, including alpha/beta/rc tags.
release = "33.0.0"
release = "33.1.0"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
60 changes: 59 additions & 1 deletion faker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,65 @@
# from README.rst
DinhHuy2010 marked this conversation as resolved.
Show resolved Hide resolved
"""
*Faker* is a Python package that generates fake data for you. Whether
you need to bootstrap your database, create good-looking XML documents,
fill-in your persistence to stress test it, or anonymize data taken from
a production service, Faker is for you.

Faker is heavily inspired by `PHP Faker`_, `Perl Faker`_, and by `Ruby Faker`_.

Check the `extended docs`_ for more information.

----

::

_|_|_|_| _|
_| _|_|_| _| _| _|_| _| _|_|
_|_|_| _| _| _|_| _|_|_|_| _|_|
_| _| _| _| _| _| _|
_| _|_|_| _| _| _|_|_| _|

----


Contribute
----------

Please see `CONTRIBUTING`_.

License
-------

Faker is released under the MIT License. See the bundled `LICENSE`_ file
for details.

Credits
-------

- `FZaninotto`_ / `PHP Faker`_
- `Distribute`_
- `Buildout`_
- `modern-package-template`_


.. _FZaninotto: https://github.com/fzaninotto
.. _PHP Faker: https://github.com/fzaninotto/Faker
.. _Perl Faker: http://search.cpan.org/~jasonk/Data-Faker-0.07/
.. _Ruby Faker: https://github.com/stympy/faker
.. _Distribute: https://pypi.org/project/distribute/
.. _Buildout: http://www.buildout.org/
.. _modern-package-template: https://pypi.org/project/modern-package-template/
.. _extended docs: https://faker.readthedocs.io/en/stable/
.. _bundled providers: https://faker.readthedocs.io/en/stable/providers.html
.. _community providers: https://faker.readthedocs.io/en/stable/communityproviders.html
.. _LICENSE: https://github.com/joke2k/faker/blob/master/LICENSE.txt
.. _CONTRIBUTING: https://github.com/joke2k/faker/blob/master/CONTRIBUTING.rst
"""

from faker.factory import Factory
from faker.generator import Generator
from faker.proxy import Faker

VERSION = "33.0.0"
VERSION = "33.1.0"

__all__ = ("Factory", "Generator", "Faker")
Loading