Skip to content

Commit

Permalink
fix(akande): ✨ flake8 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Feb 10, 2024
1 parent 4316dd5 commit cd87cab
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
29 changes: 15 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,27 @@
author="Sebastian Rousseau",
author_email="sebastian.rousseau@gmail.com",
description="""
Akande: A versatile voice assistant powered by OpenAI's GPT-3. It offers both voice and text interaction,
leveraging advanced speech recognition and text-to-speech capabilities for a wide range of tasks.
Akande: A versatile voice assistant powered by OpenAI's GPT-3. It
offers both voice and text interaction, leveraging advanced speech
recognition and text-to-speech capabilities for a wide range of tasks.
""",
long_description=long_description,
long_description_content_type="text/markdown",
license="Apache Software License",
name='akande',
version='0.0.1',
url='https://github.com/sebastienrousseau/akande',
name="akande",
version="0.0.1",
url="https://github.com/sebastienrousseau/akande",
packages=find_packages(),
install_requires=requirements,
python_requires='>=3.7',
python_requires=">=3.7",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)
16 changes: 10 additions & 6 deletions sync_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@
from pathlib import Path

# Path to your setup.cfg and requirements.txt files
setup_cfg_path = Path('setup.cfg')
requirements_txt_path = Path('requirements.txt')
setup_cfg_path = Path("setup.cfg")
requirements_txt_path = Path("requirements.txt")

# Read requirements.txt and extract the packages
with requirements_txt_path.open('r') as file:
with requirements_txt_path.open("r") as file:
requirements = file.readlines()
requirements = [req.strip() for req in requirements if req.strip() and not req.startswith('#')]
requirements = [
req.strip()
for req in requirements
if req.strip() and not req.startswith("#")
]

# Load the existing setup.cfg
config = ConfigParser()
config.read(setup_cfg_path)

# Update install_requires in setup.cfg
config['options']['install_requires'] = '\n '.join(requirements)
config["options"]["install_requires"] = "\n ".join(requirements)

# Save the updated setup.cfg
with setup_cfg_path.open('w') as configfile:
with setup_cfg_path.open("w") as configfile:
config.write(configfile)

0 comments on commit cd87cab

Please sign in to comment.