Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 22 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,28 @@

from setuptools import setup

setup(name='tap-salesforce',
version='2.2.0',
description='Singer.io tap for extracting data from the Salesforce API',
author='Stitch',
url='https://singer.io',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_salesforce'],
install_requires=[
'requests==2.32.5',
'singer-python==6.3.0',
'xmltodict==1.0.2',
],
entry_points='''
setup(
name="tap-salesforce",
version="2.2.0",
description="Singer.io tap for extracting data from the Salesforce API",
author="Stitch",
url="https://singer.io",
classifiers=["Programming Language :: Python :: 3 :: Only"],
py_modules=["tap_salesforce"],
install_requires=[
"requests==2.32.5",
"singer-python==6.3.0",
"xmltodict==1.0.2",
],
entry_points="""
[console_scripts]
tap-salesforce=tap_salesforce:main
''',
packages=['tap_salesforce', 'tap_salesforce.salesforce'],
package_data = {
'tap_salesforce/schemas': [
# add schema.json filenames here
]
},
include_package_data=True,
""",
packages=["tap_salesforce", "tap_salesforce.salesforce"],
package_data={
"tap_salesforce/schemas": [
# add schema.json filenames here
]
},
include_package_data=True,
)
8 changes: 4 additions & 4 deletions spikes/test_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

import sys
import threading
from time import sleep
from datetime import datetime
from time import sleep

TIMER_LENGTH = 1


def login():
print(f"In login, time is {datetime.now()}, threads is {threading.active_count()}")
main_thread = threading.main_thread()
Expand All @@ -17,17 +18,16 @@ def login():
# print(f"In login, the main thread died, so time to go")
# sys.exit(0)

myTimer = threading.Timer(TIMER_LENGTH, login )
myTimer = threading.Timer(TIMER_LENGTH, login)
myTimer.daemon = True
myTimer.start()


def main():
print("In Main")
login()
sleep(5)
sys.exit(0)




main()
Loading