Skip to content

Commit f9d90f0

Browse files
author
Marcin Kardas
committed
Move scripts into a package
1 parent f80947d commit f9d90f0

13 files changed

+21
-14
lines changed

Diff for: MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include axcell/scripts/*
2+
include axcell/scripts/patches/*
File renamed without changes.

Diff for: axcell/data/paper_collection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from ..helpers.jupyter import display_table
1212
import string
1313
import random
14-
from extract_tables import extract_tables
14+
from axcell.data.extract_tables import extract_tables
1515

1616

1717
class Paper:

Diff for: axcell/helpers/latex_converter.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ def rw_bind(path): return dict(bind=path, mode='rw')
2121

2222

2323
class LatexConverter:
24-
def __init__(self, base_path):
24+
def __init__(self):
2525
# pull arxivvanity/engrafo image
2626
self.client = docker.from_env()
27-
self.base_path = Path(base_path)
27+
self._scripts_path = Path(__file__).resolve().parent.parent / 'scripts'
2828

2929
def latex2html(self, source_dir, output_dir, use_named_volumes=False):
30-
base = self.base_path
30+
base = self._scripts_path
3131
source_dir = Path(source_dir)
3232
output_dir = Path(output_dir)
3333
scriptname = "/files/latex2html.sh"

Diff for: axcell/mocks/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved

Diff for: axcell/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: environment.yml

+3
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ dependencies:
1717
- ipython=7.5.0
1818
- joblib=0.13.2
1919
- python-magic=0.4.15
20+
- docker-py=4.1.0
21+
- python-magic=0.4.15
22+
- html5lib=1.0.1

Diff for: setup.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# text = read_file.read()
1414
# pattern = re.compile(r"^__version__ = ['\"]([^'\"]*)['\"]", re.MULTILINE)
1515
# version = pattern.search(text).group(1)
16-
version="2.0-alpha"
16+
version="1.0-alpha"
1717

1818
# # Extract long_description
1919
# path = os.path.join(directory, 'README.md')
@@ -23,11 +23,12 @@
2323
setuptools.setup(
2424
name='axcell',
2525
version=version,
26-
url='https://...',
27-
description='System for extracting data from arxiv papers',
28-
long_description_content_type='text/markdown',
29-
long_description=long_description,
30-
license='???',
26+
url='https://github.com/paperswithcode/axcell',
27+
description='System for extracting machine learning results from arxiv papers',
28+
author='Papers with Code',
29+
# long_description_content_type='text/markdown',
30+
# long_description=long_description,
31+
license='Apache License 2.0',
3132
packages=setuptools.find_packages(),
3233
include_package_data=True,
3334

@@ -41,9 +42,8 @@
4142
],
4243

4344
project_urls={ # Optional
44-
'Homepage': 'https://...',
45-
'Source': 'https://...',
46-
'Bug Reports': 'https://...',
47-
'Citation': 'https://...',
45+
'Homepage': 'https://github.com/paperswithcode/axcell',
46+
'Source': 'https://github.com/paperswithcode/axcell',
47+
'Citation': 'https://arxiv.org/abs/2004.14356',
4848
},
4949
)

0 commit comments

Comments
 (0)