aconrad / pycobertura

A code coverage diff tool for Cobertura reports
MIT License
114 stars 39 forks source link

Publish project to conda-forge #163

Closed gro1m closed 1 year ago

gro1m commented 1 year ago

I think it could be convenient to have this package also on conda-forge, as at our company we mainly install from there, as installing from pip has issues with security scanning and performance.

Could this be viable @aconrad ?

The following steps would have to be taken to make the "pycobertura" project available on conda-forge

STEP 1 Create a conda recipe

A conda recipe is a file that specifies the information necessary to build the package. You can create a recipe file by using the conda skeleton command. This command will automatically generate a recipe file based on the GitHub repository of the project.

STEP 2 Test the recipe

Once the recipe is generated, it should be tested to ensure that it builds correctly. The conda build command can be used to build the package locally. This command will create a conda package that can be installed and tested.

STEP 3 Submit the recipe to conda-forge

After the recipe is tested and working correctly, it can be submitted to the conda-forge repository. This can be done by creating a pull request on the conda-forge feedstock repository.

STEP 4: Wait for the package to be built

Once the recipe is submitted, it will be reviewed by the conda-forge maintainers. If the recipe is accepted, the package will be built and made available on conda-forge.

STEP 5: Install the package

Once the package is available on conda-forge, it can be installed using the conda install command.

aconrad commented 1 year ago

I'm not opposed to it, although I'm not a conda user so I'm not sure how well I can support it on the long run. But if it's low-maintenance (set it up once and then have scripts to help manage releases) then why not?

Can you submit a PR with the changes to support conda? I assume I'd have to create a conda account to publish packages there?

gro1m commented 1 year ago

I'm on it - hope to do a PR this week outlining the steps I've used. Found this resource valuable as well:

gro1m commented 1 year ago

Already done by @synapticarbors: thank you!

We might want to test it and document it in the README, what do you think: @aconrad?

aconrad commented 1 year ago

Already done by @synapticarbors: thank you!

We might want to test it and document it in the README, what do you think: @aconrad?

We could add a disclaimer that it's available on conda-forge and show an install command. Although I'd like to phrase it in a way that it was done by a 3rd party and not officially supported by us since we haven't been involved in this process.