Unify setup requirements and requirements.txt
This commit is contained in:
parent
a2c31fedd5
commit
fa496f2c90
42
setup.py
42
setup.py
@ -1,3 +1,6 @@
|
|||||||
|
#!python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
@ -5,6 +8,12 @@ this_directory = path.abspath(path.dirname(__file__))
|
|||||||
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
|
|
||||||
|
with open('requirements.txt') as f:
|
||||||
|
required = f.read().splitlines()
|
||||||
|
|
||||||
|
# remove descriptions of packages
|
||||||
|
required = [i.split(' ')[0] for i in required]
|
||||||
|
|
||||||
__project__ = "inkycal"
|
__project__ = "inkycal"
|
||||||
__version__ = "2.0.0"
|
__version__ = "2.0.0"
|
||||||
__description__ = "Inkycal is a python3 software for syncing icalendar events, weather and news on selected E-Paper displays"
|
__description__ = "Inkycal is a python3 software for syncing icalendar events, weather and news on selected E-Paper displays"
|
||||||
@ -13,19 +22,7 @@ __author__ = "aceisace"
|
|||||||
__author_email__ = "aceisace63@yahoo.com"
|
__author_email__ = "aceisace63@yahoo.com"
|
||||||
__url__ = "https://github.com/aceisace/Inkycal"
|
__url__ = "https://github.com/aceisace/Inkycal"
|
||||||
|
|
||||||
__install_requires__ = ['pyowm==3.1.1', # weather
|
__install_requires__ = required
|
||||||
'Pillow>=7.1.1' , # imaging
|
|
||||||
'icalendar==4.0.6', # iCalendar parsing
|
|
||||||
'recurring-ical-events==0.1.17b0',# parse recurring events
|
|
||||||
'feedparser==6.0.8', # RSS-feeds
|
|
||||||
# 'numpy>=1.18.2', # image pre-processing -> removed for issues with rpi os
|
|
||||||
'arrow==0.17.0', # time handling
|
|
||||||
'Flask==1.1.2', # webserver
|
|
||||||
'Flask-WTF==0.14.3', # webforms
|
|
||||||
'todoist-python==8.1.2', # todoist api
|
|
||||||
'yfinance>=0.1.62', # yahoo stocks
|
|
||||||
'matplotlib==3.4.2' # plotting
|
|
||||||
]
|
|
||||||
|
|
||||||
__classifiers__ = [
|
__classifiers__ = [
|
||||||
"Development Status :: 4 - Beta",
|
"Development Status :: 4 - Beta",
|
||||||
@ -35,17 +32,16 @@ __classifiers__ = [
|
|||||||
"Programming Language :: Python :: 3 :: Only",
|
"Programming Language :: Python :: 3 :: Only",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = __project__,
|
name=__project__,
|
||||||
version = __version__,
|
version=__version__,
|
||||||
description = __description__,
|
description=__description__,
|
||||||
packages = __packages__,
|
packages=__packages__,
|
||||||
author = __author__,
|
author=__author__,
|
||||||
author_email = __author_email__,
|
author_email=__author_email__,
|
||||||
url = __url__,
|
url=__url__,
|
||||||
install_requires = __install_requires__,
|
install_requires=__install_requires__,
|
||||||
classifiers = __classifiers__,
|
classifiers=__classifiers__,
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user