Flask-Exts 0.1.0__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ jobs:
16
16
  steps:
17
17
  - uses: actions/checkout@v4
18
18
 
19
- - uses: actions/setup-python@v4
19
+ - uses: actions/setup-python@v5
20
20
  with:
21
21
  python-version: "3.x"
22
22
 
@@ -0,0 +1,31 @@
1
+ ### vscode
2
+ .vscode
3
+
4
+ ### JupyterNotebooks ###
5
+ .ipynb_checkpoints
6
+ */.ipynb_checkpoints/*
7
+
8
+ ### Python ###
9
+ # Byte-compiled / optimized / DLL files
10
+ __pycache__/
11
+ *.py[cod]
12
+ *$py.class
13
+
14
+ # Environments
15
+ venv/
16
+
17
+ # Distribution / packaging
18
+ dist/
19
+ build/
20
+
21
+ # Unit test / coverage reports
22
+ .cache/
23
+ .pytest_cache/
24
+ .coverage
25
+ htmlcov/
26
+
27
+ # Translations
28
+ *.mo
29
+
30
+ # Sphinx documentation
31
+ docs/_build/
@@ -0,0 +1,21 @@
1
+ version: "2"
2
+
3
+ build:
4
+ os: "ubuntu-22.04"
5
+ tools:
6
+ python: "3.12"
7
+
8
+ python:
9
+ install:
10
+ - method: pip
11
+ path: .
12
+ - requirements: docs/requirements.txt
13
+
14
+ sphinx:
15
+ configuration: docs/conf.py
16
+
17
+
18
+
19
+
20
+
21
+
@@ -0,0 +1,20 @@
1
+ v0.1.2
2
+ ------
3
+
4
+ Released 2024-03-22
5
+
6
+ - .readthedocs.yaml
7
+
8
+ v0.1.1
9
+ ------
10
+
11
+ Released 2024-03-21
12
+
13
+ - Init docs
14
+
15
+ v0.1.0
16
+ ------
17
+
18
+ Released 2024-03-20
19
+
20
+ - Init release
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: Flask-Exts
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Flask extensions with admin, SQLAlchemy, babel, forms, fields, widgets, and so on.
5
+ Project-URL: Documentation, https://flask-exts.readthedocs.io
6
+ Project-URL: Source, https://github.com/ojso/flask-exts
5
7
  Project-URL: Homepage, https://github.com/ojso/flask-exts
6
- Project-URL: Documentation, https://github.com/ojso/flask-exts
7
8
  Project-URL: Issues, https://github.com/ojso/flask-exts/issues
8
- Project-URL: Source, https://github.com/ojso/flask-exts
9
9
  Author-email: huadong <david.dong.hua@gmail.com>
10
10
  License: MIT License
11
11
 
@@ -41,12 +41,10 @@ Classifier: Programming Language :: Python :: 3.10
41
41
  Classifier: Programming Language :: Python :: 3.11
42
42
  Classifier: Topic :: Software Development :: Build Tools
43
43
  Requires-Python: >=3.10
44
- Requires-Dist: coverage>=7.0
45
44
  Requires-Dist: flask-babel>=4.0
46
45
  Requires-Dist: flask-migrate>=4.0
47
46
  Requires-Dist: flask-sqlalchemy>=3.0
48
47
  Requires-Dist: flask>=3.0
49
- Requires-Dist: pytest>=7.0
50
48
  Requires-Dist: python-dotenv>=1.0
51
49
  Requires-Dist: wtforms>=3.0
52
50
  Description-Content-Type: text/x-rst
@@ -60,8 +58,7 @@ Flask-Exts is mainly inspired by:
60
58
  - `Flask-WTF <https://github.com/wtforms/flask-wtf/>`_
61
59
  - `Flask-Admin <https://github.com/flask-admin/flask-admin/>`_
62
60
 
63
-
64
- Flask-Exts is part rewrited and well tested.
61
+ Flask-Exts is part rewrited from above and well tested.
65
62
 
66
63
  License
67
64
  -------
@@ -76,15 +73,28 @@ Install and update using pip:
76
73
 
77
74
  .. code-block:: console
78
75
 
79
- pip install -U Flask-Exts
76
+ $ pip install -U Flask-Exts
77
+
78
+ Developing
79
+ -----------
80
+
81
+ .. code-block:: console
80
82
 
81
- Tests
82
- -----
83
- Tests are run with *pytest*. If you are not familiar with this package you can get some more info from `pytest <https://pytest.org/>`_.
83
+ $ pip install -e .
84
84
 
85
+ Test
86
+ ----
87
+ Tests are run with `pytest <https://pytest.org/>`_.
85
88
  To run the tests, from the project directory:
86
89
 
87
90
  .. code-block:: console
88
91
 
89
- pytest
90
-
92
+ $ pip install -r requirements/test.in
93
+ $ pytest
94
+
95
+ Docs
96
+ ----
97
+
98
+ .. code-block:: console
99
+
100
+ $ pip install -r docs/requirements.txt
@@ -7,8 +7,7 @@ Flask-Exts is mainly inspired by:
7
7
  - `Flask-WTF <https://github.com/wtforms/flask-wtf/>`_
8
8
  - `Flask-Admin <https://github.com/flask-admin/flask-admin/>`_
9
9
 
10
-
11
- Flask-Exts is part rewrited and well tested.
10
+ Flask-Exts is part rewrited from above and well tested.
12
11
 
13
12
  License
14
13
  -------
@@ -23,15 +22,28 @@ Install and update using pip:
23
22
 
24
23
  .. code-block:: console
25
24
 
26
- pip install -U Flask-Exts
25
+ $ pip install -U Flask-Exts
26
+
27
+ Developing
28
+ -----------
29
+
30
+ .. code-block:: console
27
31
 
28
- Tests
29
- -----
30
- Tests are run with *pytest*. If you are not familiar with this package you can get some more info from `pytest <https://pytest.org/>`_.
32
+ $ pip install -e .
31
33
 
34
+ Test
35
+ ----
36
+ Tests are run with `pytest <https://pytest.org/>`_.
32
37
  To run the tests, from the project directory:
33
38
 
34
39
  .. code-block:: console
35
40
 
36
- pytest
37
-
41
+ $ pip install -r requirements/test.in
42
+ $ pytest
43
+
44
+ Docs
45
+ ----
46
+
47
+ .. code-block:: console
48
+
49
+ $ pip install -r docs/requirements.txt
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = .
9
+ BUILDDIR = _build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1,4 @@
1
+ API
2
+ ===
3
+
4
+
@@ -0,0 +1,4 @@
1
+ Changes
2
+ =======
3
+
4
+ .. include:: ../CHANGES.rst
@@ -0,0 +1,36 @@
1
+ from pallets_sphinx_themes import get_version
2
+ from pallets_sphinx_themes import ProjectLink
3
+
4
+ # Configuration file for the Sphinx documentation builder.
5
+ #
6
+ # For the full list of built-in configuration values, see the documentation:
7
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html
8
+
9
+ # -- Project information -----------------------------------------------------
10
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
11
+
12
+ project = 'Flask-Exts'
13
+ copyright = '2024, HuaDong'
14
+ author = 'HuaDong'
15
+ release, version = get_version("Flask-Exts")
16
+
17
+ # -- General configuration ---------------------------------------------------
18
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
19
+
20
+ extensions = [
21
+ 'sphinx.ext.autodoc',
22
+ 'sphinx.ext.intersphinx',
23
+ 'sphinx.ext.doctest',
24
+ 'sphinx.ext.autosummary',
25
+ "pallets_sphinx_themes",
26
+ ]
27
+
28
+ templates_path = ['_templates']
29
+ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
30
+
31
+ # -- Options for HTML output -------------------------------------------------
32
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
33
+
34
+ html_theme = 'flask'
35
+ html_static_path = ['_static']
36
+ html_title = f"Flask-Exts Documentation ({version})"
@@ -0,0 +1,24 @@
1
+ .. Flask-Exts documentation master file, created by
2
+ sphinx-quickstart on Fri Mar 22 06:29:14 2024.
3
+ You can adapt this file completely to your liking, but it should at least
4
+ contain the root `toctree` directive.
5
+
6
+ Welcome to Flask-Exts's documentation!
7
+ ======================================
8
+
9
+ **Flask-Exts** is a Flask extensions with admin, SQLAlchemy, babel, forms, fields, widgets, and so on.
10
+
11
+ .. toctree::
12
+ :maxdepth: 2
13
+ :caption: Contents:
14
+
15
+ usage
16
+ api
17
+ changes
18
+
19
+ Indices and tables
20
+ ==================
21
+
22
+ * :ref:`genindex`
23
+ * :ref:`modindex`
24
+ * :ref:`search`
@@ -0,0 +1,35 @@
1
+ @ECHO OFF
2
+
3
+ pushd %~dp0
4
+
5
+ REM Command file for Sphinx documentation
6
+
7
+ if "%SPHINXBUILD%" == "" (
8
+ set SPHINXBUILD=sphinx-build
9
+ )
10
+ set SOURCEDIR=.
11
+ set BUILDDIR=_build
12
+
13
+ %SPHINXBUILD% >NUL 2>NUL
14
+ if errorlevel 9009 (
15
+ echo.
16
+ echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17
+ echo.installed, then set the SPHINXBUILD environment variable to point
18
+ echo.to the full path of the 'sphinx-build' executable. Alternatively you
19
+ echo.may add the Sphinx directory to PATH.
20
+ echo.
21
+ echo.If you don't have Sphinx installed, grab it from
22
+ echo.https://www.sphinx-doc.org/
23
+ exit /b 1
24
+ )
25
+
26
+ if "%1" == "" goto help
27
+
28
+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29
+ goto end
30
+
31
+ :help
32
+ %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33
+
34
+ :end
35
+ popd
@@ -0,0 +1,3 @@
1
+ # Defining the exact version will make sure things don't break
2
+ sphinx==7.2.6
3
+ Pallets-Sphinx-Themes==2.1.1
@@ -0,0 +1,15 @@
1
+ Usage
2
+ =====
3
+
4
+ .. _installation:
5
+
6
+ Installation
7
+ ------------
8
+
9
+ To use Flask-Exts, first install it using pip:
10
+
11
+ .. code-block:: console
12
+
13
+ (.venv) $ pip install flask-exts
14
+
15
+
@@ -31,16 +31,14 @@ dependencies = [
31
31
  "flask-babel>=4.0",
32
32
  "Flask-SQLAlchemy>=3.0",
33
33
  "Flask-Migrate>=4.0",
34
- "pytest>=7.0",
35
- "coverage>=7.0",
36
34
  "python-dotenv>=1.0",
37
35
  ]
38
36
 
39
37
  [project.urls]
38
+ Documentation = "https://flask-exts.readthedocs.io"
39
+ Source = "https://github.com/ojso/flask-exts"
40
40
  Homepage = "https://github.com/ojso/flask-exts"
41
- Documentation = "https://github.com/ojso/flask-exts"
42
41
  Issues = "https://github.com/ojso/flask-exts/issues"
43
- Source = "https://github.com/ojso/flask-exts"
44
42
 
45
43
  [tool.hatch.version]
46
44
  path = "src/flask_exts/__about__.py"
@@ -0,0 +1,2 @@
1
+ hatch
2
+ build
@@ -0,0 +1,2 @@
1
+ pytest
2
+ coverage
@@ -0,0 +1 @@
1
+ __version__ = "0.1.2"
@@ -1,19 +0,0 @@
1
- # edit
2
- .vscode
3
- .ipynb_checkpoints
4
-
5
- # venv/
6
- /venv/
7
-
8
- # Python : Byte-compiled / optimized / DLL files
9
- __pycache__/
10
- *.py[cod]
11
- *$py.class
12
- .cache/
13
- .pytest_cache/
14
- .coverage
15
- htmlcov/
16
- dist/
17
- build/
18
- docs/_build
19
-
@@ -1,6 +0,0 @@
1
- v0.0.1
2
- ------
3
-
4
- Released 2024-03-20
5
-
6
- - Initial release.
@@ -1 +0,0 @@
1
- __version__ = "0.1.0"
File without changes
File without changes