Code Monkey home page Code Monkey logo

econtext-sdk-python's People

Contributors

jspalink avatar nulledexceptions avatar

Watchers

 avatar  avatar  avatar  avatar

econtext-sdk-python's Issues

Python package name confusion

Seems like referencing econtext-sdk-python library as econtextapi as a part of dependency in setup.py file of other libraries is making some issues.

  1. When you clone this repo and install it manually, it will be installed as eContext-API-SDK.
  2. When you put econtext-sdk-python as dependency in another package as below, it still won't install as econtextapi as the package name at https://github.com/info-com/econtext-sdk-python/blob/master/setup.py is still "eContext API SDK"
dependency_links = [
    'https://github.com/info-com/econtext-sdk-python/tarball/master#egg=econtextapi-0.1.2'
]

Do you want to change name in setup.py from eContext API SDK to econtextapi?

name = 'eContext API SDK',


Sample tests:

  1. This won't install econtext-sdk-python as we have not defined it in requires, I was thinking about this because of this:
from setuptools import setup, find_packages

requires = []

dependency_links = [
    'https://github.com/info-com/econtext-sdk-python/tarball/master#egg=econtextapi-0.1.2',
]

setup(
    name='demo',
    version="0.0.1",
    python_requires='>=3.6',
    packages=find_packages('src'),
    install_requires=requires,
    dependency_links=dependency_links,
    zip_safe=False,
    description='Demo'
)
  1. When mentioning econtext-sdk-python as 'eContext-API-SDK==0.1.2', it will give following error:
from setuptools import setup, find_packages

requires = ['eContext-API-SDK==0.1.2']

dependency_links = [
    'https://github.com/info-com/econtext-sdk-python/tarball/master#egg=econtextapi-0.1.2',
]

setup(
    name='demo',
    version="0.0.1",
    python_requires='>=3.6',
    packages=find_packages('src'),
    install_requires=requires,
    dependency_links=dependency_links,
    zip_safe=False,
    description='Demo'
)

Error:

Searching for eContext-API-SDK==0.1.2
Reading https://pypi.org/simple/eContext-API-SDK/
Couldn't find index page for 'eContext-API-SDK' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
No local packages or working download links found for eContext-API-SDK==0.1.2
error: Could not find suitable distribution for Requirement.parse('eContext-API-SDK==0.1.2')
  1. Changing requires = ['econtextapi==0.1.2'] in same setup.py file and running python setup.py install will install this library.... but when you look at pip list, econtext-sdk-python is installed as eContext-API-SDK 0.1.2 and not econtextapi. It will still work though!
Searching for econtextapi==0.1.2
Downloading https://github.com/info-com/econtext-sdk-python/tarball/master#egg=econtextapi-0.1.2
Best match: econtextapi 0.1.2
Processing master
Writing /var/folders/5m/zyglk7xn483d30g7g0180ml00000gn/T/easy_install-h49j7ln8/info-com-econtext-sdk-python-d3980d8/setup.cfg
Running info-com-econtext-sdk-python-d3980d8/setup.py -q bdist_egg --dist-dir /var/folders/5m/zyglk7xn483d30g7g0180ml00000gn/T/easy_install-h49j7ln8/info-com-econtext-sdk-python-d3980d8/egg-dist-tmp-4by_owbz
warning: build_py: byte-compiling is disabled, skipping.

warning: install_lib: byte-compiling is disabled, skipping.

zip_safe flag not set; analyzing archive contents...
Copying eContext_API_SDK-0.1.2-py3.7.egg to /Users/snehal/.local/share/virtualenvs/demo-D5QwD475/lib/python3.7/site-packages
Adding eContext-API-SDK 0.1.2 to easy-install.pth file
Installing econtext-api script to /Users/snehal/.local/share/virtualenvs/demo-D5QwD475/bin
Installing econtext-classify-keywords script to /Users/snehal/.local/share/virtualenvs/demo-D5QwD475/bin
Installing econtext-classify-social script to /Users/snehal/.local/share/virtualenvs/demo-D5QwD475/bin
Installing econtext-classify-url script to /Users/snehal/.local/share/virtualenvs/demo-D5QwD475/bin

Installed /Users/snehal/.local/share/virtualenvs/demo-D5QwD475/lib/python3.7/site-packages/eContext_API_SDK-0.1.2-py3.7.egg
error: The 'econtextapi==0.1.2' distribution was not found and is required by demo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.