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 1212#
1313import os
1414import sys
15- sys . path . insert ( 0 , os . path . abspath ( '..' ))
15+ import toml
1616
17- from firebase import __version__
17+ sys . path . insert ( 0 , os . path . abspath ( '..' ))
1818
19+ project_config = toml .load ('..//pyproject.toml' )
1920
2021# -- Project information -----------------------------------------------------
2122
2425author = 'Asif Arman Rahman'
2526
2627# The full version, including alpha/beta/rc tags
27- release = __version__
28+ release = project_config [ 'project' ][ 'version' ]
2829
2930
3031# -- General configuration ---------------------------------------------------
Original file line number Diff line number Diff line change 1717from ._service_account_credentials import _service_account_creds_from_secret
1818
1919
20- __version__ = '0.4.5a1'
21-
22-
2320def initialize_app (config ):
2421 """Initializes and returns a new Firebase instance.
2522
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ build-backend = 'flit_core.buildapi'
1515# Define the library name, this is what is used along with `pip install`.
1616name = ' firebase-rest-api'
1717
18+ # Define the version of this library.
19+ version = ' 0.4.5a1'
20+
1821# Here is a small description of the library. This appears
1922# when someone searches for the library on https://pypi.org/search.
2023description = " A simple python wrapper for Google's Firebase REST API's."
@@ -71,10 +74,6 @@ classifiers = [
7174 # Here are the topics that my library covers.
7275 ' Topic :: Software Development :: Libraries :: Python Modules' ,
7376]
74- dynamic = [
75- # Define the version of this library.
76- ' version' ,
77- ]
7877
7978# These are the dependencies the library needs in order to run.
8079dependencies = [
@@ -93,6 +92,7 @@ docs = [
9392 ' Sphinx>=5.0.2' ,
9493 ' sphinx-rtd-theme>=1.0.0' ,
9594 ' sphinx_design>=0.2.0' ,
95+ ' toml>=0.10.2'
9696]
9797
9898
You can’t perform that action at this time.
0 commit comments