Changeset 686 for trunk


Ignore:
Timestamp:
Jan 2, 2016, 10:57:27 AM (4 years ago)
Author:
cito
Message:

Improve the script for creating the source distribution

Made some small adaptations for Sphinx and added the test package.

This should eventually be done with "setup.py sdist", but we need
to move the docs directory into the module folder to make this possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mktar

    r657 r686  
    2020fi
    2121
     22# Package up as a source tarball in the distribution directory.
     23# Note that this does essentially the same as "python setup.py sdist",
     24# except this also makes the docs and bundles them as source and html.
     25
    2226DISTDIR=/u/pyg/files
    2327TD=PyGreSQL-$VERSION
    2428TF=$DISTDIR/$TD.tgz
    2529
    26 MODFILES="module/pg.py module/pgdb.py module/pgmodule.c module/pgfs.h module/pgtypes.h module/setup.py"
    27 DOCFILES="docs/*.txt docs/*.html docs/*.css"
     30MODFILES="module/pg.py module/pgdb.py module/pgmodule.c
     31          module/pgfs.h module/pgtypes.h module/py3c.h
     32          module/setup.py module/setup.cfg"
     33DOCFILES="docs/Makefile docs/make.bat docs/*.rst
     34          docs/_build/html/*.html docs/_build/html/*.js
     35          docs/_build/html/_static"
     36TESTFILES="module/tests/*.py"
    2837TUTFILES="tutorial/*.py"
    2938
     
    3443rm -rf $TD
    3544mkdir $TD
    36 mkdir $TD/docs
     45mkdir -p $TD/docs/_static
     46mkdir $TD/tests
    3747mkdir $TD/tutorial
    3848cp $MODFILES $TD
    39 cp $DOCFILES $TD/docs
     49cp -r $DOCFILES $TD/docs
     50cp $TESTFILES $TD/tests
    4051cp $TUTFILES $TD/tutorial
    4152tar -cvzf $TF $TD
Note: See TracChangeset for help on using the changeset viewer.