Skip to content

Commit 6b33d23

Browse files
refactor: change 𝘷𝘦𝘳𝘴𝘪𝘰𝘯 placement
1 parent ad44cda commit 6b33d23

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

docs/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
#
1313
import os
1414
import 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

@@ -24,7 +25,7 @@
2425
author = '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 ---------------------------------------------------

firebase/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
from ._service_account_credentials import _service_account_creds_from_secret
1818

1919

20-
__version__ = '0.4.5a1'
21-
22-
2320
def initialize_app(config):
2421
"""Initializes and returns a new Firebase instance.
2522

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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`.
1616
name = '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.
2023
description = "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.
8079
dependencies = [
@@ -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

0 commit comments

Comments
 (0)