Skip to content

Commit 7136e45

Browse files
author
stonebig
committed
re-structure as a package so Appveyor can test
1 parent 94fab15 commit 7136e45

6 files changed

Lines changed: 7 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.pyc
2+
build
23
docs/build
34
dist
45
MANIFEST

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
import os
44
from setuptools import find_packages, setup, Extension
55

6-
packages = find_packages(exclude=('testsall',))
76

87
def get_version():
9-
with open('sqlite_bro.py') as f:
8+
with open(os.path.join('sqlite_bro','sqlite_bro.py')) as f:
109
for line in f:
1110
if line.strip().startswith('self.__version__'):
1211
return eval(line.split('=')[-1])
@@ -28,15 +27,16 @@ def read(*paths):
2827
author_email='write_pull_requests_to_stonebig@github.com',
2928
url='https://github.com/stonebig/sqlite_bro',
3029
license='MIT license',
31-
py_modules=['sqlite_bro'],
32-
packages=packages,
30+
#py_modules=['sqlite_bro'],
31+
packages=['sqlite_bro', 'sqlite_bro.tests'],
32+
# package_dir={"sqlite_bro": "sqlite_bro"},
3333
# namespace_packages=[],
3434
include_package_data=True,
3535
# zip_safe=False,
3636
# install_requires=[],
3737
entry_points={
3838
'console_scripts': [
39-
'sqlite_bro = sqlite_bro:_main',
39+
'sqlite_bro = sqlite_bro.sqlite_bro:_main',
4040
],
4141
},
4242
classifiers=[
File renamed without changes.

sqlite_bro/tests/__init__.py

Whitespace-only changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
def test_DeBase():
66
"learning the ropes"
7-
assert_equal(1 == 1)
7+
assert_equal(1 , 1)

0 commit comments

Comments
 (0)