Questions tagged [module-packaging]
19 questions
14
votes
1 answer
The way to make namespace packages in Python
From Namespace Packages in distribute, I know I can make use of namespace packages to separate a big Python package into several smaller ones. It is really awesome. The document also mentions:
Note, by the way, that your project’s source tree must…

Drake Guan
- 14,514
- 15
- 67
- 94
6
votes
0 answers
Github repo with more than one python packages
I have created a Github repo in which I keep all the code for my project.
The structure is:
myproject
\
- package api
- package database
- package feature
The api package is responsible for communicating with external apis like itunes api.
The…

Nick Sorros
- 121
- 1
- 6
5
votes
1 answer
DotNetNuke module development with webservices
I need to deploy a webservice as part of a DotNetNuke 4.x module that I'm creating - but am not sure how I can do that and know that it'll always stay in the same place. How can I add an asmx file to my module project, and when I create my .DNN…

Scott Ivey
- 40,768
- 21
- 80
- 118
3
votes
1 answer
.min or src as "main"-file in package.json for node_module
I'm writing a Library for the Browser (JS, CSS) that was dependency-free up until now. Now I have at least one dependency and I'm thinking about wether or not to include the deps into the build or not.
Let's say my user uses a CDN - of course the…

ProblemsOfSumit
- 19,543
- 9
- 50
- 61
3
votes
1 answer
Where to place JavaScript unit test files in a web application
I am working on one component (which is a web application - struts - that is deployed as a WAR), and I developed some new Javascript for which I wrote some QUnit testing.
I do not know where I need to place the files that go with my QUnit…

user1329167
- 31
- 3
2
votes
2 answers
How to create a nested package space for python packages?
I'm restructuring the python libraries our company is developing into various groups. To avoid polluting the top level module namespace I'd like to group everything under a top level 'companyname' package, so we'll have 'coname.utils', 'coname.qa',…

Chris Cogdon
- 7,481
- 5
- 38
- 30
1
vote
0 answers
Why am I getting error while importing libray using wheel file?
I am trying to build a wheel file file out of a complete python project. I had followed the steps available online to build wheel file. The wheel is built successfully, it gets installed also but when I try to import in the same environment I get a…

hitesh
- 11
- 1
1
vote
0 answers
Python 3, how to import modules for pip installable package and runnable script?
I wrote a Python 3 console-application which has the same structure as the example below. I want to know how I should be importing the modules in order to achieve the behavior specified in the desired functionality section.
/foo
|-/foo
| …

pablordoricaw
- 7
- 3
1
vote
2 answers
How to import multiple class objects from seperate folders?
I built a python 2.7 application with the below directory structure for my relevant files. How do cal methods located in different folder locations?
Data-Wrangling-OpenStreetMap-data
|
+---- process_data
| |
| +---- __init__.py
| …

Fogo Fortitude
- 47
- 8
1
vote
3 answers
Problems with Perl executable with PP
I am trying to create an *nix executable from a Perl script that uses a CPAN module named Text::BibTeX.
I have been trying to use pp, to pack everything, with no success.
I have tried
pp -o outfile src.pl
pp -M Text::BibTeX -o outfile src.pl
But…

Tiago Veloso
- 8,513
- 17
- 64
- 85
1
vote
0 answers
use and install python personal libraries
I have two python projects, one includes useful packages for file manipulation and such. They are usefull because they can be reused in any other kind of project. The second is one of these projects, requiring the use of my useful packages. Here is…

kaligne
- 3,098
- 9
- 34
- 60
1
vote
4 answers
javascript revealing module pattern extension suggestion
I would like to achieve module pattern in JS. I followed some posts in google and starting writing my own.
here is what I would like to achive
mns - will be the name space for my lib
math - will be one of the sub-module in mns
and I want all these…

Ganesh K
- 2,623
- 9
- 51
- 78
1
vote
6 answers
DotNetNuke Module Packaging
Does anyone know of any simple, concise tutorials for packaging DotNetNuke modules for DotNetNuke 4 and DotNetNuke 5? Preferably something concerning DotNetNuke 5.4, since that's what I'm running.
The examples that I've seen all assume background…

Aaron Drenberg
- 1,117
- 2
- 11
- 29
0
votes
0 answers
How to bundle Python module without publishing it?
I have downloaded a Python module from
http://www.piersharding.com/download/python/sapnwrfc/
I have built it and it works fine. Now I want to use the same module on another machine. I read a bit through Python bundling and how to publish a module so…

kaidentity
- 609
- 4
- 10
- 26
0
votes
1 answer
Need proper directory structure for python packages and guidelines on good API design
I am in the midst of releasing a python package, and am confused about every aspect of packaging.
To start, my directory structure is as follows:
SamplePackage/
- setup.py
- README.rst
- LICENSE.rst
- sampledir/
-__init__.py
-sample.py
…

Adi
- 75
- 1
- 9