fbd4cef9a575b5f77ca05d4b7c3ad3adb11141ac,setup.py,,,#,13
Before Change
with open("README.md") as f:
readme = f.read()
with open("LICENSE") as f:
license = f.read()
with open("requirements.txt") as f:
reqs = f.read()
bleu = Extension(
"fairseq.libbleu",
sources=[
"fairseq/clib/libbleu/libbleu.cpp",
"fairseq/clib/libbleu/module.cpp",
],
extra_compile_args=["-std=c++11"],
)
setup(
name="fairseq",
version="0.6.0",
description="Facebook AI Research Sequence-to-Sequence Toolkit",
long_description=readme,
license=license,
install_requires=reqs.strip().split("\n"),
packages=find_packages(),
ext_modules=[bleu],
test_suite="tests",
entry_points={
"console_scripts": [
"fairseq-eval-lm = eval_lm:cli_main",
"fairseq-generate = generate:cli_main",
"fairseq-interactive = interactive:cli_main",
"fairseq-preprocess = preprocess:cli_main",
"fairseq-train = train:cli_main",
"fairseq-score = score:main",
],
},
)
After Change
)
setup(
name="fairseq",
version="0.6.1",
description="Facebook AI Research Sequence-to-Sequence Toolkit",
url="https://github.com/pytorch/fairseq",
classifiers=[
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.6",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
long_description=readme,
install_requires=[
"cffi",
"numpy",
"torch",
"tqdm",
],
packages=find_packages(exclude=["scripts", "tests"]),
ext_modules=[bleu],
test_suite="tests",
entry_points={
"console_scripts": [
"fairseq-eval-lm = fairseq_cli.eval_lm:cli_main",
"fairseq-generate = fairseq_cli.generate:cli_main",
"fairseq-interactive = fairseq_cli.interactive:cli_main",
"fairseq-preprocess = fairseq_cli.preprocess:cli_main",
"fairseq-train = fairseq_cli.train:cli_main",
"fairseq-score = fairseq_cli.score:main",
],
},
)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: pytorch/fairseq
Commit Name: fbd4cef9a575b5f77ca05d4b7c3ad3adb11141ac
Time: 2019-02-08
Author: myleott@fb.com
File Name: setup.py
Class Name:
Method Name:
Project Name: zalandoresearch/flair
Commit Name: 8c5bcfcc934bd3e446f434cf9e4a7fcd5e9f3833
Time: 2018-07-19
Author: alan.akbik@zalando.de
File Name: setup.py
Class Name:
Method Name: