Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 21366ff

Browse files
authored
rename project part 2 (#297)
* rename project part 2 * PR297. code conflicts resolved
1 parent a480e59 commit 21366ff

162 files changed

Lines changed: 2295 additions & 2295 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coveragerc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# configuration file used by run_coverage.py
22
[run]
33
branch = True
4-
source = hpat
4+
source = sdc
55
concurrency = multiprocessing
66
parallel = True
77

88
[report]
99

1010
omit =
11-
hpat/ml/*
12-
hpat/xenon_ext.py
13-
hpat/ros.py
14-
hpat/cv_ext.py
15-
hpat/tests/*
11+
sdc/ml/*
12+
sdc/xenon_ext.py
13+
sdc/ros.py
14+
sdc/cv_ext.py
15+
sdc/tests/*

buildscripts/build.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
def run_smoke_tests(sdc_src, test_env_activate):
1919
sdc_pi_example = os.path.join(sdc_src, 'buildscripts', 'sdc_pi_example.py')
20-
run_command(f'{test_env_activate} && python -c "import hpat"')
20+
run_command(f'{test_env_activate} && python -c "import sdc"')
2121
run_command(f'{test_env_activate} && python {sdc_pi_example}')
2222

2323

@@ -104,13 +104,13 @@ def run_smoke_tests(sdc_src, test_env_activate):
104104
os.chdir(../sdc_src) is a workaround for the following error:
105105
Traceback (most recent call last):
106106
File "<string>", line 1, in <module>
107-
File "hpat/hpat/__init__.py", line 9, in <module>
108-
import hpat.dict_ext
109-
File "hpat/hpat/dict_ext.py", line 12, in <module>
110-
from hpat.str_ext import string_type, gen_unicode_to_std_str, gen_std_str_to_unicode
111-
File "hpat/hpat/str_ext.py", line 18, in <module>
107+
File "sdc/sdc/__init__.py", line 9, in <module>
108+
import sdc.dict_ext
109+
File "sdc/sdc/dict_ext.py", line 12, in <module>
110+
from sdc.str_ext import string_type, gen_unicode_to_std_str, gen_std_str_to_unicode
111+
File "sdc/sdc/str_ext.py", line 18, in <module>
112112
from . import hstr_ext
113-
ImportError: cannot import name 'hstr_ext' from 'hpat' (hpat/hpat/__init__.py)
113+
ImportError: cannot import name 'hstr_ext' from 'sdc' (sdc/sdc/__init__.py)
114114
"""
115115
os.chdir(os.path.dirname(sdc_src))
116116

buildscripts/sdc-conda-recipe/meta.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% set ARROW_CPP_VERSION = "==0.15.0" %}
55

66
package:
7-
name: hpat
7+
name: sdc
88
version: {{ GIT_DESCRIBE_TAG }}
99

1010
source:
@@ -58,13 +58,13 @@ test:
5858
- h5py
5959
- scipy
6060
imports:
61-
- hpat
61+
- sdc
6262

6363
outputs:
6464
- type: conda
65-
name: hpat
65+
name: sdc
6666
- type: wheel
67-
name: hpat
67+
name: sdc
6868
requirements:
6969
build:
7070
- {{ compiler('c') }}

buildscripts/sdc-conda-recipe/run_test.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ set NUMBA_DEVELOPER_MODE=1
44
set NUMBA_DISABLE_ERROR_MESSAGE_HIGHLIGHTING=1
55
set PYTHONFAULTHANDLER=1
66

7-
python -m hpat.tests.gen_test_data
7+
python -m sdc.tests.gen_test_data
88
if errorlevel 1 exit 1
99

1010
@rem TODO investigate root cause of NumbaPerformanceWarning
1111
@rem http://numba.pydata.org/numba-doc/latest/user/parallel.html#diagnostics
1212
IF "%SDC_NP_MPI%" == "" (
13-
python -W ignore -u -m hpat.runtests -v
13+
python -W ignore -u -m sdc.runtests -v
1414
) ELSE (
15-
mpiexec -localonly -n %SDC_NP_MPI% python -W ignore -u -m hpat.runtests -v)
15+
mpiexec -localonly -n %SDC_NP_MPI% python -W ignore -u -m sdc.runtests -v)
1616
if errorlevel 1 exit 1
1717

1818
REM Link check for Documentation using Sphinx's in-built linkchecker

buildscripts/sdc-conda-recipe/run_test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ export NUMBA_DEVELOPER_MODE=1
66
export NUMBA_DISABLE_ERROR_MESSAGE_HIGHLIGHTING=1
77
export PYTHONFAULTHANDLER=1
88

9-
python -m hpat.tests.gen_test_data
9+
python -m sdc.tests.gen_test_data
1010

1111
#Link check for Documentation using Sphinx's in-built linkchecker
1212
#sphinx-build -b linkcheck -j1 usersource _build/html
1313

1414
# TODO investigate root cause of NumbaPerformanceWarning
1515
# http://numba.pydata.org/numba-doc/latest/user/parallel.html#diagnostics
1616
if [ -z "$SDC_NP_MPI" ]; then
17-
python -W ignore -u -m hpat.runtests -v
17+
python -W ignore -u -m sdc.runtests -v
1818
else
19-
mpiexec -n $SDC_NP_MPI python -W ignore -u -m hpat.runtests -v
19+
mpiexec -n $SDC_NP_MPI python -W ignore -u -m sdc.runtests -v
2020
fi

buildscripts/sdc_pi_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import hpat
1+
import sdc
22
import numpy as np
33
import time
44

55

6-
@hpat.jit
6+
@sdc.jit
77
def calc_pi(n):
88
t1 = time.time()
99
x = 2 * np.random.ranf(n) - 1

buildscripts/test.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
os.environ['PYTHONPATH'] = '.'
7474
os.environ['HDF5_DIR'] = conda_prefix
7575
try:
76-
run_command(f'{develop_env_activate} && python -m hpat.tests.gen_test_data && coverage erase && coverage run -m hpat.runtests && coveralls -v')
76+
run_command(f'{develop_env_activate} && python -m sdc.tests.gen_test_data && coverage erase && coverage run -m sdc.runtests && coveralls -v')
7777
except:
7878
format_print('Coverage fails')
7979
print(traceback.format_exc())
@@ -85,13 +85,13 @@
8585
os.chdir(../sdc_src) is a workaround for the following error:
8686
Traceback (most recent call last):
8787
File "<string>", line 1, in <module>
88-
File "hpat/hpat/__init__.py", line 9, in <module>
89-
import hpat.dict_ext
90-
File "hpat/hpat/dict_ext.py", line 12, in <module>
91-
from hpat.str_ext import string_type, gen_unicode_to_std_str, gen_std_str_to_unicode
92-
File "hpat/hpat/str_ext.py", line 18, in <module>
88+
File "sdc/sdc/__init__.py", line 9, in <module>
89+
import sdc.dict_ext
90+
File "sdc/sdc/dict_ext.py", line 12, in <module>
91+
from sdc.str_ext import string_type, gen_unicode_to_std_str, gen_std_str_to_unicode
92+
File "sdc/sdc/str_ext.py", line 18, in <module>
9393
from . import hstr_ext
94-
ImportError: cannot import name 'hstr_ext' from 'hpat' (hpat/hpat/__init__.py)
94+
ImportError: cannot import name 'hstr_ext' from 'sdc' (sdc/sdc/__init__.py)
9595
"""
9696
os.chdir(os.path.dirname(sdc_src))
9797
run_command(f'{develop_env_activate} && {test_script}')
@@ -119,13 +119,13 @@
119119
os.chdir(../sdc_src) is a workaround for the following error:
120120
Traceback (most recent call last):
121121
File "<string>", line 1, in <module>
122-
File "hpat/hpat/__init__.py", line 9, in <module>
123-
import hpat.dict_ext
124-
File "hpat/hpat/dict_ext.py", line 12, in <module>
125-
from hpat.str_ext import string_type, gen_unicode_to_std_str, gen_std_str_to_unicode
126-
File "hpat/hpat/str_ext.py", line 18, in <module>
122+
File "sdc/sdc/__init__.py", line 9, in <module>
123+
import sdc.dict_ext
124+
File "sdc/sdc/dict_ext.py", line 12, in <module>
125+
from sdc.str_ext import string_type, gen_unicode_to_std_str, gen_std_str_to_unicode
126+
File "sdc/sdc/str_ext.py", line 18, in <module>
127127
from . import hstr_ext
128-
ImportError: cannot import name 'hstr_ext' from 'hpat' (hpat/hpat/__init__.py)
128+
ImportError: cannot import name 'hstr_ext' from 'sdc' (sdc/sdc/__init__.py)
129129
"""
130130
os.chdir(os.path.dirname(sdc_src))
131131
sdc_packages = get_sdc_build_packages(build_folder)

buildscripts/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_sdc_build_packages(build_output):
7676
sdc_build_dir = os.path.join(build_output, os_dir)
7777
for item in os.listdir(sdc_build_dir):
7878
item_path = os.path.join(sdc_build_dir, item)
79-
if os.path.isfile(item_path) and re.search(r'^hpat.*\.tar\.bz2$|^hpat.*\.whl$', item):
79+
if os.path.isfile(item_path) and re.search(r'^sdc.*\.tar\.bz2$|^sdc.*\.whl$', item):
8080
sdc_packages.append(item_path)
8181

8282
return sdc_packages

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151

5252
if not sdc_doc_no_api_ref:
5353
try:
54-
import hpat # TODO: Rename hpat module name to sdc
54+
import sdc # TODO: Rename hpat module name to sdc
5555
except ImportError:
56-
print('IMPORT EXCEPTION: Cannot import hpat. ')
56+
print('IMPORT EXCEPTION: Cannot import sdc. ')
5757
print('Documentation generator for API Reference for a given module expects that module '
5858
'to be installed. Use conda/pip install hpat to install it prior to using API Reference generation')
5959
print('If you want to disable API Reference generation, set the environment variable SDC_DOC_NO_API_REF=1')
@@ -214,7 +214,7 @@
214214
# One entry per manual page. List of tuples
215215
# (source start file, name, description, authors, manual section).
216216
man_pages = [
217-
(master_doc, 'hpat', 'HPAT Documentation',
217+
(master_doc, 'sdc', 'HPAT Documentation',
218218
[author], 1)
219219
]
220220

docs/source/sdc2pd_name.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
import os
2828
import glob
29-
import hpat # TODO: Rename hpat module name to sdc
29+
import sdc # TODO: Rename hpat module name to sdc
3030

3131
# *****************************************************************************************************
3232
# *** PARSER CONFIGURATION ***
@@ -139,7 +139,7 @@ def parse_file(fname):
139139

140140

141141
# Get path to SDC module installed
142-
sdc_path = os.path.dirname(hpat.__file__) # TODO: Change hpat to sdc
142+
sdc_path = os.path.dirname(sdc.__file__) # TODO: Change hpat to sdc
143143
sdc_datatypes_path = os.path.join(sdc_path, "datatypes")
144144
sdc_datatypes_pathname_mask = os.path.join(sdc_datatypes_path, "*.py")
145145

0 commit comments

Comments
 (0)