Skip to content

Commit

Permalink
update the requires and version
Browse files Browse the repository at this point in the history
  • Loading branch information
xinghengwang committed Oct 31, 2024
1 parent 06ba07a commit 9f4d867
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions moesifdjango/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, get_response):
self.client = MoesifAPIClient(self.middleware_settings.get('APPLICATION_ID'))
self.logger_helper = LoggerHelper()
Configuration.BASE_URI = self.logger_helper.get_configuration_uri(self.middleware_settings, 'BASE_URI', 'LOCAL_MOESIF_BASEURL')
Configuration.version = 'moesifdjango-python/2.3.10'
Configuration.version = 'moesifdjango-python/2.3.11'
if settings.MOESIF_MIDDLEWARE.get('CAPTURE_OUTGOING_REQUESTS', False):
try:
if self.DEBUG:
Expand Down Expand Up @@ -347,6 +347,6 @@ def update_companies_batch(self, companies_profiles):

def update_subscription(self, subscription):
self.subscription.update_subscription(subscription, self.api_client, self.DEBUG)

def update_subscriptions_batch(self, subscriptions):
self.subscription.update_subscriptions_batch(subscriptions, self.api_client, self.DEBUG)
4 changes: 2 additions & 2 deletions moesifdjango/middleware_pre19.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self):
self.client = MoesifAPIClient(self.middleware_settings.get('APPLICATION_ID'))
self.logger_helper = LoggerHelper()
Configuration.BASE_URI = self.logger_helper.get_configuration_uri(self.middleware_settings, 'BASE_URI', 'LOCAL_MOESIF_BASEURL')
Configuration.version = 'moesifdjango-python/2.3.10'
Configuration.version = 'moesifdjango-python/2.3.11'
if settings.MOESIF_MIDDLEWARE.get('CAPTURE_OUTGOING_REQUESTS', False):
try:
if self.DEBUG:
Expand Down Expand Up @@ -298,6 +298,6 @@ def update_companies_batch(self, companies_profiles):

def update_subscription(self, subscription):
self.subscription.update_subscription(subscription, self.api_client, self.DEBUG)

def update_subscriptions_batch(self, subscriptions):
self.subscription.update_subscriptions_batch(subscriptions, self.api_client, self.DEBUG)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ moesifapi>=1.5.3
celery>=3.1.25
moesifpythonrequest>=0.3.4
apscheduler==3.10.4
ipaddress; python_version < '3.3'
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='2.3.10',
version='2.3.11',

description='Moesif Middleware for Python Django',
long_description=long_description,
Expand Down Expand Up @@ -92,6 +92,7 @@
extras_require={
'dev': [],
'test': ['nose'],
':python_version<"3.3"': ['ipaddress'],
},

)

0 comments on commit 9f4d867

Please sign in to comment.