First time here? Check out the FAQ!

Ask Your Question
2

Should I / how should I make an optional sage package?

asked 7 years ago

paragon gravatar image

I've written some code in sage that implements the strata algebra of the moduli spaces of curves as a sage ring. I hope it will be useful to others. I think that a good way to share it would be to make it an optional, (or perhaps experimental?) sage package.

Is this a good thing to do?

If so, what are the steps?

My code is all in .sage files, but I could easily turn it into .py files if that is better.

Preview: (hide)

Comments

This is a timely question as more and more people are starting to think of whether to have an optional package versus a pip installable versus just code lying around - it really depends upon use case; all three would have to have some maintenance involved.

kcrisman gravatar imagekcrisman ( 7 years ago )

3 Answers

Sort by » oldest newest most voted
3

answered 7 years ago

eric_g gravatar image

Thanks for your willingness to share your code. Maybe a good place to start is to read Sage developer's guide, especially its section Packaging Third-Party Code. You may also have a look at this discussion about various options for sharing Sage codes.

Preview: (hide)
link
2

answered 7 years ago

FrédéricC gravatar image

Another way is to make a pip module, for example

https://pypi.python.org/pypi/surface_...

or

https://pypi.python.org/pypi/multipol...

I do not know if there is documentation somwhere on how to do that.

Preview: (hide)
link

Comments

Hmmm... sounds a bit hyperspecialized for use in Python without sage (or at least without the sage library...).

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 7 years ago )
2

answered 7 years ago

mforets gravatar image

a recent talk by Marc Masdeu about distributing Sage/Python code is worth mentioning: Sage Days 87, p-adics, Burlington, Vermont, July 2017

Preview: (hide)
link

Comments

This looks like it might be a good way to go if I can figure it out.

paragon gravatar imageparagon ( 7 years ago )

don't hesitate to report problems / feedback ! the sage_sample template that i've used successfully (docs, linked with Travis CI, etc) is mkoeppe's fork. see also this recent repository: sage_package_template.

mforets gravatar imagemforets ( 7 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 7 years ago

Seen: 441 times

Last updated: Aug 23 '17