Skip to content

Commit 5aace5b

Browse files
committed
[IMP] setup: Better distutils support
* Add more options to setup * Remove hard coded version and package from setup.py * Add pyodbc to install_requires * Add unixodbc-dev to travis cfg * Bump versions in test_requirements
1 parent 368af2f commit 5aace5b

4 files changed

Lines changed: 35 additions & 15 deletions

File tree

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ exclude_lines =
1313

1414
ignore_errors = True
1515

16+
include =
17+
*/carepoint/*
18+
1619
omit =
1720
*/virtualenv/*
1821
*/tests/*

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ addons:
22
apt:
33
packages:
44
- expect-dev # provides unbuffer utility
5+
- unixodbc-dev
56

67
language: python
78

setup.py

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,39 @@
77
from tests import Tests
88

99

10-
PACKAGE_NAME = 'carepoint'
11-
VERSION = '0.1.2'
10+
setup_vals = {
11+
'name': 'carepoint',
12+
'version': '0.1.3',
13+
'author': 'LasLabs Inc.',
14+
'author_email': 'support@laslabs.com',
15+
'description': 'This library will allow you to interact with CarePoint'
16+
'using Python.',
17+
'url': 'https://github.com/laslabs/python-carepoint',
18+
'license': 'MIT',
19+
'classifiers': [
20+
'Development Status :: 4 - Beta',
21+
'Environment :: Console',
22+
'Intended Audience :: Developers',
23+
'Intended Audience :: Healthcare Industry',
24+
'License :: OSI Approved :: MIT License',
25+
'Operating System :: POSIX :: Linux',
26+
'Programming Language :: Python',
27+
'Topic :: Software Development :: Libraries :: Python Modules',
28+
],
29+
}
1230

1331

1432
setup(
15-
name=PACKAGE_NAME,
16-
version=VERSION,
17-
packages=find_packages(exclude=('tests', )),
33+
packages=find_packages(exclude=('tests')),
1834
cmdclass={'test': Tests},
1935
tests_require=[
20-
'pysqlite',
2136
'sqlalchemy',
2237
'xmlrunner',
2338
'mock',
2439
],
2540
install_requires=[
26-
# 'pyodbc',
41+
'pyodbc',
2742
'pysmb',
28-
]
43+
],
44+
**setup_vals
2945
)

test_requirements.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
SQLAlchemy>=1.1.0b3
2-
fake-factory>=0.5.3
3-
funcsigs>=0.4
4-
mixer>=5.4.1
5-
mock>=1.3.0
6-
pbr>=1.8.1
7-
pysqlite>=2.8.1
1+
SQLAlchemy>=1.1.1
2+
pyodbc>=3.0.10
3+
fake-factory>=0.7.2
4+
funcsigs>=1.0.2
5+
mixer>=5.5.7
6+
mock>=2.0.0
87
six>=1.10.0
98
wsgiref>=0.1.2
109
xmlrunner>=1.7.7
1110
pysmb>=1.1.18
1211
enum34>=1.1.6
12+
pysqlite>=2.8.1

0 commit comments

Comments
 (0)