cppformat -> fmt

This commit is contained in:
Victor Zverovich 2016-04-28 07:00:22 -07:00
parent 59d0efd6d6
commit c33f3e281b
4 changed files with 11 additions and 11 deletions

View File

@ -46,7 +46,7 @@ def build_docs(version='dev'):
except DistributionNotFound: except DistributionNotFound:
pass pass
# Install Sphinx and Breathe. # Install Sphinx and Breathe.
pip_install('cppformat/sphinx', pip_install('fmtlib/sphinx',
'12dde8afdb0a7bb5576e2656692c3478c69d8cc3', '12dde8afdb0a7bb5576e2656692c3478c69d8cc3',
check_version='1.4a0.dev-20151013') check_version='1.4a0.dev-20151013')
pip_install('michaeljones/breathe', pip_install('michaeljones/breathe',
@ -55,7 +55,7 @@ def build_docs(version='dev'):
cmd = ['doxygen', '-'] cmd = ['doxygen', '-']
p = Popen(cmd, stdin=PIPE) p = Popen(cmd, stdin=PIPE)
p.communicate(input=r''' p.communicate(input=r'''
PROJECT_NAME = C++ Format PROJECT_NAME = fmt
GENERATE_LATEX = NO GENERATE_LATEX = NO
GENERATE_MAN = NO GENERATE_MAN = NO
GENERATE_RTF = NO GENERATE_RTF = NO

View File

@ -46,7 +46,7 @@ source_suffix = '.rst'
#master_doc = 'contents' #master_doc = 'contents'
# General information about the project. # General information about the project.
project = u'C++ Format' project = u'fmt'
copyright = u'2012-2015, Victor Zverovich' copyright = u'2012-2015, Victor Zverovich'
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
@ -198,7 +198,7 @@ latex_elements = {
# Grouping the document tree into LaTeX files. List of tuples # Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]). # (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [ latex_documents = [
('index', 'format.tex', u'C++ Format Documentation', ('index', 'format.tex', u'fmt documentation',
u'Victor Zverovich', 'manual'), u'Victor Zverovich', 'manual'),
] ]

View File

@ -170,7 +170,7 @@ typedef __int64 intmax_t;
# endif # endif
#endif #endif
// Define FMT_USE_NOEXCEPT to make C++ Format use noexcept (C++11 feature). // Define FMT_USE_NOEXCEPT to make fmt use noexcept (C++11 feature).
#ifndef FMT_USE_NOEXCEPT #ifndef FMT_USE_NOEXCEPT
# define FMT_USE_NOEXCEPT 0 # define FMT_USE_NOEXCEPT 0
#endif #endif

View File

@ -138,7 +138,7 @@ if __name__ == '__main__':
run = Runner() run = Runner()
fmt_dir = os.path.join(workdir, 'fmt') fmt_dir = os.path.join(workdir, 'fmt')
branch = args.get('<branch>', 'master') branch = args.get('<branch>', 'master')
run('git', 'clone', '-b', branch, 'git@github.com:cppformat/cppformat.git', fmt_dir) run('git', 'clone', '-b', branch, 'git@github.com:fmtlib/fmt.git', fmt_dir)
# Convert changelog from RST to GitHub-flavored Markdown and get the version. # Convert changelog from RST to GitHub-flavored Markdown and get the version.
changelog = 'ChangeLog.rst' changelog = 'ChangeLog.rst'
@ -170,8 +170,8 @@ if __name__ == '__main__':
# Build the docs and package. # Build the docs and package.
run('cmake', '.') run('cmake', '.')
run('make', 'doc', 'package_source') run('make', 'doc', 'package_source')
site_dir = os.path.join(workdir, 'cppformat.github.io') site_dir = os.path.join(workdir, 'fmtlib.github.io')
run('git', 'clone', 'git@github.com:cppformat/cppformat.github.io.git', site_dir) run('git', 'clone', 'git@github.com:fmtlib/fmtlib.github.io.git', site_dir)
doc_dir = os.path.join(site_dir, version) doc_dir = os.path.join(site_dir, version)
shutil.copytree(os.path.join(fmt_dir, 'doc', 'html'), doc_dir, shutil.copytree(os.path.join(fmt_dir, 'doc', 'html'), doc_dir,
ignore=shutil.ignore_patterns('.doctrees', '.buildinfo')) ignore=shutil.ignore_patterns('.doctrees', '.buildinfo'))
@ -181,8 +181,8 @@ if __name__ == '__main__':
# Create a release on GitHub. # Create a release on GitHub.
run('git', 'push', 'origin', 'release', cwd=fmt_dir) run('git', 'push', 'origin', 'release', cwd=fmt_dir)
r = requests.post('https://api.github.com/repos/cppformat/cppformat/releases', r = requests.post('https://api.github.com/repos/fmtlib/fmt/releases',
params={'access_token': os.getenv('CPPFORMAT_TOKEN')}, params={'access_token': os.getenv('FMT_TOKEN')},
data=json.dumps({'tag_name': version, 'target_commitish': 'release', data=json.dumps({'tag_name': version, 'target_commitish': 'release',
'body': changes, 'draft': True})) 'body': changes, 'draft': True}))
if r.status_code != 201: if r.status_code != 201: