Questions tagged [packages]
Packages are bundles of software artifacts, such as distribuable components (libraries, modules,...), source code elements, or modelling elements.
149
questions
6
votes
2
answers
152
views
Offering multiple versions of artifact heavy package
I am developing a package that requires some very large (>50 Mb in some cases) artifacts to work for some of its features. This makes distributing this package annoying, as if I include these ...
0
votes
0
answers
42
views
CMake Reusability and Package Management
My question is focused on CMake C++ projects and separating out code into multiple repositories for re-usability, and somewhat mimicking a naive package management system. For now I would like to ...
0
votes
0
answers
43
views
Package by feature for APIs that are exporting or / and importing data
We are generally following the package-by-feature approach, which is great.
However, one specific case is constantly causing confusion and inconsistencies, and I'd like to know your approaches in this ...
0
votes
0
answers
60
views
How should I organize build instructions for third-party packages?
In my projects I have several third-party Python packages which I need to build from source (because there are no .whl packages published for the versions+platforms I need). Currently these packages ...
1
vote
1
answer
226
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 ...
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 ...
0
votes
1
answer
66
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 ...
1
vote
2
answers
1k
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
...
1
vote
1
answer
855
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 ...
1
vote
2
answers
100
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 ...
0
votes
3
answers
163
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 ...
-4
votes
2
answers
171
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 (...
2
votes
1
answer
426
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 ...
0
votes
1
answer
243
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/...
-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?
...
1
vote
1
answer
3k
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 ...
3
votes
3
answers
468
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 ...
1
vote
3
answers
266
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 ...
1
vote
1
answer
163
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 ...
-1
votes
1
answer
80
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, ...
-1
votes
1
answer
144
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 ...
1
vote
1
answer
43
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 ...
-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 ...
-3
votes
1
answer
134
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 ...
4
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 ...
0
votes
1
answer
496
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 ...
2
votes
0
answers
64
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 ...
0
votes
1
answer
2k
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....
1
vote
1
answer
126
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 ...
2
votes
1
answer
484
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 ...
-3
votes
1
answer
81
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 ...
0
votes
2
answers
5k
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 ...
0
votes
1
answer
369
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 ...
1
vote
1
answer
157
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 ...
1
vote
1
answer
338
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 ...
2
votes
3
answers
847
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 ...
0
votes
0
answers
42
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 ...
1
vote
1
answer
49
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 ...
4
votes
1
answer
88
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 ...
3
votes
2
answers
158
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 ...
1
vote
1
answer
63
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 ...
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 ...
3
votes
1
answer
899
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.
...
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 ...
0
votes
1
answer
138
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 ...
2
votes
0
answers
171
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'...
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 ...
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 ...
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 ...
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....