-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Prayag2/pkg_maintenance
Package maintenance
- Loading branch information
Showing
14 changed files
with
88 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[MASTER] | ||
disable=broad-except, too-many-locals | ||
disable=broad-except, too-many-locals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,6 @@ | |
</p> | ||
|
||
--- | ||
## Dependencies | ||
### PyYaml | ||
`pip install pyyaml` | ||
|
||
## Installation | ||
Install from PyPI | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PyYaml==5.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
aiohttp>=3.7.4 | ||
aiohttp_cors>=0.7.0 | ||
black>=20.8b1 | ||
pylint>=2.7.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,60 @@ | ||
""" | ||
Setup module | ||
""" | ||
"""Setup module""" | ||
|
||
from pathlib import Path | ||
from typing import List | ||
|
||
from setuptools import setup, find_packages | ||
|
||
|
||
def read_desc(): | ||
"""Reads the README | ||
def _read_desc() -> str: | ||
"""Reads the README.md. | ||
Returns: | ||
str: Contents of README.md file. | ||
""" | ||
with open('README.md', 'r') as desc: | ||
with open("README.md", "r") as desc: | ||
return desc.read() | ||
|
||
|
||
def _read_reqs(path: Path) -> List[str]: | ||
"""Reads a pip requirement file. | ||
Args: | ||
path (Path): Path to pip requirements file. | ||
Returns: | ||
:type: list of str: List of dependency identifiers. | ||
""" | ||
with open(path, "r") as file: | ||
return file.readlines() | ||
|
||
|
||
# Package requirements | ||
_REQUIREMENTS: List[str] = _read_reqs(Path("requirements.txt")) | ||
_REQUIREMENTS_DEV: List[str] = _read_reqs(Path("requirements_dev.txt")) | ||
|
||
setup( | ||
name="Konsave", | ||
use_scm_version=True, | ||
setup_requires=['setuptools_scm'], | ||
setup_requires=["setuptools_scm"], | ||
author="Prayag Jain", | ||
author_email="prayagjain2@gmail.com", | ||
description="A program that lets you save your Plasma configuration in an instant!", | ||
long_description=read_desc(), | ||
long_description=_read_desc(), | ||
long_description_content_type="text/markdown", | ||
url="https://www.github.com/prayag2/konsave/", | ||
packages=find_packages(), | ||
package_data={'config': ['conf.yaml']}, | ||
package_data={"config": ["conf.yaml"]}, | ||
include_package_data=True, | ||
python_requires='>=3.6', | ||
install_requires=['PyYaml'], | ||
python_requires=">=3.6", | ||
install_requires=_REQUIREMENTS, | ||
extras_require={"dev": _REQUIREMENTS_DEV}, | ||
classifiers=[ | ||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", | ||
"Operating System :: POSIX", | ||
"Environment :: Console", | ||
"Intended Audience :: End Users/Desktop", | ||
'Programming Language :: Python' | ||
"Programming Language :: Python", | ||
], | ||
entry_points={ | ||
'console_scripts': [ | ||
"konsave = konsave.__main__:main" | ||
] | ||
} | ||
entry_points={"console_scripts": ["konsave = konsave.__main__:main"]}, | ||
) |