Skip to content

Commit 1c39a0c

Browse files
committed
Add PyPi description and requirements
Signed-off-by: costimuraru <[email protected]>
1 parent da192dd commit 1c39a0c

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: python
22
install: pip install -r requirements.txt
33
script:
4+
- pip install pytest
45
- pytest
56
- python setup.py sdist bdist_wheel
67

requirements.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
deepmerge==0.0.5
2-
lru_cache==0.2.3
3-
backports.functools_lru_cache==1.5
4-
pathlib2==2.3.4
5-
boto3==1.9.110
1+
deepmerge>=0.0.5
2+
lru_cache>=0.2.3
3+
backports.functools_lru_cache>=1.5
4+
pathlib2>=2.3.4
5+
boto3>=1.9.110
66
pyyaml
7-
pytest

setup.py

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
from setuptools import setup
21
from hierarchical_yaml.__version__ import __version__
2+
import os
3+
import sys
34

5+
try:
6+
from setuptools import setup
7+
except ImportError:
8+
from distutils.core import setup
9+
10+
with open('README.md') as f:
11+
_readme = f.read()
12+
13+
_mydir = os.path.abspath(os.path.dirname(sys.argv[0]))
14+
_requires = [ r for r in open(os.path.sep.join((_mydir,'requirements.txt')), "r").read().split('\n') if len(r)>1 ]
415

516
setup(
617
name='hierarchical-yaml',
718
version=__version__,
819
description='A hierarchical config using yaml in Python',
9-
long_description=__doc__,
20+
long_description=_readme + '\n\n',
1021
long_description_content_type='text/markdown',
1122
url='https://github.com/adobe/hierarchical-yaml',
1223
author='Adobe',
@@ -35,13 +46,7 @@
3546
],
3647
packages=['hierarchical_yaml'],
3748
include_package_data=True,
38-
install_requires=[
39-
'pathlib2',
40-
'deepmerge',
41-
'lru_cache',
42-
'pyyaml',
43-
'backports.functools_lru_cache',
44-
'boto3'],
49+
install_requires=_requires,
4550
entry_points={
4651
'console_scripts': [
4752
'hyaml = hierarchical_yaml.main:run'

0 commit comments

Comments
 (0)