Parent issue: #2337283: Add a composer.json file to every component
Problem/Motivation
Part of the parent parent issue: #1826054: [Meta] Expose Drupal Components outside of Drupal
Each of the \Drupal\Component\ namespaces need their own composer.json file, so that they can eventually be offered to the world as a library.
Proposed resolution
Add the LICENSE.txt, README.txt, TESTING.txt, and composer.json files from the template in this patch: https://www.drupal.org/node/2337283#comment-9706563
Verify the various dependencies of the component, so they can be included as requirements.
Add the component's directory to \Drupal\Tests\ComposerIntegrationTest:: getPaths().
Use composer validate in the component directory to make sure the composer.json file is valid.
Remaining tasks
User interface changes
API changes
| Task | Novice task? | Contributor instructions | Complete? |
|---|---|---|---|
| Create a patch | Instructions | ||
| Reroll the patch if it no longer applies. | Instructions | ||
| Update the issue summary noting if allowed during the rc | Template | ||
| Update the patch to incorporate feedback from reviews (include an interdiff) | Instructions | ||
| Manually test the patch | Novice | Instructions | |
| Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standards | Instructions |
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | interdiff-2600716-11-13.txt | 536 bytes | naveenvalecha |
| #13 | 2600716-13.patch | 20.83 KB | naveenvalecha |
| #11 | interdiff-2600716-1-11.txt | 1.17 KB | rakesh.gectcr |
| #11 | 2600716-11.patch | 20.82 KB | rakesh.gectcr |
| #3 | 2600716-1.patch | 20.72 KB | rakesh.gectcr |
Comments
Comment #2
mile23Comment #3
rakesh.gectcrComment #4
timofej.dod commentedTested locally, patch applied correctly, tests for core passing.
Comment #6
sdstyles commentedComment #8
rakesh.gectcrComment #9
mile23Same test running problem. Should be:
$ ./vendor/bin/phpunit -c core/ --group AssertionLet's say:
"Provides runtime assertions similar to those in PHP 7, under PHP 5."
Alphabetical order, please.
Comment #10
rakesh.gectcrComment #11
rakesh.gectcr@Mile23
I have done the changes
Comment #12
mile23Thanks for sticking with it. :-)
Still needs the test running change. This should be:
$ ./vendor/bin/phpunit -c core/ --group AssertionComment #13
naveenvalechaI got the chance to looked at it . The Assertion group is not showing while doing the tests listing
../vendor/bin/phpunit --list-groupswhen you will list up the stuff.The group name in InspectorTest.php is Inspector. So this needs a slight changes. Interdiff attached.
We need to remove cd here and replace it with
$ ./vendor/bin/phpunit -c core/ --group InspectorOpen questions :
P.S. I am getting issues while uploading files on d.o. so not able to upload the patch and interdiff. I have raised the issue for it in drupal_infra #2621028: Getting issues while uploading files to d.o. randomly
Comment #14
naveenvalechaAttached interdiff for the above . Seems file upload is a random failure
Comment #15
rakesh.gectcrComment #16
alexpottClosing this in favour of a single patch on #2600720: Add composer.json to \Drupal\Component\Datetime component. as all the patches listed on the meta issue are going to conflict.