Skip to content

Commit

Permalink
Merge branch 'release/0.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
SkypLabs committed Mar 16, 2022
2 parents e1f9f4d + 1dc05e6 commit c6acc49
Show file tree
Hide file tree
Showing 19 changed files with 140 additions and 136 deletions.
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

31 changes: 18 additions & 13 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
time: "09:00"
timezone: Europe/Dublin
open-pull-requests-limit: 10
target-branch: develop
ignore:
- dependency-name: faker
versions:
- 5.0.0
- 7.0.1

- package-ecosystem: pip
directory: "/"
schedule:
interval: weekly
time: "09:00"
timezone: Europe/Dublin
open-pull-requests-limit: 10
target-branch: develop

- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
time: "09:00"
timezone: Europe/Dublin
open-pull-requests-limit: 10
target-branch: develop
27 changes: 16 additions & 11 deletions .github/workflows/test_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, macos-10.15]
python-version: [3.5, 3.6, 3.7, 3.8]
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- 'pypy-3.8'

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -37,10 +42,10 @@ jobs:
PYTHON_VERSION: 3.8
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand All @@ -57,17 +62,17 @@ jobs:
name: Publish to TestPyPI
environment: staging
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs:
- test-code
- test-docs

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.x'

Expand All @@ -88,15 +93,15 @@ jobs:
name: Publish to PyPI
environment: production
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs: publish-to-test-pypi

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.x'

Expand Down
15 changes: 9 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 0b70e285e369bcb24b57b74929490ea7be9c4b19 # v2.2.3
rev: 8fe62d14e0b4d7d845a7022c5c2c3ae41bdd3f26 # frozen: v4.1.0
hooks:
- id: check-ast
- id: check-executables-have-shebangs
- id: check-yaml
- id: flake8
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-pylint
rev: 59c5533087e77a99a5697b1faac86615f3ce4a10 # frozen: v3.0.0a4

- repo: https://github.com/pycqa/flake8
rev: cbeb4c9c4137cff1568659fcc48e8b85cddd0c8d # frozen: 4.0.1
hooks:
- id: flake8

- repo: https://github.com/pycqa/pylint
rev: eec287fae66f8fc514d5daa9caee46fd0e0cb6d9 # frozen: v2.12.2
hooks:
- id: pylint
entry: python3 -m pylint.__main__
language: system
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018-2021 Paul-Emmanuel Raoul <skyper@skyplabs.net>
Copyright (c) 2018-2022 Paul-Emmanuel Raoul <skyper@skyplabs.net>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
30 changes: 24 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
Faker Wi-Fi ESSID
=================

|PyPI Package| |Build Status|
|PyPI Package| |PyPI Downloads| |PyPI Python Versions| |Build Status| |LGTM
Grade| |LGTM Alerts|

`Faker <https://github.com/joke2k/faker/>`__ provider for Wi-Fi ESSIDs.

Expand Down Expand Up @@ -33,9 +34,26 @@ License

`MIT <https://opensource.org/licenses/MIT>`__

.. |Build Status| image:: https://github.com/SkypLabs/faker-wifi-essid/actions/workflows/test.yml/badge.svg?branch=develop
:target: https://github.com/SkypLabs/faker-wifi-essid/actions/workflows/test.yml
.. |Build Status| image:: https://github.com/SkypLabs/faker-wifi-essid/actions/workflows/test_and_publish.yml/badge.svg?branch=develop
:target: https://github.com/SkypLabs/faker-wifi-essid/actions/workflows/test_and_publish.yml?query=branch%3Adevelop
:alt: Build Status
.. |PyPI Package| image:: https://badge.fury.io/py/faker-wifi-essid.svg
:target: https://badge.fury.io/py/faker-wifi-essid
:alt: PyPI Package

.. |LGTM Alerts| image:: https://img.shields.io/lgtm/alerts/g/SkypLabs/faker-wifi-essid.svg?logo=lgtm&logoWidth=18
:target: https://lgtm.com/projects/g/SkypLabs/fake-wifi-essid/alerts/
:alt: LGTM Alerts

.. |LGTM Grade| image:: https://img.shields.io/lgtm/grade/python/g/SkypLabs/faker-wifi-essid.svg?logo=lgtm&logoWidth=18
:target: https://lgtm.com/projects/g/SkypLabs/faker-wifi-essid/context:python
:alt: LGTM Grade

.. |PyPI Downloads| image:: https://img.shields.io/pypi/dm/faker-wifi-essid.svg?style=flat
:target: https://pypi.org/project/faker-wifi-essid/
:alt: PyPI Package Downloads Per Month

.. |PyPI Package| image:: https://img.shields.io/pypi/v/faker-wifi-essid.svg?style=flat
:target: https://pypi.org/project/faker-wifi-essid/
:alt: PyPI Package Latest Release

.. |PyPI Python Versions| image:: https://img.shields.io/pypi/pyversions/faker-wifi-essid.svg?logo=python&style=flat
:target: https://pypi.org/project/faker-wifi-essid/
:alt: PyPI Package Python Versions
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# -- Project information -----------------------------------------------------

project = 'Faker Wi-Fi ESSID'
copyright = '2021, Paul-Emmanuel Raoul'
copyright = '2022, Paul-Emmanuel Raoul'
author = 'Paul-Emmanuel Raoul'

# The full version, including alpha/beta/rc tags
Expand Down
12 changes: 8 additions & 4 deletions docs/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
Documentation
=============

The documentation is written with `Sphinx`_ and is available in the `docs` folder.
The documentation is written with `Sphinx`_ and is available in the `docs`
folder.

Install the dependencies
------------------------

The dependencies required to build the documentation are defined in `setup.py` as an optional dependency group called `docs`.
The dependencies required to build the documentation are defined in `setup.py`
as an optional dependency group called `docs`.

To install the dependencies in `docs`:

Expand All @@ -19,7 +21,8 @@ To install the dependencies in `docs`:
Build the documentation
-----------------------

Sphinx provides a `Makefile` to build the documentation easily. Several output formats are available.
Sphinx provides a `Makefile` to build the documentation easily. Several output
formats are available.

For example, to build the documentation in HTML:

Expand All @@ -30,6 +33,7 @@ For example, to build the documentation in HTML:

The documentation website will be available in `docs/_build/html`.

To see the full list of the supported output formats, just execute `make` without any specific target.
To see the full list of the supported output formats, just execute `make`
without any specific target.

.. _Sphinx: https://www.sphinx-doc.org
9 changes: 5 additions & 4 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Installation
============

Using pip (recommended)
From PyPI (recommended)
-----------------------

::
Expand All @@ -14,12 +14,13 @@ From sources

Faker Wi-Fi ESSID is packaged with `Setuptools`_.

The default Git branch is `develop`. To install the latest stable version, you need to clone the `master` branch.
The default Git branch is `develop`. To install the latest stable version, you
need to clone the `main` branch.

::

git clone -b master git@github.com:SkypLabs/faker-wifi-essid.git
git clone -b main git@github.com:SkypLabs/faker-wifi-essid.git
cd faker-wifi-essid
python3 setup.py install
pip3 install .

.. _Setuptools: https://pypi.org/project/setuptools/
3 changes: 2 additions & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Just like with any other Faker provider, to use Faker Wi-Fi ESSID, you need to:
1. Import Faker and Faker Wi-Fi ESSID.
2. Create an instance of Faker.
3. Add :py:class:`faker_wifi_essid.WifiESSID` to the Faker instance.
4. Call :py:meth:`faker_wifi_essid.WifiESSID.wifi_essid` or any other relevant method.
4. Call :py:meth:`faker_wifi_essid.WifiESSID.wifi_essid` or any other relevant
method.

.. code-block:: python
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[build-system]
requires = [
"setuptools >= 42",
"setuptools_scm >= 2.0.0, <3",
"wheel",
]
build-backend = "setuptools.build_meta"
39 changes: 39 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[metadata]
name = faker_wifi_essid
version = 0.4.0
description = Faker provider for Wi-Fi ESSIDs.
long_description = file: README.rst
keywords = faker, faker-library, faker-provider, faker-generator, wifi, essid
license = MIT
license_files = LICENSE
author = Paul-Emmanuel Raoul
author_email = skyper@skyplabs.net
url = https://github.com/SkypLabs/faker-wifi-essid
project_urls =
Bug Tracker = https://github.com/SkypLabs/faker-wifi-essid/issues
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Developers
Topic :: Software Development :: Libraries :: Python Modules
Operating System :: OS Independent
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
License :: OSI Approved :: MIT License

[options]
packages = find:
package_dir =
=src
python_requires = >=3.7, <4
install_requires =
Faker >= 4.1,< 14.0

[options.packages.find]
where = src

[options.extras_require]
tests = flake8; pylint; tox
docs = Sphinx >= 3.2; sphinx_rtd_theme >= 0.5.0
74 changes: 0 additions & 74 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit c6acc49

Please sign in to comment.