Skip to content

Commit

Permalink
remove InstallWithCompile
Browse files Browse the repository at this point in the history
  • Loading branch information
cmlsharp committed Jul 15, 2018
1 parent 5a52ed8 commit 9ee88fd
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 23 deletions.
13 changes: 13 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[compile_catalog]
domain = submit50
directory = submit50/locale/

[extract_messages]
keywords = _ gettext ngettext
width = 100
output_file = submit50/locale/submit50.pot

[update_catalog]
input_file = submit50/locale/submit50.pot
domain = submit50
output_dir = submit50/locale/
32 changes: 9 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
from setuptools import setup

import glob
import os
import subprocess

def create_mo_files():
po_pattern = "locale/*/LC_MESSAGES/*.po"
for prefix in glob.glob(po_pattern):
for _,_,files in os.walk(prefix):
for file in files:
po_file = Path(prefix) / po_file
mo_file = po_file.parent / po_file.stem + ".mo"
subprocess.call(["msgfmt", "-o", mo_file, po_file])

create_mo_files()

setup(
author="CS50",
author_email="[email protected]",
Expand All @@ -24,16 +9,17 @@ def create_mo_files():
"Topic :: Education",
"Topic :: Utilities"
],
description="This is submit50, with which you can submit solutions to \
problems for CS50.",
install_requires=["requests", "termcolor", "push50"],
cmdclass=cmdclass,
message_extractors = {
'submit50': [('**.py', 'python', None),],
},
description="This is submit50, CS50's internal library for using GitHub as data storage.",
install_requires=["babel", "push50", "requests", "termcolor"],
keywords=["submit", "submit50"],
name="submit50",
python_requires=">= 3.6",
packages=["submit50"],
entry_points={
"console_scripts": ["submit50=submit50.__main__:main"]
},
url="https://github.com/cs50/submit50",
version="3.0.0",
include_package_data=True,
version="1.0.0",
include_package_data=True
)
69 changes: 69 additions & 0 deletions submit50/locale/submit50.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Translations template for submit50.
# Copyright (C) 2018 ORGANIZATION
# This file is distributed under the same license as the submit50 project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2018.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: submit50 1.0.0\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-07-13 12:31-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.6.0\n"

#: submit50/__main__.py:40
msgid "You have an unknown version of submit50. Email [email protected]!"
msgstr ""

#: submit50/__main__.py:67
msgid "Files that will be submitted:"
msgstr ""

#: submit50/__main__.py:71
msgid "No files in this directory are expected for submission."
msgstr ""

#: submit50/__main__.py:75
msgid "Files that won't be submitted:"
msgstr ""

#: submit50/__main__.py:82
msgid ""
"Keeping in mind the course's policy on academic honesty, are you sure you want to submit these "
"files (yes/no)? "
msgstr ""

#: submit50/__main__.py:99
msgid "Sorry, something's wrong! Let [email protected] know!"
msgstr ""

#: submit50/__main__.py:104
msgid "Submission cancelled."
msgstr ""

#: submit50/__main__.py:110
msgid "logout of submit50"
msgstr ""

#: submit50/__main__.py:117
msgid "failed to logout"
msgstr ""

#: submit50/__main__.py:119
msgid "logged out successfully"
msgstr ""

#: submit50/__main__.py:130
msgid "show commands being executed"
msgstr ""

#: submit50/__main__.py:132
msgid "prescribed identifier of work to submit"
msgstr ""

0 comments on commit 9ee88fd

Please sign in to comment.