Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
41 lines (37 loc) · 1.17 KB
/
Copy pathsetup.py
File metadata and controls
41 lines (37 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
importsetuptools
try:
# for pip >= 10
frompip._internal.reqimportparse_requirements
exceptImportError:
# for pip <= 9.0.3
frompip.reqimportparse_requirements
defload_requirements(fname):
reqs=parse_requirements(fname, session="test")
ret= []
foririnreqs:
try:
ret.append(str(ir.requirement))
exceptAttributeError:
ret.append(str(ir.req))
returnret
withopen("README.md", "r") asfh:
long_description=fh.read()
setuptools.setup(
name="dweather_client",
include_package_data=True,
install_requires=load_requirements("requirements.txt"),
version="2.1.3",
author="Arbol",
author_email="info@dclimate.net",
description="Python client for interacting with weather data on IPFS.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Arbol-Project/dWeather-Python-Client.git",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)