Coder Social home page Coder Social logo

Publish to PyPi about hnswlib HOT 6 CLOSED

nmslib avatar nmslib commented on August 15, 2024
Publish to PyPi

from hnswlib.

Comments (6)

scottgigante avatar scottgigante commented on August 15, 2024 1

@yurymalkov if you want to upload it in its current form I think you could just do

cd hnswlib/python_bindings
python setup.py sdist bdist_wheel
twine upload -r pypi dist/*

If you've never used twine before, you will have to open an account on pypi.org and test.pypi.org, download twine and create your ~/.pypirc as follows:

[distutils]
index-servers =
  pypi
  pypitest

[pypi]
repository=https://upload.pypi.org/legacy/
username=myuser
password=mypassword

[pypitest]
repository=https://test.pypi.org/legacy/
username=myuser
password=mypassword

Read more: https://packaging.python.org/guides/using-testpypi/

from hnswlib.

yurymalkov avatar yurymalkov commented on August 15, 2024 1

@scottgigante Thank you so much!
I think the second option is a bit better (keeps backward compatibility).

from hnswlib.

yurymalkov avatar yurymalkov commented on August 15, 2024

Hi @scottgigante,
It is in the plans, but, probably, I would need help to do it.

from hnswlib.

yurymalkov avatar yurymalkov commented on August 15, 2024

@scottgigante I would be nice if you have time to help with packaging. E.g. point out a good step-by-step guide.

from hnswlib.

yurymalkov avatar yurymalkov commented on August 15, 2024

@scottgigante Thank you!

from hnswlib.

louisabraham avatar louisabraham commented on August 15, 2024

@scottgigante I don't think it is so simple because of the #include "../hnswlib/hnswlib.h".

I am willing to help. There are two solutions:

  • changing the structure of the git folder
  • calling cp when wanting to publish a new version on pypi

Which one do you prefer @yurymalkov?

from hnswlib.

Related Issues (20)

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.