| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5ce3b17 commit 68a97ce
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,7 +24,7 @@ def get_version(): | |||
| 24 | 24 | author_email="gauvain@pocentek.net", | |
| 25 | 25 | license="LGPLv3", | |
| 26 | 26 | url="https://github.com/python-gitlab/python-gitlab", | |
| 27 | - packages=find_packages(exclude=["tests*"]), | ||
| 27 | + packages=find_packages(exclude=["docs*", "tests*"]), | ||
| 28 | 28 | install_requires=["requests>=2.25.0", "requests-toolbelt>=0.9.1"], | |
| 29 | 29 | package_data={ | |
| 30 | 30 | "gitlab": ["py.typed"], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,7 @@ | |||
| 9 | 9 | from gitlab import __title__, __version__ | |
| 10 | 10 | ||
| 11 | 11 | DIST_DIR = Path("dist") | |
| 12 | + DOCS_DIR = "docs" | ||
| 12 | 13 | TEST_DIR = "tests" | |
| 13 | 14 | SDIST_FILE = f"{__title__}-{__version__}.tar.gz" | |
| 14 | 15 | WHEEL_FILE = ( | |
@@ -18,8 +19,8 @@ | |||
| 18 | 19 | ||
| 19 | 20 | @pytest.fixture(scope="function") | |
| 20 | 21 | def build(): | |
| 21 | - sandbox.run_setup("setup.py", ["clean", "--all"]) | ||
| 22 | - return sandbox.run_setup("setup.py", ["sdist", "bdist_wheel"]) | ||
| 22 | + sandbox.run_setup("setup.py", ["--quiet", "clean", "--all"]) | ||
| 23 | + return sandbox.run_setup("setup.py", ["--quiet", "sdist", "bdist_wheel"]) | ||
| 23 | 24 | ||
| 24 | 25 | ||
| 25 | 26 | def test_sdist_includes_tests(build): | |
@@ -28,6 +29,6 @@ def test_sdist_includes_tests(build): | |||
| 28 | 29 | assert test_dir.isdir() | |
| 29 | 30 | ||
| 30 | 31 | ||
| 31 | - def test_wheel_excludes_tests(build): | ||
| 32 | + def test_wheel_excludes_docs_and_tests(build): | ||
| 32 | 33 | wheel = zipfile.ZipFile(DIST_DIR / WHEEL_FILE) | |
| 33 | - assert [not file.startswith(TEST_DIR) for file in wheel.namelist()] | ||
| 34 | + assert not any([file.startswith((DOCS_DIR, TEST_DIR)) for file in wheel.namelist()]) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments