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

Installation using PyPI / pip #98

Closed
bitsgalore opened this issue Jan 15, 2017 · 3 comments
Closed

Installation using PyPI / pip #98

bitsgalore opened this issue Jan 15, 2017 · 3 comments
Assignees

Comments

@bitsgalore
Copy link
Member

Can be adapted from Isolyzer code:
https://github.com/KBNLresearch/verifyISOSize

@bitsgalore bitsgalore self-assigned this Jan 15, 2017
@bitsgalore
Copy link
Member Author

bitsgalore commented Aug 16, 2017

Packaging process has changed quite a bit since last time I checked; most current (?) instructions here:

https://packaging.python.org/tutorials/distributing-packages/#uploading-your-project-to-pypi

Basic steps (here uploading to testpypi for now):

  1. Remove contents of dist directory:

     rm ./dist/*
    
  2. Create wheel:

     python setup.py sdist bdist_wheel
    
  3. Upload package:

     twine upload --repository testpypi dist/*
    

Installation from test.pypi works:

sudo -H pip install -U --index-url https://test.pypi.org/simple/ jpylyzer

And running jpylyzer works also (tested for both Py2.7 and Py 3.5 by using pip2 and pip commands).

@bitsgalore
Copy link
Member Author

@bitsgalore
Copy link
Member Author

Addition: if upload via twine fails with SSLError messages, upgrade pyOpenSSL:

sudo -H pip install -U pyOpenSSL 

See also (same issue): psf/requests#4246

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

No branches or pull requests

1 participant