PySlither / Slither

A Python module for bridging Scratch and Python
http://pyslither.github.io/
MIT License
14 stars 6 forks source link

Release on PyPi? #13

Closed ghost closed 8 years ago

ghost commented 8 years ago

It would be much easier if you submitted Slither to PyPi? Then you could just type "pip install slither" and you've got it. Anyways, I found a guide on submitting packages to PyPi here:

ghost commented 8 years ago

http://peterdowns.com/posts/first-time-with-pypi.html

Tymewalk commented 8 years ago

Sounds good to me, I've submitted stuff to PyPi before. The only problem might be PyGame, is that up on PyPi as well?

BookOwl commented 8 years ago

@Tymewalk unfortunately, it isn't. You could just not list it in your dependencies and tell users to install it from the Pygame website before they use Slither

Tymewalk commented 8 years ago

@BookOwl All right. I'll see if I can get a setup.py working for Slither. I can probably just copy-paste it from Tymeventure with a couple of changes :stuck_out_tongue_closed_eyes:

Tymewalk commented 8 years ago

By the way, #17 will have to be resolved before this can be finished.

BookOwl commented 8 years ago

I think we're ready

Tymewalk commented 8 years ago

@BookOwl I think so too. What version do we release as? 0.0.1?

BookOwl commented 8 years ago

I would do 0.1.0

Tymewalk commented 8 years ago

@BookOwl All right. (I'll also make a release here on GitHub.) How do we share a development version/fix over PyPi? Or is that discouraged?

Tymewalk commented 8 years ago

We're now released on PyPi as slither. Yay!

BookOwl commented 8 years ago
  1. I don't think that development versions are supposed to be shared on pypi. You do put up bug fixes.
  2. Great! I'll test it out when I get home
ghost commented 8 years ago

YAY! Finally an easy way to get slither

BookOwl commented 8 years ago

Should we close this?

Tymewalk commented 8 years ago

@BookOwl That depends. Does it work for you?

BookOwl commented 8 years ago

Pip install is not working for me.

pip install slither
Collecting slither
  Could not find a version that satisfies the requirement slither (from versions: )
No matching distribution found for slither

I tried it on two different Windows machines

Tymewalk commented 8 years ago

@BookOwl Weird... I know it's up on PyPi.

BookOwl commented 8 years ago

@Tymewalk, can you give me the URL?

Tymewalk commented 8 years ago

@BookOwl Yeah. Just give me a moment, it's under slither if that helps.

Tymewalk commented 8 years ago

https://pypi.python.org/pypi/slither

BookOwl commented 8 years ago

It doesn't look like you have any files uploaded... Can you give me access to the Pypi thing so that I can see what's wrong?

Tymewalk commented 8 years ago

It doesn't look like you have any files uploaded...

Strange... I know I have slither and Tymeventure up there.

Tymewalk commented 8 years ago

@BookOwl WAIT - I found it. There's information, but no files. I never uploaded any. :facepunch: (closest thing to facepalm)

Tymewalk commented 8 years ago
running sdist
running egg_info
creating slither.egg-info
writing slither.egg-info/PKG-INFO
writing top-level names to slither.egg-info/top_level.txt
writing dependency_links to slither.egg-info/dependency_links.txt
writing manifest file 'slither.egg-info/SOURCES.txt'
reading manifest file 'slither.egg-info/SOURCES.txt'
writing manifest file 'slither.egg-info/SOURCES.txt'
warning: sdist: standard file not found: should have one of README, README.rst, README.txt

running check
creating slither-0.1.0
creating slither-0.1.0/slither
creating slither-0.1.0/slither.egg-info
making hard links in slither-0.1.0...
hard linking setup.py -> slither-0.1.0
hard linking slither/__init__.py -> slither-0.1.0/slither
hard linking slither/snakey.png -> slither-0.1.0/slither
hard linking slither.egg-info/PKG-INFO -> slither-0.1.0/slither.egg-info
hard linking slither.egg-info/SOURCES.txt -> slither-0.1.0/slither.egg-info
hard linking slither.egg-info/dependency_links.txt -> slither-0.1.0/slither.egg-info
hard linking slither.egg-info/top_level.txt -> slither-0.1.0/slither.egg-info
Writing slither-0.1.0/setup.cfg
creating dist
Creating tar archive
removing 'slither-0.1.0' (and everything under it)
running upload
Submitting dist/slither-0.1.0.tar.gz to https://pypi.python.org/pypi
Server response (200): OK

That's what python setup.py sdist upload -r pypi gives me. Let's check to see what files are up on PyPi now...

Tymewalk commented 8 years ago

@BookOwl Now try.

BookOwl commented 8 years ago

It worked!

Tymewalk commented 8 years ago

@BookOwl Yay, it finally works! So, TL;DR: You can use pip install slither, and Tymewalk needs to learn register != upload.

Tymewalk commented 8 years ago

Oh, and we completed all the April 9th tasks!