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

Packaging: setup.py, PyPI, easy_install, pip #58

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 12 comments
Open

Packaging: setup.py, PyPI, easy_install, pip #58

GoogleCodeExporter opened this issue Apr 18, 2015 · 12 comments

Comments

@GoogleCodeExporter
Copy link

hi here, 

As soon as I can see, I havent see any way to install txt2tags from PyPI (pip, 
easy_install, etc.).

Is that a choice, or is that because you didnt thinked about it ?
If it's because you think it's hard to do, I'll reasure you, it's not. I can 
help if you need.

Hope it's useful.

Original issue reported on code.google.com by ametair...@gmail.com on 8 Nov 2010 at 9:18

@GoogleCodeExporter
Copy link
Author

Hi ametaireau,

I know nothing about PyPI or setup.py :(
If you could help the project by making it available in PyPI, your work will be 
very welcome!
Thanks!

Original comment by aureliojargas@gmail.com on 8 Nov 2010 at 11:14

@GoogleCodeExporter
Copy link
Author

yep, sure. What I need is a list of the dependencies you use, the author email 
and this kind of stuff.

What I can do is make a simple setup.py file, and then ask you for some inputs.

Do you have some place I can contribute using mercurial/git (that way you can 
review my changes before puting them in trunk).

cheers

Original comment by ametair...@gmail.com on 8 Nov 2010 at 1:00

@GoogleCodeExporter
Copy link
Author

Thanks ametaireau, so please do it and I help you with the information you need.

You can commit your work directly into trunk/dist, I gave you SVN commit access.

About dependencies, we just use the standard python libraries: re, os, sys, 
time, getopt, csv, gettext, traceback, Tkinter. Author contact is verde at 
aurelio dot net.


Original comment by aureliojargas@gmail.com on 8 Nov 2010 at 1:43

  • Changed state: Started
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Okay, I'm starting looking at it, so correct me if I'm wrong.
what's needed to package is the txt2tags file, hmm ?

Is there a lib, otherwise ? What about what is in the extra and the dist 
folders: what are they to ?

Do you think considering splitting the binary and the lib into two files is a 
good idea ? (I think so)

How the .po files are supposed to be used at the installation time ?

I'm now starting to package it "as is", I'll commit the changes then. Is there 
a way to contact you by IM / IRC ?

Alex

Original comment by ametair...@gmail.com on 8 Nov 2010 at 9:15

@GoogleCodeExporter
Copy link
Author

See rev 391 for the basic setup.py.

Original comment by ametair...@gmail.com on 8 Nov 2010 at 11:31

@GoogleCodeExporter
Copy link
Author

Original comment by ametair...@gmail.com on 8 Nov 2010 at 11:31

@GoogleCodeExporter
Copy link
Author

Alex, thanks for the commit!

I've fixed url and author name in setup.py in r394.

Yes the trunk/txt2tags is the only file needed to run the program. The rest are 
just sample files or external (optional) tools. There is no lib.

I don't know how pypi handles .po files, or maybe .mo files (generated from .po 
by gettext tools). The .mo files should go to i18n folders (varies from each 
Linux distro).

I think some instructions at setup.py header (as comments) would be nice. I 
don't what to do with it.

You can contact me as aureliojargas in gtalk.

Original comment by aureliojargas@gmail.com on 9 Nov 2010 at 5:15

@GoogleCodeExporter
Copy link
Author

I've read about Python packaging (never have used easy_install) and now I see 
that we're missing the train. Thanks Alex for bringing this out.

The new version of txt2tags should be on PyPI. There are valuable information 
about packaging here, for those who are interested:

http://diveintopython3.org/packaging.html
http://docs.python.org/distutils

Original comment by aureliojargas@gmail.com on 10 Nov 2010 at 1:19

  • Changed title: Packaging: setup.py, PyPI, easy_install, pip
  • Added labels: Priority-Critical
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

I have to add another useful resource too: http://guide.python-distribute.org/
cheers, alex

Original comment by ametair...@gmail.com on 10 Nov 2010 at 1:23

@GoogleCodeExporter
Copy link
Author

For the current 2.6 version, Python developers can install txt2tags as a Python 
module with this command:

easy_install -f "http://txt2tags.org/txt2tags.py#egg=txt2tags-2.6" txt2tags

Original comment by aureliojargas@gmail.com on 10 Nov 2010 at 1:47

@GoogleCodeExporter
Copy link
Author

Two things: 

- I can't find any record of txt2tags on pypi by now (and thus can't install)
- Relying on the eggs formats is generally a bad idea, and will be deprecated 
with distutils2, so that's maybe not a good idea to do so.

Original comment by ametair...@gmail.com on 10 Nov 2010 at 1:54

@GoogleCodeExporter
Copy link
Author

Yes, that's only a temporary solution for the current version. It creates an 
egg on the fly.

For v2.7 we'll do the right thing.

Original comment by aureliojargas@gmail.com on 10 Nov 2010 at 2:19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant