Skip to content

Commit 1f56b9a

Browse files
authored
Merge pull request #1 from datamade/master
Some packaging suggestions
2 parents 6d26533 + 8e54161 commit 1f56b9a

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ addons:
1313
postgresql: "9.6"
1414
install:
1515
- pip install --upgrade pip
16-
- pip install -U -r requirements/main.txt -r requirements/tests.txt
17-
- pip install -e .
16+
- pip install -e .[tests]
1817
script: pytest

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README.md

requirements/main.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

requirements/tests.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
55
Run tests in transactions using pytest, Flask, and SQLAlchemy.
66
'''
7-
import os
87
from setuptools import setup
98

10-
with open(os.path.join('requirements', 'main.txt')) as reqfile:
11-
requirements = reqfile.read().splitlines()
9+
10+
def readme():
11+
with open('README.md') as f:
12+
return f.read()
1213

1314
setup(
1415
# Metadata
@@ -18,12 +19,15 @@
1819

1920
url='https://github.com/jeancochrane/pytest-flask-sqlalchemy-transactions',
2021
description='Run tests in transactions using pytest, Flask, and SQLalchemy.',
21-
long_description=__doc__,
22+
long_description=readme(),
2223
license='MIT',
2324

2425
packages=['transactions'],
25-
install_requires=requirements,
26-
26+
install_requires=['pytest>=3.2.1',
27+
'pytest-mock>=1.6.2',
28+
'SQLAlchemy>=1.2.2',
29+
'Flask-SQLAlchemy>=2.3'],
30+
extras_require={'tests': ['pytest-postgresql']},
2731
classifiers=[
2832
'Development Status :: 4 - Beta',
2933
'Environment :: Plugins',

0 commit comments

Comments
 (0)