[julia-users] Re: Changing a package name

2016-05-17 Thread Rob
Thanks for the clear suggestion

On Sunday, 15 May 2016 10:37:17 UTC+2, Tony Kelman wrote:
>
> Renaming an existing package can cause problems if anyone else has started 
> using or depending on it. You can deprecate the existing name of the 
> package by adding an upper Julia version number bound on all existing tags 
> of the package in METADATA, so it will no longer be installable once newer 
> versions of Julia are released. Then register the new name as a new 
> package, using a separate repository for development.
>
>
> On Sunday, May 15, 2016 at 12:59:17 AM UTC-7, Rob wrote:
>>
>> Does anyone have any tips on changing a packages name? I am looking to 
>> expand EEG.jl to encompass other electrophysiological techniques, and think 
>> the name Electrophysiology.jl would be more accurate.
>>
>> Is the general consensus to keep the old repo around and provide a 
>> warning?
>> Or, change the name of the repo in github? I imagine this will cause 
>> issues with METADATA.jl?
>>
>> Any tips to ease the transition would be appreciated.
>>
>

[julia-users] Re: Changing a package name

2016-05-15 Thread Tony Kelman
Renaming an existing package can cause problems if anyone else has started 
using or depending on it. You can deprecate the existing name of the 
package by adding an upper Julia version number bound on all existing tags 
of the package in METADATA, so it will no longer be installable once newer 
versions of Julia are released. Then register the new name as a new 
package, using a separate repository for development.


On Sunday, May 15, 2016 at 12:59:17 AM UTC-7, Rob wrote:
>
> Does anyone have any tips on changing a packages name? I am looking to 
> expand EEG.jl to encompass other electrophysiological techniques, and think 
> the name Electrophysiology.jl would be more accurate.
>
> Is the general consensus to keep the old repo around and provide a warning?
> Or, change the name of the repo in github? I imagine this will cause 
> issues with METADATA.jl?
>
> Any tips to ease the transition would be appreciated.
>


Re: [julia-users] Re: changing the package name

2016-04-27 Thread Tony Kelman
hub might also be to blame here? Though I'm pretty sure we have other hub 
users around who might've noticed this earlier


On Wednesday, April 27, 2016 at 6:39:53 AM UTC-7, Chang Kwon wrote:
>
> That’s pretty interesting. I’m actually surprised to find out what LFS is… 
> No, I didn’t enable anything… I believe…
>
> My github account is “Micro”, individual. I have once installed `hub` from 
> github, but nothing else. I want to blame homebrew-cask’s Julia, but not 
> even sure with that…
>
>
>
>
>
>
> On Apr 27, 2016, at 1:37 AM, Tony Kelman  
> wrote:
>
> Git LFS is https://git-lfs.github.com/ - you didn't enable anything? What 
> kind of github account do you have? I wonder if you may have installed some 
> git extension, or if homebrew-cask's version of Julia is using its own 
> customized git rather than the bundled one?
>
>
> On Tuesday, April 26, 2016 at 8:13:47 PM UTC-7, Chang Kwon wrote:
>>
>> "VariationalInequality.jl" is a new name. 
>>
>> When I did Pkg.publish(), I obtained this error:
>>
>> This repository is configured for Git LFS but 'git-lfs' was not found on 
>> your path. If you no longer wish to use Git LFS, remove this hook by 
>> deleting .git/hooks/pre-push.
>>
>>
>> error: failed to push some refs to '
>> https://github.com/chkwon/VariationalInequality.jl.git'
>>
>> ERROR: failed process: Process(`git 
>> --work-tree=/Users/chkwon/.julia/v0.4/VariationalInequality 
>> --git-dir=/Users/chkwon/.julia/v0.4/VariationalInequality/.git push -q 
>> origin refs/tags/v0.0.1:refs/tags/v0.0.1`, ProcessExited(1)) [1]
>>
>>  in pipeline_error at process.jl:555
>>
>>  in run at process.jl:531
>>
>>  [inlined code] from pkg/entry.jl:389
>>
>>  in anonymous at task.jl:447
>>
>>  in sync_end at 
>> /opt/homebrew-cask/Caskroom/julia/0.4.5/Julia-0.4.5.app/Contents/Resources/julia/lib/julia/sys.dylib
>>
>>  [inlined code] from task.jl:422
>>
>>  in publish at pkg/entry.jl:374
>>
>>  in anonymous at pkg/dir.jl:31
>>
>>  in cd at file.jl:22
>>
>>  in cd at pkg/dir.jl:31
>>
>>  in publish at pkg.jl:61
>>
>> As suggested, after removing .git/hooks/pre-push, I retried 
>> Pkg.publish(), and it went well. I don't know what Git LFS is. 
>>
>>
>>
>>
> --
>
>
>
>

Re: [julia-users] Re: changing the package name

2016-04-27 Thread Stefan Karpinski
You can try moving the .git/hooks directory aside to disable all git hooks,
including the LFS ones.

On Wed, Apr 27, 2016 at 9:39 AM, Changhyun Kwon  wrote:

> That’s pretty interesting. I’m actually surprised to find out what LFS is…
> No, I didn’t enable anything… I believe…
>
> My github account is “Micro”, individual. I have once installed `hub` from
> github, but nothing else. I want to blame homebrew-cask’s Julia, but not
> even sure with that…
>
>
>
>
>
>
> On Apr 27, 2016, at 1:37 AM, Tony Kelman  wrote:
>
> Git LFS is https://git-lfs.github.com/ - you didn't enable anything? What
> kind of github account do you have? I wonder if you may have installed some
> git extension, or if homebrew-cask's version of Julia is using its own
> customized git rather than the bundled one?
>
>
> On Tuesday, April 26, 2016 at 8:13:47 PM UTC-7, Chang Kwon wrote:
>>
>> "VariationalInequality.jl" is a new name.
>>
>> When I did Pkg.publish(), I obtained this error:
>>
>> This repository is configured for Git LFS but 'git-lfs' was not found on
>> your path. If you no longer wish to use Git LFS, remove this hook by
>> deleting .git/hooks/pre-push.
>>
>>
>> error: failed to push some refs to '
>> https://github.com/chkwon/VariationalInequality.jl.git'
>>
>> ERROR: failed process: Process(`git
>> --work-tree=/Users/chkwon/.julia/v0.4/VariationalInequality
>> --git-dir=/Users/chkwon/.julia/v0.4/VariationalInequality/.git push -q
>> origin refs/tags/v0.0.1:refs/tags/v0.0.1`, ProcessExited(1)) [1]
>>
>>  in pipeline_error at process.jl:555
>>
>>  in run at process.jl:531
>>
>>  [inlined code] from pkg/entry.jl:389
>>
>>  in anonymous at task.jl:447
>>
>>  in sync_end at
>> /opt/homebrew-cask/Caskroom/julia/0.4.5/Julia-0.4.5.app/Contents/Resources/julia/lib/julia/sys.dylib
>>
>>  [inlined code] from task.jl:422
>>
>>  in publish at pkg/entry.jl:374
>>
>>  in anonymous at pkg/dir.jl:31
>>
>>  in cd at file.jl:22
>>
>>  in cd at pkg/dir.jl:31
>>
>>  in publish at pkg.jl:61
>>
>> As suggested, after removing .git/hooks/pre-push, I retried
>> Pkg.publish(), and it went well. I don't know what Git LFS is.
>>
>>
>>
>>
> --
>
>
>
>


Re: [julia-users] Re: changing the package name

2016-04-27 Thread Changhyun Kwon
That’s pretty interesting. I’m actually surprised to find out what LFS is… No, 
I didn’t enable anything… I believe…

My github account is “Micro”, individual. I have once installed `hub` from 
github, but nothing else. I want to blame homebrew-cask’s Julia, but not even 
sure with that…






> On Apr 27, 2016, at 1:37 AM, Tony Kelman  wrote:
> 
> Git LFS is https://git-lfs.github.com/ - you didn't enable anything? What 
> kind of github account do you have? I wonder if you may have installed some 
> git extension, or if homebrew-cask's version of Julia is using its own 
> customized git rather than the bundled one?
> 
> 
> On Tuesday, April 26, 2016 at 8:13:47 PM UTC-7, Chang Kwon wrote:
> "VariationalInequality.jl" is a new name. 
> 
> When I did Pkg.publish(), I obtained this error:
> 
> This repository is configured for Git LFS but 'git-lfs' was not found on your 
> path. If you no longer wish to use Git LFS, remove this hook by deleting 
> .git/hooks/pre-push.
> 
> 
> 
> error: failed to push some refs to 
> 'https://github.com/chkwon/VariationalInequality.jl.git 
> '
> 
> ERROR: failed process: Process(`git 
> --work-tree=/Users/chkwon/.julia/v0.4/VariationalInequality 
> --git-dir=/Users/chkwon/.julia/v0.4/VariationalInequality/.git push -q origin 
> refs/tags/v0.0.1:refs/tags/v0.0.1`, ProcessExited(1)) [1]
> 
>  in pipeline_error at process.jl:555
> 
>  in run at process.jl:531
> 
>  [inlined code] from pkg/entry.jl:389
> 
>  in anonymous at task.jl:447
> 
>  in sync_end at 
> /opt/homebrew-cask/Caskroom/julia/0.4.5/Julia-0.4.5.app/Contents/Resources/julia/lib/julia/sys.dylib
> 
>  [inlined code] from task.jl:422
> 
>  in publish at pkg/entry.jl:374
> 
>  in anonymous at pkg/dir.jl:31
> 
>  in cd at file.jl:22
> 
>  in cd at pkg/dir.jl:31
> 
>  in publish at pkg.jl:61
> 
> 
> As suggested, after removing .git/hooks/pre-push, I retried Pkg.publish(), 
> and it went well. I don't know what Git LFS is. 
> 
> 
> 

--





[julia-users] Re: changing the package name

2016-04-26 Thread Tony Kelman
Git LFS is https://git-lfs.github.com/ - you didn't enable anything? What 
kind of github account do you have? I wonder if you may have installed some 
git extension, or if homebrew-cask's version of Julia is using its own 
customized git rather than the bundled one?


On Tuesday, April 26, 2016 at 8:13:47 PM UTC-7, Chang Kwon wrote:
>
> "VariationalInequality.jl" is a new name. 
>
> When I did Pkg.publish(), I obtained this error:
>
> This repository is configured for Git LFS but 'git-lfs' was not found on 
> your path. If you no longer wish to use Git LFS, remove this hook by 
> deleting .git/hooks/pre-push.
>
>
> error: failed to push some refs to '
> https://github.com/chkwon/VariationalInequality.jl.git'
>
> ERROR: failed process: Process(`git 
> --work-tree=/Users/chkwon/.julia/v0.4/VariationalInequality 
> --git-dir=/Users/chkwon/.julia/v0.4/VariationalInequality/.git push -q 
> origin refs/tags/v0.0.1:refs/tags/v0.0.1`, ProcessExited(1)) [1]
>
>  in pipeline_error at process.jl:555
>
>  in run at process.jl:531
>
>  [inlined code] from pkg/entry.jl:389
>
>  in anonymous at task.jl:447
>
>  in sync_end at 
> /opt/homebrew-cask/Caskroom/julia/0.4.5/Julia-0.4.5.app/Contents/Resources/julia/lib/julia/sys.dylib
>
>  [inlined code] from task.jl:422
>
>  in publish at pkg/entry.jl:374
>
>  in anonymous at pkg/dir.jl:31
>
>  in cd at file.jl:22
>
>  in cd at pkg/dir.jl:31
>
>  in publish at pkg.jl:61
>
> As suggested, after removing .git/hooks/pre-push, I retried Pkg.publish(), 
> and it went well. I don't know what Git LFS is. 
>
>
>
>

[julia-users] Re: changing the package name

2016-04-26 Thread Chang Kwon
"VariationalInequality.jl" is a new name. 

When I did Pkg.publish(), I obtained this error:

This repository is configured for Git LFS but 'git-lfs' was not found on 
your path. If you no longer wish to use Git LFS, remove this hook by 
deleting .git/hooks/pre-push.


error: failed to push some refs to 
'https://github.com/chkwon/VariationalInequality.jl.git'

ERROR: failed process: Process(`git 
--work-tree=/Users/chkwon/.julia/v0.4/VariationalInequality 
--git-dir=/Users/chkwon/.julia/v0.4/VariationalInequality/.git push -q 
origin refs/tags/v0.0.1:refs/tags/v0.0.1`, ProcessExited(1)) [1]

 in pipeline_error at process.jl:555

 in run at process.jl:531

 [inlined code] from pkg/entry.jl:389

 in anonymous at task.jl:447

 in sync_end at 
/opt/homebrew-cask/Caskroom/julia/0.4.5/Julia-0.4.5.app/Contents/Resources/julia/lib/julia/sys.dylib

 [inlined code] from task.jl:422

 in publish at pkg/entry.jl:374

 in anonymous at pkg/dir.jl:31

 in cd at file.jl:22

 in cd at pkg/dir.jl:31

 in publish at pkg.jl:61

As suggested, after removing .git/hooks/pre-push, I retried Pkg.publish(), 
and it went well. I don't know what Git LFS is. 





[julia-users] Re: changing the package name

2016-04-26 Thread Bart Janssens
You could first uninstall the package, then rename on Github and then clone 
from the new address.

Cheers,

Bart

On Tuesday, April 26, 2016 at 6:17:10 PM UTC+2, Chang Kwon wrote:
>
> I was wondering what is the proper way to change the package name under 
> development. This is often the case when I submit a package and then was 
> recommended to revise the package name. Well, without much knowledge of 
> git, I always mess up...
>
> When I'm ready to develop a package, I generate a package:
> Pkg.generate("TestPkg", "MIT")
>
> and keep developing. When I'm ready to publish it, I do:
>
> Pkg.register("TestPkg")
> Pkg.tag("TestPkg")
> Pkg.publish()
>
> Then, I make a pull request on GitHub.
>
> Suppose then I need to change the package name to "NewPackageName". What 
> do I do now? 
> Things to do might be:
>
> - change name of the GitHub.com repository
> - change the folder name from .julia/v0.4/TestPkg to 
> .julia/v0.4/NewPackageName
> - changing the remote repository address to 
> https://github.com/chkwon/NewPackageName.jl.git
>
> Then I usually have some complaints and errors from Pkg.update() and 
> Pkg.publish() saying that TestPkg does not exist, etc. At this moment, I'm 
> messed up with .julia/v0.4 folder and all other repositories. What is the 
> proper order of making changes? 
>
>