Puts your package up on github and adds ssh keys
bramtayl / onlinepackage.jl Goto Github PK
View Code? Open in Web Editor NEWCreate packages quickly
License: Other
Create packages quickly
License: Other
@JuliaRegistrator register()
After some struggle trying to get this incorporated into PkgTemplates, github actions came along and sorted out all the mess for me. So I think its time to deprecate this package. @StefanKarpinski I promised I wouldn't delete a repo again; what would be the steps to deprecate it?
As I understand it, you create a User
instance somehow, and then call OnlinePackage.put_online
?
I got tokens from the appropriate places.
Then I ran set_up
and here is my result (error). This is on Julia v0.6.2 and v0.0.1 of the package and Windows 7.
julia> set_up("tbeason","9860xxx43563xxx","sdfsdnxxxxxhdt3io43") #fake tokens
INFO: Getting travis token
ERROR: HTTP.ExceptionRequest.StatusError(422, HTTP.Messages.Response:
"""
HTTP/1.1 422 Unprocessable Entity
Connection: keep-alive
Server: nginx
Date: Mon, 19 Feb 2018 20:23:33 GMT
Content-Type: application/json
Content-Length: 46
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Content-Type, Cache-Control, Expires, Etag, Last-Modified, X-Request-ID
Strict-Transport-Security: max-age=31536000
X-Endpoint: Travis::Api::App::Endpoint::Authorization
X-Pattern: /github
X-Oauth-Scopes: public
X-Accepted-Oauth-Scopes: public
Vary: Accept,Accept-Encoding
X-Rack-Cache: invalidate, pass
X-Request-Id: 759b9b2f-c313-4b4a-9fe9-a829952dbf7e
Via: 1.1 vegur
{"error":"Must pass 'github_token' parameter"}""")
Stacktrace:
[1] #request#1(::Array{Any,1}, ::Function, ::Type{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}, ::HTTP.URIs.URI, ::Vararg{Any,N} where N) at C:\Users\tbeason\.julia\v0.6\HTTP\src\ExceptionRequest.jl:24
[2] (::HTTP.#kw##request)(::Array{Any,1}, ::HTTP.#request, ::Type{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}, ::HTTP.URIs.URI, ::HTTP.Messages.Request, ::String) at .\<missing>:0
[3] (::Base.###49#50#52{ExponentialBackOff,HTTP.RetryRequest.##2#3{Bool,HTTP.Messages.Request},HTTP.#request})(::Array{Any,1}, ::Function, ::Type{T} where T, ::Vararg{Any,N} where N) at .\error.jl:139
[4] (::Base.#kw###49#51)(::Array{Any,1}, ::Base.##49#51, ::Type{T} where T, ::Vararg{Any,N} where N) at .\<missing>:0
[5] #request#1(::Int64, ::Bool, ::Array{Any,1}, ::Function, ::Type{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}}, ::HTTP.URIs.URI, ::HTTP.Messages.Request, ::String) at C:\Users\tbeason\.julia\v0.6\HTTP\src\RetryRequest.jl:45
[6] (::HTTP.#kw##request)(::Array{Any,1}, ::HTTP.#request, ::Type{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}}, ::HTTP.URIs.URI, ::HTTP.Messages.Request, ::String) at .\<missing>:0
[7] #request#1(::VersionNumber, ::String, ::Void, ::Void, ::Array{Any,1}, ::Function, ::Type{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at C:\Users\tbeason\.julia\v0.6\HTTP\src\MessageRequest.jl:46
[8] (::HTTP.#kw##request)(::Array{Any,1}, ::HTTP.#request, ::Type{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at .\<missing>:0
[9] #request#1(::Int64, ::Bool, ::Array{Any,1}, ::Function, ::Type{HTTP.RedirectRequest.RedirectLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at C:\Users\tbeason\.julia\v0.6\HTTP\src\RedirectRequest.jl:26
[10] (::HTTP.#kw##request)(::Array{Any,1}, ::HTTP.#request, ::Type{HTTP.RedirectRequest.RedirectLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at .\<missing>:0
[11] #request#8(::Array{Any,1}, ::Function, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at C:\Users\tbeason\.julia\v0.6\HTTP\src\HTTP.jl:291
[12] (::HTTP.#kw##request)(::Array{Any,1}, ::HTTP.#request, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at .\<missing>:0
[13] #request#18(::Dict{String,String}, ::String, ::Bool, ::Bool, ::Bool, ::Array{Any,1}, ::Function, ::HTTP.Client, ::String, ::HTTP.URIs.URI) at C:\Users\tbeason\.julia\v0.6\HTTP\src\client.jl:134
[14] (::HTTP.#kw##request)(::Array{Any,1}, ::HTTP.#request, ::HTTP.Client, ::String, ::HTTP.URIs.URI) at .\<missing>:0
[15] #post#26(::Array{Any,1}, ::Function, ::String) at C:\Users\tbeason\.julia\v0.6\HTTP\src\client.jl:144
[16] (::HTTP.#kw##post)(::Array{Any,1}, ::HTTP.#post, ::String) at .\<missing>:0
[17] talk_to(::Function, ::OnlinePackage.TravisToken, ::String, ::Dict{String,String}) at C:\Users\tbeason\.julia\v0.6\OnlinePackage\src\talk_to.jl:18
[18] get_travis_token(::String) at C:\Users\tbeason\.julia\v0.6\OnlinePackage\src\travis_token.jl:10
[19] set_up(::String, ::String, ::String) at C:\Users\tbeason\.julia\v0.6\OnlinePackage\src\configure.jl:22
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.