Skip to content

Commit 84f5755

Browse files
committedMay 3, 2018
Most runtime files were added via MANIFEST.in
1 parent 020576e commit 84f5755

File tree

7 files changed

+22
-24
lines changed

7 files changed

+22
-24
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ errors.err
77

88
grumpy-tools-src/dist/
99
grumpy-tools-src/*.egg-info
10+
grumpy-runtime-src/dist
11+
grumpy-runtime-src/*.egg-info
1012

1113
# Cache
1214
.pytest_cache/

‎grumpy-runtime-src/AUTHORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../AUTHORS.md

‎grumpy-runtime-src/CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../CONTRIBUTING.md

‎grumpy-runtime-src/LICENSE

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE

‎grumpy-runtime-src/MANIFEST.in

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
global-include *.py
2+
global-include *.go
3+
global-include *.mk
4+
global-include Makefile
5+
6+
global-exclude *.egg-info/*
7+
global-exclude *_test.py
8+
9+
recursive-exclude grumpy-tools-src *.go
10+
prune testing/
11+
prune third_party/stdlib/test/

‎grumpy-runtime-src/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

‎grumpy-runtime-src/setup.py

+5-24
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
"""The setup script."""
1919

20+
import sys
2021
from setuptools import setup, find_packages
2122
from setuptools.command.bdist_egg import bdist_egg as BdistEggCommand
2223
from distutils.command.build import build as BuildCommand
@@ -43,6 +44,10 @@
4344
# TODO: Put package test requirements here
4445
]
4546

47+
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
48+
if needs_pytest:
49+
setup_requirements += ['pytest-runner']
50+
4651
COMMON_OPTIONS = dict(
4752
version='0.1.1',
4853
description="Grumpy Runtime & Transpiler",
@@ -70,23 +75,6 @@
7075
)
7176

7277

73-
GRUMPY_TOOLS_OPTIONS = dict(
74-
name='grumpy-tools',
75-
package_dir={'':'grumpy-tools-src'},
76-
packages=find_packages(
77-
'grumpy-tools-src',
78-
exclude=["*.tests", "*.tests.*", "tests.*", "tests"],
79-
),
80-
include_package_data=False,
81-
entry_points={
82-
'console_scripts': [
83-
'grumpy=grumpy_tools.cli:main',
84-
],
85-
},
86-
)
87-
GRUMPY_TOOLS_OPTIONS.update(COMMON_OPTIONS)
88-
89-
9078
def _run_make(self, *args, **kwargs):
9179
subprocess.check_call(["cd grumpy-runtime-src && make --debug"], shell=True)
9280

@@ -106,9 +94,7 @@ def run(self, *args, **kwargs):
10694
GRUMPY_RUNTIME_OPTIONS = dict(
10795
name='grumpy-runtime',
10896
requires=['grumpy_tools'],
109-
package_dir={'':'grumpy-runtime-src'},
11097
packages=find_packages(
111-
'grumpy-runtime-src',
11298
exclude=["*.tests", "*.tests.*", "tests.*", "tests"],
11399
),
114100
include_package_data=True,
@@ -120,9 +106,4 @@ def run(self, *args, **kwargs):
120106
)
121107
GRUMPY_RUNTIME_OPTIONS.update(COMMON_OPTIONS)
122108

123-
124-
## Just the "tools"
125-
setup(**GRUMPY_TOOLS_OPTIONS)
126-
127-
# ## Just the "runtime"
128109
setup(**GRUMPY_RUNTIME_OPTIONS)

0 commit comments

Comments
 (0)
Please sign in to comment.