-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some important files dropped from the releases #201
Comments
I'm with you for the
|
Who is Likewise: I use php-redmine-api for a project of mine. When I install it, I want to run the tests, because I want to be sure that it works on my machine (with my version of PHP, with the other libraries on my system, etc.) It's always easier for the people who don't want those things to remove them than the other way around. Your recommendation is essentially that I fork the project to remove four lines from a text file. I can't do that for every package that I maintain. |
I don't know your workflow for a Gento package, but my workflow for a PHP project works like this: I'm using Composer for dependency management. To develop my project I'm installing php-redmine-api from source with On the production server I don't need the tests, so I'm installing the dependencies of my project with
No, my recommendation is that you run the tests on a clone (not a fork). You don't have to modify any code and (depending on your tests) you can automate this tasks completely. Example (simple draft - untestet):
|
@orlitzky I've dived deeper into your issue and the Gentoo package building process. This is all new to me, but I've found some interesting points. I've found your Gentoo package (https://packages.gentoo.org/packages/dev-php/php-redmine-api) and I understand that you have an ebuild file (https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-php/php-redmine-api/php-redmine-api-1.5.9.ebuild) for your build process. As far as I understand you can use git in the ebuild thanks to
Not sure if this will work but this seems to be a legit way to use the source code instead of the dist files. |
@Art4's last comment is correct and is what I'll have to do if the tests and documentation remain absent from the tarball releases. However, there are a number of non-obvious downsides to that approach (from my first comment):
So the choice I'm facing is to adopt those downsides, or to omit the tests and documentation from the package (also bad). It would be better for us to have everything in the tarball, but I don't want to beat this to death. |
The upsites of the The good practice of the |
@Art4 the "weight gain" is so small for that project that this argument is not really relevant (although true! :) ). |
Thanks guys. I ran into some more trouble with the version bump from commit 83e46c2, but this will make things easier for me. |
Hello, while trying to upgrade the Gentoo package for php-redmine-api, I noticed that some of the files we usually install have gone missing from the releases. This is due to the
.gitattributes
file, so I know it was intentional, but I'd like to ask you to please bring some of them back =)These are all useful to an end-user:
We run the tests before installing the package, to ensure that there are no incompatibilities on the user's system. That requires the
test
directory andphpunit.xml.dist
file. We also install the documentation, which in this case consists of simplyREADME.markdown
andexample.php
. Without those two files, it's hard to figure out how to use the library without internet access.To pre-empt the question of why we can't just get them from git,
tl;dr having those files back would make php-redmine-api easier to package for me.
The text was updated successfully, but these errors were encountered: