Skip to content
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

Add release tag #3

Open
krinsman opened this issue May 2, 2018 · 1 comment
Open

Add release tag #3

krinsman opened this issue May 2, 2018 · 1 comment

Comments

@krinsman
Copy link

krinsman commented May 2, 2018

I would like to make a conda package for screening.

According to this issue on GitHub, in order to do so, it is necessary for the repository to have at least one release tag.

Here is the output of conda skeleton cran https://github.com/wwrechard/screening:

conda skeleton cran https://github.com/wwrechard/screening

Tip: install CacheControl and lockfile (conda packages) to cache the CRAN metadata
Fetching metadata from https://cran.r-project.org
Parsing input package https://github.com/wwrechard/screening:
.. name: screening location: https://github.com/wwrechard/screening new_location: /Users/krinsman/r-screening
Making/refreshing recipe for screening
From https://github.com/wwrechard/screening
 * [new ref]                    -> _conda_cache_origin_head
Cloning into '/opt/anaconda/anaconda3/conda-bld/skeleton_1525233174558/work'...
done.
checkout: 'HEAD'
Your branch is up-to-date with 'origin/_conda_cache_origin_head'.
==> git log -n1 <==

fatal: No names found, cannot describe anything.
commit 5011c98016c26aa6bae539dac22258697d523812
Author: Sam <wwrechard@gmail.com>
Date:   Tue Apr 19 20:13:34 2016 -0400

    Update README.md

==> git describe --tags --dirty <==

commit 5011c98016c26aa6bae539dac22258697d523812
Author: Sam <wwrechard@gmail.com>
Date:   Tue Apr 19 20:13:34 2016 -0400

    Update README.md

==> git status <==

On branch _conda_cache_origin_head
Your branch is up-to-date with 'origin/_conda_cache_origin_head'.
nothing to commit, working tree clean


Leaving build/test directories:
  Work:	 /opt/anaconda/anaconda3/conda-bld/skeleton_1525233174558/work 
  Test:	 /opt/anaconda/anaconda3/conda-bld/skeleton_1525233174558/test_tmp 
Leaving build/test environments:
  Test:	source activate  /opt/anaconda/anaconda3/conda-bld/skeleton_1525233174558/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol 
  Build:	source activate  /opt/anaconda/anaconda3/conda-bld/skeleton_1525233174558/_build_env 


Error: no tags found
@krinsman
Copy link
Author

krinsman commented May 2, 2018

Update: It was possible for me to cobble together a build recipe manually, which I was then able to successfully build into a package and post to Anaconda cloud. See here for the build recipe, and here for the conda package.

It might have taken less time to create a package if the repository had a release tag, since conda skeleton seems to only work when the GitHub repository has at least one release tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant