Skip to content

Commit c888bc5

Browse files
authored
Merge pull request #45 from clowder-framework/pip-tools
use piptools to manage requirements
2 parents 403eee4 + 6835a78 commit c888bc5

File tree

3 files changed

+75
-36
lines changed

3 files changed

+75
-36
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
### Changed
1313
- update wordcount extractor to not use docker image
14+
- using piptools for requirements
1415

1516
## 2.4.1 - 2021-07-21
1617

requirements.txt

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1-
enum34==1.1.10
1+
#
2+
# This file is autogenerated by pip-compile with python 3.9
3+
# To update, run:
4+
#
5+
# pip-compile
6+
#
7+
certifi==2021.10.8
8+
# via requests
9+
charset-normalizer==2.0.10
10+
# via requests
11+
idna==3.3
12+
# via requests
213
pika==1.2.0
3-
PyYAML==5.4.1
14+
# via pyclowder (setup.py)
15+
pyyaml==5.4.1
16+
# via pyclowder (setup.py)
417
requests==2.26.0
18+
# via
19+
# pyclowder (setup.py)
20+
# requests-toolbelt
521
requests-toolbelt==0.9.1
22+
# via pyclowder (setup.py)
23+
urllib3==1.26.8
24+
# via requests

setup.py

Lines changed: 53 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,63 @@
11
from setuptools import setup, find_packages
2+
import pathlib
23

4+
here = pathlib.Path(__file__).parent.resolve()
35

4-
def description():
5-
"""Return description in Restructure Text format."""
6+
# Get the long description from the README file
7+
long_description = (here / 'description.rst').read_text(encoding='utf-8')
68

7-
with open('description.rst') as f:
8-
return f.read()
9+
setup(
10+
name='pyclowder',
11+
version='2.4.1',
12+
description='Python SDK for the Clowder Data Management System',
13+
long_description=long_description,
914

15+
author='Rob Kooper',
16+
author_email='[email protected]',
1017

11-
setup(name='pyclowder',
12-
version='2.4.1',
13-
packages=find_packages(),
14-
description='Python SDK for the Clowder Data Management System',
15-
long_description=description(),
16-
author='Rob Kooper',
17-
author_email='[email protected]',
18+
url='https://clowderframework.org',
1819

19-
url='https://clowderframework.org',
20-
project_urls={
21-
'Source': 'https://github.com/clowder-framework/pyclowder',
22-
},
23-
24-
license='BSD',
25-
classifiers=[
20+
license='BSD',
21+
classifiers=[
2622
'Development Status :: 4 - Beta',
2723
'Intended Audience :: Science/Research',
2824
'License :: OSI Approved :: BSD License',
29-
'Programming Language :: Python :: 2',
30-
'Programming Language :: Python :: 3'
31-
],
32-
keywords=['clowder', 'data management system'],
33-
34-
install_requires=[
35-
'enum34==1.1.10',
36-
'pika==1.2.0',
37-
'PyYAML==5.4.1',
38-
'requests==2.26.0',
39-
'requests-toolbelt==0.9.1',
40-
],
41-
42-
include_package_data=True,
43-
zip_safe=True,
44-
)
25+
# Specify the Python versions you support here. In particular, ensure
26+
# that you indicate you support Python 3. These classifiers are *not*
27+
# checked by 'pip install'. See instead 'python_requires' below.
28+
'Programming Language :: Python :: 3',
29+
'Programming Language :: Python :: 3.6',
30+
'Programming Language :: Python :: 3.7',
31+
'Programming Language :: Python :: 3.8',
32+
'Programming Language :: Python :: 3.9',
33+
"Programming Language :: Python :: 3.10",
34+
],
35+
keywords=['clowder', 'data management system'],
36+
37+
packages=find_packages(),
38+
39+
python_requires='>=3.6, <4',
40+
41+
install_requires=[
42+
'pika',
43+
'PyYAML',
44+
'requests',
45+
'requests-toolbelt',
46+
],
47+
48+
extras_require={ # Optional
49+
'dev': ['check-manifest'],
50+
'test': ['coverage'],
51+
},
52+
53+
entry_points={ # Optional
54+
'console_scripts': [
55+
'sample=sample:main',
56+
],
57+
},
58+
59+
project_urls={ # Optional
60+
'Bug Reports': 'https://github.com/clowder-framework/pyclowder/issues',
61+
'Source': 'https://github.com/clowder-framework/pyclowder',
62+
},
63+
)

0 commit comments

Comments
 (0)