Skip to content

Commit 7601a3c

Browse files
committed
Move package to src directory
1 parent e5125ff commit 7601a3c

22 files changed

+4
-3
lines changed

setup.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def read_file(fname):
88

99

1010
def get_version():
11-
content = read_file('limejudge/__init__.py')
11+
content = read_file('src/limejudge/__init__.py')
1212
regex = r'^__version__ = [\'"]([^\'"]*)[\'"]$'
1313
match = re.search(regex, content, re.M)
1414
if not match:
@@ -35,9 +35,10 @@ def get_version():
3535
'Programming Language :: Python :: 3.8',
3636
'Topic :: Education',
3737
],
38-
packages=find_packages(exclude=['tests*']),
38+
packages=find_packages('src'),
39+
package_dir={'': 'src'},
3940
ext_modules=[
40-
Extension('limejudge.ptrace', ['limejudge/ptrace.c']),
41+
Extension('limejudge.ptrace', ['src/limejudge/ptrace.c']),
4142
],
4243
install_requires=[
4344
'PyYAML',
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)