Questions tagged [packages]

Packages are bundles of software artifacts, such as distribuable components (libraries, modules,...), source code elements, or modelling elements.

Filter by
Sorted by
Tagged with
1 vote
1 answer
94 views

package by feature and common parts of code

I built an app in the way that one context is closed in one package. However, as code grows there are more situations in which the code is duplicated. As I understand the package should contain ...
MyWay's user avatar
  • 111
5 votes
1 answer
2k views

Does a programming language with ML-style modules need packages?

This is a clarification of a closed question. I've limited the scope as requested. First, a few definitions, following e.g. A modular module system. Consider any programming language with a selected ...
Corbin's user avatar
  • 152
0 votes
1 answer
63 views

API design with conditional compilation: stubs and exceptions vs public API change?

I am developing a package for the Unity game engine. I want to add additional functionality to my package if another specific package is present. I am faced with a dilemma I am not sure which of these ...
starikcetin's user avatar
1 vote
2 answers
695 views

How to deal with constants that are shared between multiple packages?

I'm looking at creating my first packages to clean up my codebase. Below is a very simplified version of my current project structure: my_project/ |-database.py |-app_1.py |-app_2.py |-constants.py ...
Jossy's user avatar
  • 311
1 vote
1 answer
404 views

What are the benefits of keeping npm packages up-to-date? [closed]

The company I work for is maintaining and developing a web application that uses many Node.js packages. A lot of these packages are really outdated. I can intuitively understand that it is good to ...
Akaisteph7's user avatar
1 vote
2 answers
93 views

What is the most efficient approach about dependencies versions?

Recently I had many problems opening old projects, which had all dependencies in package.json defined with ^ x.y.z. When I pull the code and run npm install the dependencies are installed but I will ...
Jancer Lima's user avatar
0 votes
3 answers
158 views

Best ways to deal with unexpected bugs in already published npm packages

I'm working on an npm package, and I'm kind of new to this. I published version 0.1.0, but when I did, I saw that there was a bug that broke the entire package. I do not think that it is right to make ...
Recleun's user avatar
  • 19
-4 votes
2 answers
129 views

Does Jenkins essentially function like a package manager for your software product?

I'm a relatively new IT Ops guy in a software (web) development company. Recently I deployed a virtual machine on OpenStack, because some developer needs it, and then I installed their application (...
Noob_Guy's user avatar
  • 159
2 votes
1 answer
294 views

Releasing a project for multiple languages and package managers

My friend is building a small open-source project with a few convenience functions. He'd like to release both JS, PHP and Python versions of the package to npm, packagist and pypi. The main part of ...
Anna's user avatar
  • 147
0 votes
1 answer
201 views

PyPI Package Names Governance

The Python Package Index (PyPI) is a public repository, and it seems that anyone can upload packages to it using a tool like twine. The openness of the system raises some questions: Say, a person/...
shinvu's user avatar
  • 131
-3 votes
1 answer
40 views

Publishing packages for personal and commercial use [closed]

I have a pretty high level question for you and am looking for some different experiences and input. Does anyone publish their own private or public packages for their own personal convenience? ...
Harry Stuart's user avatar
1 vote
1 answer
2k views

Appropriate naming for (GitHub) repositories belonging to the same project [closed]

I have some issues selecting an appropriate naming scheme for GitHub repositories that belong to the same project. The main package repo relies on additional repos to generate documentation or run ...
mluerig's user avatar
  • 137
3 votes
3 answers
361 views

Is there merit to keeping packages/dependencies in a legacy project up to date?

I have been assigned a ticket to update all node packages and dependencies in a react project to the latest possible version without breaking the application monolith as it is now; no further ...
David Gamboa's user avatar
1 vote
3 answers
244 views

Should Source Generators be used for managing optional dependencies

Let me try to clarify my question with an example. Assume a library of some sort which has a built in logging system and it is published as Library.Core. As the maintainer you want to add a wrapper ...
Twenty's user avatar
  • 121
1 vote
1 answer
146 views

How to manage versioning for changes that only affect some pieces of a package?

I'm designing a new language and the package-management system for it (something like NPM, Cargo, Pip, Gem, Cpan, Cabal, NuGet or the like). I'm trying to decide what's a good way to handle the ...
Blue Nebula's user avatar
-1 votes
1 answer
79 views

How to write package for two frameworks

I'm developing a package for Laravel & Lumen in the same code base, but I encountered some problems. Well, in the beginning, I thought it could have the same code and work for both frameworks, ...
Ariana's user avatar
  • 17
-1 votes
1 answer
136 views

