diff options
author | wbond <will@wbond.net> | 2020-05-21 11:05:40 -0400 |
---|---|---|
committer | wbond <will@wbond.net> | 2020-05-21 11:06:44 -0400 |
commit | 116f2e5eb6d4c989418f57b0b3748ce0edfc1554 (patch) | |
tree | a3177a85a6f95ced68a687c1ba24ce58f20ee3db | |
parent | 704a392c63a2abdf8272fd898e2835e211454945 (diff) | |
download | asn1crypto-116f2e5eb6d4c989418f57b0b3748ce0edfc1554.tar.gz |
Fix an issue with asn1crypto_tests when running egg_info from sdist
-rw-r--r-- | tests/setup.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/setup.py b/tests/setup.py index fc20401..ed1a894 100644 --- a/tests/setup.py +++ b/tests/setup.py @@ -13,7 +13,6 @@ PACKAGE_NAME = 'asn1crypto' PACKAGE_VERSION = '1.3.0' TEST_PACKAGE_NAME = '%s_tests' % PACKAGE_NAME TESTS_ROOT = os.path.dirname(os.path.abspath(__file__)) -PACKAGE_ROOT = os.path.abspath(os.path.join(TESTS_ROOT, '..')) # setuptools 38.6.0 and newer know about long_description_content_type, but @@ -60,7 +59,7 @@ class EggInfoCommand(egg_info): if not os.path.exists(egg_info_path): os.mkdir(egg_info_path) shutil.copy2( - os.path.join(PACKAGE_ROOT, 'LICENSE'), + os.path.join(TESTS_ROOT, 'LICENSE'), os.path.join(egg_info_path, 'LICENSE') ) egg_info.run(self) |