473,410 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

packaging question - documentation

Hi All,

I am rearranging the layout of one of my python projects so that it
more closely conforms to how most python projects seem to work. I now
have a structure like this:

seismic-py
- setup.py
- seismic
- bulk of the code
- scripts
- programs that go in bin

I am using OptionParser, help2man, groff and man2html to provide man
pages. Everything was sitting in the top level directory, so it was
clear where to put these, but where do I put the foo.help2man files
that contain extra text for the man pages? If I put it in scripts,
that is pretty easy to cope with, but I was thinking about a docs
directory, but then the build process might be more difficult. Or
should I be putting in another string in each executable that contains
this extra man page info? Then it would show up in epydoc as well.
Maybe something like

__help2man__ = '''
[AUTHOR]
Kurt Schwehr

[SEE ALSO]
segysql.py

[DESCRIPTION]
..PP

The --coord-unit option is designed to allow use of databases that
exclude the CoordUnit field. This field is probably the same for all
traces in the majority of SEGY data files, so most segy-py drivers
will want to exclude coordunit from the short list (see segysql.py).
The values are taken from page 14 of the SEG-Y Rev 1 specification

-1 = Follow field 89-90 of the trace header
1 = Length (meters or feet) [NOT supported]
2 = Seconds of arc
3 = Degrees, minutes, seconds (DMS) [NOT SUPPORTED]
'''

I am still in the middle of shuffling the tree about, but it is
available here...

https://cowfish.unh.edu/projects/seismic-py/

Any thoughts would be greatly appreciated! I am still trying to
understand the best practices for python packaging.

Thanks!
-kurt

Mar 31 '06 #1
1 1258
Sorry about not being clear. I have been downloading quite a few
packages for examples, but have not found a good example of man page
building from optparse.

seismic-py
- setup.py
- seismic
- __init.py__
- bulk of the code *.py
- scripts
- programs that go in bin/the users executable path (no .py
extension)

Apr 1 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Benji York | last post by:
Please join us September 14, 7:30-9:00 PM, for the fourth meeting of the Fredericksburg, VA Zope and Python User Group ("ZPUG"). This meeting has three features of note. - Fred Drake, Zope...
19
by: Blair Adamache | last post by:
IBM is hosting a user focus session to get feedback on a new design concept for installing software products and maintenance. The information below gives a brief summary of the information about...
1
by: Barry Edmund Wright | last post by:
Problem when using Xp Packaging Wizard and the database being able to find the Application Icon after database is deployed. Under Menu/Tools/Startup form I have: Application Icon:...
1
by: Coy Howe | last post by:
This one seems bizarre! We have a database consisting of a main table and 12 - 15 "sub" tables, which are connected via cascading relationships. The database performs many complex calculations...
3
by: Paul Aspinall | last post by:
Hi I want to package my C# winforms app, to be deployed with MSDE, as easily as possible for the end user. I want to create an MSI or Installshield (prefer MSI), to setup my C# app, together...
0
by: blkwebman | last post by:
I'm trying to create a "standalone" install package (without any of the dialog boxes that a standard setup package would have). I think I understand how to do it in VB6 (using PDCmdLn.exe); I have...
15
by: John Nagle | last post by:
I've been installing Python and its supporting packages on a dedicated server with Fedora Core 6 for about a day now. This is a standard dedicated rackmount server in a colocation facility,...
4
by: Mr Seth T | last post by:
Hey, I have spent several days trying to find out how to do something, and i don't know if I am blind or what, but I can not find it. I am developing a web app and I need it to run an activex...
5
by: Paul Rubin | last post by:
I've been through this kind of thing a few times in the past and received excellent advice here on clpy about how to deal with specific technical aspects (e.g. how to use setuptools, InnoSetup,...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.