Coder Social home page Coder Social logo

Comments (4)

mwhudson avatar mwhudson commented on June 21, 2024

(by mwhudson)
I can see the problem (it will also affect a project that uses buildout).

I'm less clear on a solution though :/

from pydoctor.

mwhudson avatar mwhudson commented on June 21, 2024

(by naesten)
I was thinking something like

--(module|package)=[python.module.name:]/path/to/file/or/directory

where, if omitted, the python.module.name would be assumed to be just "directory" in this case. If you passed a filename ending in .py, it would be just the basename of that. (It wouldn't really matter whether what you passed was a module filename or a package directory name.)

I've not got my heart set on this exact syntax, but it seems like it wouldn't be too hard...

The config file bit, I'm not too sure about. I guess a variable that you set to a comma-seperated list of these would be the obvious approach ... I'd try to implement it myself, but the code scares me :-(.

from pydoctor.

mwhudson avatar mwhudson commented on June 21, 2024

(by mwhudson)
Samuel Bronson wrote:

I was thinking something like

--(module|package)=[python.module.name:]/path/to/file/or/directory

where, if omitted, the python.module.name would be assumed to be just
"directory" in this case. If you passed a filename ending in .py, it
would be just the basename of that. (It wouldn't really matter whether
what you passed was a module filename or a package directory name.)

Actually, I've come to think that the --module options are silly;
they're arguments really.

pydoctor bzrlib.plugins.svn:~/.bazaar/plugins/svn ~/src/bzr.dev/bzrlib

doesn't seem too bad.

I've not got my heart set on this exact syntax, but it seems like it
wouldn't be too hard...

The config file bit, I'm not too sure about. I guess a variable that you
set to a comma-seperated list of these would be the obvious approach ...
I'd try to implement it myself, but the code scares me :-(.

It scares me a bit these days too :( If you wanted to rip it out and
use configlue or something instead, I'd be very happy with that.

Cheers,
mwh

from pydoctor.

mwhudson avatar mwhudson commented on June 21, 2024

(by naesten)
On Tue, Aug 4, 2009 at 9:46 PM, Michael Hudson wrote:

Samuel Bronson wrote:

Actually, I've come to think that the --module options are silly;
they're arguments really.

pydoctor bzrlib.plugins.svn:~/.bazaar/plugins/svn ~/src/bzr.dev/bzrlib

doesn't seem too bad.

Yeah, that's even better.

The config file bit, I'm not too sure about. I guess a variable that you
set to a comma-seperated list of these would be the obvious approach ...
I'd try to implement it myself, but the code scares me :-(.

It scares me a bit these days too :(  If you wanted to rip it out and
use configlue or something instead, I'd be very happy with that.

I'm not familiar with that, and ripping large pieces out of other people's code isn't my cup of tea...

from pydoctor.

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.