Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'configure' import fail in test_production.py #29

Open
wants to merge 55 commits into
base: master
Choose a base branch
from

Conversation

mik1234mc
Copy link

I followed the README, but the test execution failed on 'configure' import.

python3 test_production.py
Traceback (most recent call last):
File "/home/michael/projects/kicost-digikey-api-v3/test_production.py", line 1, in
from kicost_digikey_api_v3 import by_digikey_pn, by_keyword, by_manf_pn, configure
ImportError: cannot import name 'configure' from 'kicost_digikey_api_v3' (/home/michael/projects/kicost-digikey-api-v3/kicost_digikey_api_v3/init.py)

set-soft added 30 commits June 3, 2021 17:48
- Now hardcoded in utils.py
- Name, description and URL changed.
- Removed extra dependencies.
- In case we ever need to refresh the hardcoded one.
- Very small and rare module.
- The ones inherited from certauth
- Now the setup takes the dependencies from requirements.txt
- Removed the BatchProductDetails API, not free.
- Added wrapper to use it from KiCost.
- Arguments are tuples, not lists
- Now the default is to cache results for 24 hours
- Can be configured using DIGIKEY_CACHE_TTL
- Cache can be "persistent" using a negative value
- The cache can be supressed using 0
set-soft and others added 25 commits October 25, 2021 11:06
- Routed to debug
- Also made oauth2 logger configurable
- Unless we are debugging
- Nothing from the environment
- This is because KiCost is centralizing the config
- Removed the cache implementation
- Using just an object, not multiple inheritance
- Also fixed missing shebang
- Also changed the e-mail to match the signature
- Do not cache empty results
- Avoid trying to access them
- Used things that no longer exist
- Implemented the configuration logic in tools/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants