Skip to content

Commit cc1ac29

Browse files
Prepare for PyPI.
1 parent 1c6655d commit cc1ac29

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
cd dweather_client
44
virtualenv .
5-
bin/pip3 install -r requirements.txt
5+
bin/pip3 install -r ../requirements.txt
66
bin/python3 -m pytest tests
77

88
See `tests` directory for example usage.

setup.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import setuptools
2+
3+
try:
4+
# for pip >= 10
5+
from pip._internal.req import parse_requirements
6+
except ImportError:
7+
# for pip <= 9.0.3
8+
from pip.req import parse_requirements
9+
10+
def load_requirements(fname):
11+
reqs = parse_requirements(fname, session="test")
12+
return [str(ir.requirement) for ir in reqs]
13+
14+
with open("README.md", "r") as fh:
15+
long_description = fh.read()
16+
17+
setuptools.setup(
18+
name="dweather_client-arbol",
19+
install_requires=load_requirements("requirements.txt"),
20+
version="1.0",
21+
author="Ben Andre",
22+
author_email="[email protected]",
23+
description="Python client for interacting with weather data on IPFS.",
24+
long_description=long_description,
25+
long_description_content_type="text/markdown",
26+
url="https://github.com/Arbol-Project/dWeather-Python-Client.git",
27+
packages=['dweather_client'],
28+
classifiers=[
29+
"Programming Language :: Python :: 3",
30+
"License :: OSI Approved :: MIT License",
31+
"Operating System :: OS Independent",
32+
],
33+
python_requires='>=3.6',
34+
)

0 commit comments

Comments
 (0)