Hi,

when I have one particular feature to discuss, should I discuss it
here, or open a new trac ticket for that?

I am going to discuss it here for now:

summary: infer the name of the spkg package from config file (instead
of the name of the dir)

Currently, when creating a package using

./sage -pkg some_dir

will create a package

"some_dir"

which is inconvenient, because the some_dir is held in a hg
repository, whose dir doesn't change. Also, all information about
creating the package should be included in the hg repository. I
suggest creating a file, changelog, that will hold the latest version.
And also it will contain the info from SPKG.txt (this fill will could
be removed then). Why not to do it the same as in Debian? Example of a
Debian changelog:

libmesh (0.6.1.dfsg-1~oc3) UNRELEASED; urgency=low

  [Ondrej Certik]
  * New upstream version
  * Ondrej Certik added to Uploaders.

  TODO before the package can be uploaded to Debian:
  * check lintian/linda
  * check that libmesh-pure works as expected
  * remove the "-j4" flags in make in debian/rules

 -- Ondrej Certik <[EMAIL PROTECTED]>  Sun, 28 Oct 2007 17:45:28 +0100

libmesh (0.6.0~rc2.dfsg-3) unstable; urgency=low

  [Ondrej Certik]
  * Built against libpetsc2.3.3, which is now in Debian (Closes: #435532)

  [ Christophe Prud'homme ]
  * debian/control: modified maintainer and uploader fields

 -- Christophe Prud'homme <[EMAIL PROTECTED]>  Mon, 03 Sep 2007 22:11:32 +0200


The building scripts in Debian parse the first line, and get the
version information from that (in Debian it's a little more
complicated, since there are source and binary packages, the names of
which are read from the debian/control file). In SAGE, most of the
things are not needed, so I suggest this syntax:

sympy (0.5.6-2)

  [Ondrej Certik]
  * get-orig-sources added

sympy (0.5.6-1)

  [Ondrej Certik]
  * New upstream version
  * file .hgignore added

sympy (0.5.5-1)

  * New upstream version

...

and spkg -pkg will parse the first line (and only the first line), and
get the name of the package and version from that. The "-1", "-2" are
SAGE revisions of the package - when you change something in the
building of the package, but the upstream version doesn't change, so
that it's reflected in the version.

Ondrej

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to