diff options
author | David Lord <davidism@gmail.com> | 2018-10-20 21:35:14 -0700 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2018-10-20 21:35:14 -0700 |
commit | c640a7ef30b72268530920cb5e01978e22e6a4fc (patch) | |
tree | a389ab9391c09d3195f0532ac5b4968b8e43dac9 | |
parent | 7f261419f3b5a8fbbf126d73f34ca73e957f1954 (diff) | |
download | markupsafe-c640a7ef30b72268530920cb5e01978e22e6a4fc.tar.gz |
move to src directory
-rw-r--r-- | MANIFEST.in | 2 | ||||
-rw-r--r-- | setup.cfg | 2 | ||||
-rw-r--r-- | setup.py | 9 | ||||
-rw-r--r-- | src/markupsafe/__init__.py (renamed from markupsafe/__init__.py) | 0 | ||||
-rw-r--r-- | src/markupsafe/_compat.py (renamed from markupsafe/_compat.py) | 0 | ||||
-rw-r--r-- | src/markupsafe/_constants.py (renamed from markupsafe/_constants.py) | 0 | ||||
-rw-r--r-- | src/markupsafe/_native.py (renamed from markupsafe/_native.py) | 0 | ||||
-rw-r--r-- | src/markupsafe/_speedups.c (renamed from markupsafe/_speedups.c) | 0 | ||||
-rw-r--r-- | tox.ini | 2 |
9 files changed, 8 insertions, 7 deletions
diff --git a/MANIFEST.in b/MANIFEST.in index 7e6029d..e4855b7 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,3 @@ include AUTHORS.rst CHANGES.rst LICENSE.rst tox.ini -recursive-include markupsafe *.c +recursive-include src/markupsafe *.c graft tests @@ -17,6 +17,6 @@ source = [coverage:paths] source = - markupsafe + src/markupsafe .tox/*/lib/python*/site-packages/markupsafe .tox/pypy/site-packages/markupsafe @@ -11,20 +11,20 @@ from distutils.errors import ( DistutilsPlatformError ) -from setuptools import Extension, setup +from setuptools import Extension, setup, find_packages from setuptools.command.build_ext import build_ext with io.open('README.rst', 'rt', encoding='utf8') as f: readme = f.read() -with io.open('markupsafe/__init__.py', 'rt', encoding='utf8') as f: +with io.open('src/markupsafe/__init__.py', 'rt', encoding='utf8') as f: version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1) is_jython = 'java' in sys.platform is_pypy = hasattr(sys, 'pypy_version_info') ext_modules = [ - Extension('markupsafe._speedups', ['markupsafe/_speedups.c']), + Extension('markupsafe._speedups', ['src/markupsafe/_speedups.c']), ] @@ -100,7 +100,8 @@ def run_setup(with_binary): 'pallets-sphinx-themes', ], }, - packages=['markupsafe'], + packages=find_packages("src"), + package_dir={"": "src"}, include_package_data=True, zip_safe=False, cmdclass={'build_ext': ve_build_ext}, diff --git a/markupsafe/__init__.py b/src/markupsafe/__init__.py index 0bd6fd2..0bd6fd2 100644 --- a/markupsafe/__init__.py +++ b/src/markupsafe/__init__.py diff --git a/markupsafe/_compat.py b/src/markupsafe/_compat.py index 4d2e2cd..4d2e2cd 100644 --- a/markupsafe/_compat.py +++ b/src/markupsafe/_compat.py diff --git a/markupsafe/_constants.py b/src/markupsafe/_constants.py index ea6ac2f..ea6ac2f 100644 --- a/markupsafe/_constants.py +++ b/src/markupsafe/_constants.py diff --git a/markupsafe/_native.py b/src/markupsafe/_native.py index 801f285..801f285 100644 --- a/markupsafe/_native.py +++ b/src/markupsafe/_native.py diff --git a/markupsafe/_speedups.c b/src/markupsafe/_speedups.c index 22a604d..22a604d 100644 --- a/markupsafe/_speedups.c +++ b/src/markupsafe/_speedups.c @@ -39,6 +39,6 @@ source = [coverage:paths] source = - markupsafe + src/markupsafe .tox/*/lib/python*/site-packages/markupsafe .tox/pypy/site-packages/markupsafe |