Re: [racket-users] Automated method for making racket package installs consistent?

2020-10-11 Thread Robert Postill
Hi Primer,

Have you tried raco pkg migrate?  I have used this before and it's pretty 
painless from my POV.  The docs are 
at https://docs.racket-lang.org/pkg/cmdline.html#%28part._raco-pkg-migrate%29.

Hope that helps.
Robert

On Sunday, 11 October 2020 at 19:35:24 UTC+11 William J. Bowman wrote:

> I'm not sure what you're asking: is your question equivalent to figuring 
> out which packages are explicitly installed?
>
> On Sat, Oct 10, 2020 at 04:04:14PM -0700, primer wrote:
> > 
> > If I have an an install with packages X and Y installed, and a second 
> > install with packages Y and Z installed, is there a way to use raco.exe 
> or 
> > some such to get X, Y, and Z installed on both machines without having 
> to 
> > figure out "by hand" which packages are missing from each install?
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to racket-users...@googlegroups.com.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/da026119-c6c8-470f-b125-c6982b2b558fn%40googlegroups.com
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/5abb4121-50de-444a-970d-48ef7fbb1a21n%40googlegroups.com.


[racket-users] Testing for Packages

2020-05-26 Thread Robert Postill
Hi, 

Inspired by the reply to 
https://stackoverflow.com/questions/62014612/how-to-test-a-racket-package-self-sufficiently,
 I 
decided to ask the question here.  So a little background to the 
discussion.  I've been looking at a racket package, and the package has a 
couple of collections.  It's been dormant for a few years, and so when I 
ran the tests they didn't work (it's a driver, and the database it works 
with had moved on in the intervening time).  So I started thinking about 
the tests.  One thing that troubled me was that the tests seemed to be 
dependant on the package already being installed. Ryan Culpepper's comment 
on the stack overflow question (https://stackoverflow.com/a/62027185/11219) 
suggests that the tests should be run once the package is under raco pkg's 
management. Up until that point, I had been considering a PR rewiring the 
require statements to be significantly more relative.

In the generally excellent docs for racket, I haven't found advice relating 
to the right way to structure the tests for a package. Nor an idiomatic 
approach to dealing with package installation during package development. 
Here are my sources for reference:
https://blog.racket-lang.org/2017/10/tutorial-creating-a-package.html
https://beautifulracket.com/jsonic-3/the-package-server.html
https://greghendershott.com/2013/12/racket-package-management.html
http://www.greghendershott.com/2017/04/racket-makefiles.html

Now I think I should explain why I'm thinking that way.  FYI I've been a 
part of the ruby community, and so my thinking has a ruby-ish colour.  
Which makes me think I'm maybe off in my community norms for racket. I've 
always considered the point at which a package gets transferred into the 
domain of raco pkg's management to be a pivotal moment. It has this implied 
social contract that if I'm mixing with code into a system area managed by 
the language, the package needs to be trustworthy. Testing *after* 
installing seems a bit like I'm putting the cart before the horse? It feels 
like saying here's my code, put it in a system-wide place, I hope it works.

So I'm interested in opinions and advice as to how to think correctly about 
testing packages and also how other people approach creating a well-behaved 
package.

Regards
Robert

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/3c76b368-705e-43c4-a83d-843da3f596ec%40googlegroups.com.