Package management & DTAP: how to keep overview?

We have an application which contains of multiple composer packages. A default structure of the site is: src/ application/ vendor/ vendorname/ framework/ filemanagement/ ... Each package has its ...
Erwin iBiZZ's user avatar
1 vote
1 answer
41 views

CLI and Lib package, where to put module loading code

My Software contains a lib package, a cli package and an arbitrary number of plugin packages. The plugin packages do the algorithmic work. The lib package basically just executes the plugins and ...
danielr1996's user avatar
-2 votes
6 answers
206 views

Why don't packages formally specify (and repositories verify) their contracts

So, most software depends upon third-party libraries, to some extent or another. Specifications of such libraries' behaviour usually takes the form of human-readable documentation. We write ...
user365547's user avatar
-3 votes
1 answer
130 views

Is there a standard format for build packaging or do I need to invent my own format?

I have a build pipeline that builds my C++ project on Windows, macOS and Linux. The build process generates 100 libraries and files on each OS. So I have a directory with these files, and I want to ...
Daniel Stephens's user avatar
3 votes
1 answer
1k views

Packaging a python project which requires non-python packages

I'm following the python documentation about "distributing packages using setuptools". It doesn't mention what to do if a python package you want to include in your install_requires requires a system ...
James Owers's user avatar
0 votes
1 answer
374 views

To structure big and expandable project(s)

TLDR with bold I want to create a library (I think this is the right term) for my own reinforcement learning environments (envs for short). Most of the envs would be based on self-implemented games ...
Dudly01's user avatar
  • 137
2 votes
0 answers
63 views

How to deal with package management when having a monolith broken down in packages?

At our company we have a monolith PHP application which has been broken down into multiple (self developed) packages around the (self developed) framework package. This application isn’t a SAAS ...
Erwin Augustijn's user avatar
-1 votes
1 answer
1k views

Do publishing and deployment mean the same?

https://docs.microsoft.com/en-us/dotnet/core/tutorials/publishing-with-visual-studio In Create a Hello World application with .NET Core in Visual Studio, you built a Hello World console application....
Tim's user avatar
  • 5,415
1 vote
1 answer
110 views

Does it make sense for a package to depend on, e.g. import, its nested packages?

I think depending on nested packages is wrong, because the nested packages are always going to depend on the parent —aren't they?– and this can lead to cyclic dependency issues. When I look at how ...
clapas's user avatar
  • 121
2 votes
1 answer
397 views

Managing compatibility and dependencies in code library

I manage a library that is made of multiple components, there is some dependencies between some of these components, for example I have a core library for common code base that is referenced by other ...
Sisyphus's user avatar
  • 369
-3 votes
1 answer
78 views

Packaging of a web application code-base [closed]

Michael Nygard writes in Release It!: Have you ever checked in a commit that had bunch of new files like "Foo", "FooController", "FooFragment", "FooMapper", "FooDTO", and so on? That is evidence of ...
Barney's user avatar
  • 211
0 votes
2 answers
4k views

Difference between package and component?

I commonly come across the terms "package" and "component" in software engineering. To my understanding, both indicates an independent software that can be used by another (larger) software. What ...
Nasif Imtiaz Ohi's user avatar
0 votes
1 answer
197 views

How to set up import main module while developing a Python package

This is a matter of naming, structuring and conventions. I am developing a simple python package. in a directory "PKG" I have 3 files: __init__.py: # import the main module import PKG.main # in ...
maciek's user avatar
  • 109
1 vote
1 answer
132 views

Best way to deal with multiples projects when using go mod/vendors

I am pretty new with go mod and vendor... I have a project A and a project B out of the GOPATH. I import project A in project B. I own both projects and I modify them. As I use externals packages ...
julien2313's user avatar
1 vote
1 answer
317 views

Build docker images for GUI applications in Linux

Currently I'm building GUI applications for Linux and they have many dependencies( We ship Raspberry Pi devices with the executable installed on each device). My idea is to create a docker image for ...
pruthvidr's user avatar
2 votes
3 answers
756 views

Doubt about package-by-feature and circular dependencies

