File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 12
12
#
13
13
import os
14
14
import sys
15
- sys . path . insert ( 0 , os . path . abspath ( '..' ))
15
+ import toml
16
16
17
- from firebase import __version__
17
+ sys . path . insert ( 0 , os . path . abspath ( '..' ))
18
18
19
+ project_config = toml .load ('..//pyproject.toml' )
19
20
20
21
# -- Project information -----------------------------------------------------
21
22
24
25
author = 'Asif Arman Rahman'
25
26
26
27
# The full version, including alpha/beta/rc tags
27
- release = __version__
28
+ release = project_config [ 'project' ][ 'version' ]
28
29
29
30
30
31
# -- General configuration ---------------------------------------------------
Original file line number Diff line number Diff line change 17
17
from ._service_account_credentials import _service_account_creds_from_secret
18
18
19
19
20
- __version__ = '0.4.5a1'
21
-
22
-
23
20
def initialize_app (config ):
24
21
"""Initializes and returns a new Firebase instance.
25
22
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ build-backend = 'flit_core.buildapi'
15
15
# Define the library name, this is what is used along with `pip install`.
16
16
name = ' firebase-rest-api'
17
17
18
+ # Define the version of this library.
19
+ version = ' 0.4.5a1'
20
+
18
21
# Here is a small description of the library. This appears
19
22
# when someone searches for the library on https://pypi.org/search.
20
23
description = " A simple python wrapper for Google's Firebase REST API's."
@@ -71,10 +74,6 @@ classifiers = [
71
74
# Here are the topics that my library covers.
72
75
' Topic :: Software Development :: Libraries :: Python Modules' ,
73
76
]
74
- dynamic = [
75
- # Define the version of this library.
76
- ' version' ,
77
- ]
78
77
79
78
# These are the dependencies the library needs in order to run.
80
79
dependencies = [
@@ -93,6 +92,7 @@ docs = [
93
92
' Sphinx>=5.0.2' ,
94
93
' sphinx-rtd-theme>=1.0.0' ,
95
94
' sphinx_design>=0.2.0' ,
95
+ ' toml>=0.10.2'
96
96
]
97
97
98
98
You can’t perform that action at this time.
0 commit comments