Skip to content

Commit 2c54d01

Browse files
committed
Move the source into the src directory
It would be better for us to be able to be certain that we're testing exactly what the user installed, not what's locally on disk. See also https://hynek.me/articles/testing-packaging/
1 parent 7c29403 commit 2c54d01

53 files changed

Lines changed: 5 additions & 4 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
])
4343

4444
__version__ = ''
45-
with open('github3/__about__.py', 'r') as fd:
45+
with open('src/github3/__about__.py', 'r') as fd:
4646
reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
4747
for line in fd:
4848
m = reg.match(line)
@@ -80,6 +80,7 @@ def run_tests(self): # noqa: D102
8080
author_email="graffatcolmingov@gmail.com",
8181
url="https://github3.readthedocs.io",
8282
packages=packages,
83+
package_dir={"": "src"},
8384
install_requires=requires,
8485
classifiers=[
8586
'Development Status :: 5 - Production/Stable',
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)