Skip to content

Commit

Permalink
Read requirements for PYPI build
Browse files Browse the repository at this point in the history
  • Loading branch information
vyahello committed Jan 6, 2020
1 parent 59a0700 commit 8f41cee
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .pypirc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[distutils]
index-servers = pypi
[pypi]
repository = https://upload.pypi.org/legacy/
username = vlyahello
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ Other than that, a fresh versioned package will be delivered on PYPI after new t

### Release notes

* 0.4.1
* Read requirements for PYPI build
* 0.4.0
* Introduce PYPI package
* 0.3.0
Expand Down
18 changes: 13 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import IO
from typing import IO, Sequence
from setuptools import setup, find_packages


Expand All @@ -8,9 +8,15 @@ def _description() -> str:
return readme.read()


def _requirements() -> Sequence[str]:
"""Returns requirements sequence."""
with open("requirements.txt", "r") as requirements: # type: IO
return tuple(map(str.strip, requirements.readlines()))


setup(
name="async-weather-api",
version="0.4.0",
version="0.4.1",
author="Volodymyr Yahello",
author_email="vyahello@gmail.com",
description=(
Expand All @@ -19,14 +25,16 @@ def _description() -> str:
),
long_description=_description(),
long_description_content_type="text/markdown",
url="https://github.com/vyahello/christmas-tree",
url="https://github.com/vyahello/async-weather-api",
packages=find_packages(),
classifiers=[
include_package_data=True,
install_requires=_requirements(),
classifiers=(
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
),
python_requires=">=3.6",
)

0 comments on commit 8f41cee

Please sign in to comment.