I am implementing a library that: Takes some input data (I put data structures and classes in the parsing package) Stores the data in a structure (I put data structures and classes in the storage ...
Vigenere's user avatar
  • 129
0 votes
0 answers
41 views

Packaging for distribution: include CI config and other files the end user doesn't need in the package?

(Disclaimers: I have checked on Google and this site. I have read this answer, which is the only related one I could find here. Additionally, that answer is from 2017, and I wonder if things have ...
cxw's user avatar
  • 485
1 vote
1 answer
48 views

modular system (packages) with dependencies?

I am building few sites for my company's client. The sites are mostly the same but could have some customisations. so we decided to create duplicate sites instead of multi-tennant and we decided to ...
shez1983's user avatar
4 votes
1 answer
80 views

Is it reasonable for an R package to import another package just for coding convenience?

I am writing my first R package, converting my existing scripts into a bona fide package. I frequently use the magrittr pipe operator %>% in my code because I find it makes code more intuitively ...
Josh's user avatar
  • 151
3 votes
2 answers
154 views

Build pipeline, dependency on unreleased package

My team is currently making some changes to our solution structure. Before the change we basically had a single solution file with about 40 different projects. Most of these projects are libraries ...
Rik D's user avatar
  • 4,480
1 vote
1 answer
61 views

Should libraries be packaged together based on similar traits?

I just started a new job and one of my first tasks is to create local nuget packages from the existing libraries, to help with versioning, maintenance, etc. This task had already been started by ...
Corey P's user avatar
  • 1,224
0 votes
1 answer
28 views

Share some small bits of functionalities across packages

Suppose that: you invent a new coordinates system and you create a class to represent it you have two products which need to deal with this coordinates system but which, apart from that, are ...
filaton's user avatar
  • 309
3 votes
1 answer
807 views

Cross-cutting concerns in package-by-feature structure

What is your suggestion on where to put cross-cutting concerns in a package-by-feature structured app? This aspect seem to be missing from most of the pro package-by-feature articles I have read. ...
user2725580's user avatar
2 votes
1 answer
2k views

What do you put in a "common" package? [duplicate]

I am trying to develop my package structure based on features rather than layers, but am struggling to find a package name for some of the classes. I have seen people use a package name of common for ...
secondbreakfast's user avatar
0 votes
1 answer
130 views

Creating data files inside a package

I'd like to deploy my code to a web server as a package. There Python is subprocessed and scripts are executed. These scripts use data files. But in case a file is needed and it doesn't exist, it ...
Felix's user avatar
  • 357
2 votes
0 answers
167 views

Packages, a controller class, and coupling vs cohesion

So I'm building my first application, in Python, and some issues have cropped up because of the lack of interfaces (I.e. explicit type declaration) My design involves several homebrew packages, and I'...
user309290's user avatar
69 votes
9 answers
20k views

Why prefer a package manager over a library folder?

When I think about the pros and cons of a static library folder and a package manager I feel like the library folder is a better approach. Pros I see with a library folder: No need for an external ...
Ignacio Soler Garcia's user avatar
1 vote
2 answers
2k views

Major version number as part of package name / namespace?

Background In a software ecosystem where different packages depend on different versions of other packages, sometimes dependency resolution ends in a version conflict. Example: Root package A ...
donquixote's user avatar
16 votes
4 answers
3k views

How should one manage constants across multiple languages?

I have a situation where I support what is functionally the same library in multiple languages. There are often constants that need to be shared between these (for example, json field name keys or ...
enderland's user avatar
  • 12.1k
3 votes
1 answer
2k views

If I package by feature, but have many homogeneous classes, what is preferable?

I am wondering whether this is the correct way to handle my situation when packaging-by-feature. Use the following project structure as an example: com.foobar.web.Bootstrap.java com.foobar.web....
Thomas Ryder's user avatar
1 vote
2 answers
1k views

Private or default visibility for "file-private" members?

I have a class like this public final class Outer { static final class Inner { /* Used in the package. */ void f() {...} /* Used in Outer. */ WHATEVER void g() {.....
maaartinus's user avatar
  • 2,633
7 votes
1 answer
5k views

Breaking a Large Python Project into Multiple Packages

I have a medium sized Python program (12 KLOC) organized as a single Python package with multiple subpackages: proj/ setup.py proj/ __init__.py projfile1.py subproj1/ ...
Bryce Guinta's user avatar
1 vote
1 answer
135 views

Isn't it redunant to declare package in the class file? Can't it be inferred from the build path?

I have class Foo, its first line reads package com.bar.something.baz. Its file is in /com/bar/something/baz/. Why do I have to declare the package in the class file and then put the file in the same ...
Mindwin Remember Monica's user avatar
0 votes
1 answer
1k views

Interface design of Java library with interdependent yet decoupled packages

I plan to write a library in Java, consisting of packages A, B, C and so on. Every package encapsulates a part of the big picture. B relies on A, C on B and so on. For this purpose every package ...
Falcon's user avatar
  • 3