Skip to content

Commit

Permalink
surface more convenient way to specify which version of the proceedin…
Browse files Browse the repository at this point in the history
…gs should be created
  • Loading branch information
mpacer committed Mar 3, 2018
1 parent da58c44 commit ff1b2e7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion publisher/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PAPERDIR = ../output
TEMPLATES = _templates
STATIC = _static
YEARDIR = scipy`date "+%Y"`
ZIPNAME = proceedings_2017_with_dois.zip
ZIPNAME = draft_proceedings.zip
DOIXMLNAME = doi_batch.xml

BUILDTMPL = ./build_template.py
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion publisher/_static/status.sty

This file was deleted.

9 changes: 4 additions & 5 deletions publisher/build_paper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import print_function, unicode_literals

import docutils.core as dc
import os
import os.path
import sys
import re
Expand All @@ -13,7 +14,7 @@
from distutils import dir_util

from writer import writer
from conf import papers_dir, output_dir, status_file
from conf import papers_dir, output_dir, status_file, static_dir

import options

Expand Down Expand Up @@ -46,10 +47,8 @@ def rst2tex(in_path, out_path):
dir_util.copy_tree(in_path, out_path)

base_dir = os.path.dirname(__file__)
# draft.sty , camera_ready.sty, ready.sty

scipy_status = os.path.join(base_dir, '_static/status.sty')
shutil.copy(scipy_status, out_path)
out_file = shutil.copy(status_file, out_path)
os.rename(out_file, os.path.join(out_path, 'status.sty'))
scipy_style = os.path.join(base_dir, '_static/scipy.sty')
shutil.copy(scipy_style, out_path)
preamble = u'''\\usepackage{scipy}'''
Expand Down
23 changes: 13 additions & 10 deletions publisher/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,26 @@
import os
import io

excludes = ['vanderwalt','bibderwalt']
excludes = ['vanderwalt', 'bibderwalt']
# status_file_root possible values: draft, conference, ready
status_file_base = 'draft'
status_file_name = ''.join([status_file_base, '.sty'])

work_dir = os.path.dirname(__file__)
papers_dir = os.path.join(work_dir,'../papers')
output_dir = os.path.join(work_dir,'../output')
template_dir = os.path.join(work_dir,'_templates')
static_dir = os.path.join(work_dir,'_static')
css_file = os.path.join(static_dir,'scipy-proc.css')
toc_list = os.path.join(static_dir,'toc.txt')
build_dir = os.path.join(work_dir,'_build')
papers_dir = os.path.join(work_dir, '../papers')
output_dir = os.path.join(work_dir, '../output')
template_dir = os.path.join(work_dir, '_templates')
static_dir = os.path.join(work_dir, '_static')
css_file = os.path.join(static_dir, 'scipy-proc.css')
toc_list = os.path.join(static_dir, 'toc.txt')
build_dir = os.path.join(work_dir, '_build')
pdf_dir = os.path.join(build_dir, 'pdfs')
html_dir = os.path.join(build_dir, 'html')
bib_dir = os.path.join(html_dir, 'bib')
toc_conf = os.path.join(build_dir, 'toc.json')
proc_conf = os.path.join(work_dir,'../scipy_proc.json')
proc_conf = os.path.join(work_dir, '../scipy_proc.json')
xref_conf = os.path.join(build_dir, 'doi_batch.xml')
status_file = os.path.join(static_dir, 'ready.sty')
status_file = os.path.join(static_dir, status_file_name)

if os.path.isfile(toc_list):
with io.open(toc_list, 'r', encoding='utf-8') as f:
Expand Down

0 comments on commit ff1b2e7

Please sign in to comment.