Skip to content

Commit 19c3787

Browse files
committed
add pyproject file to make it a package and revamp setup
1 parent 1f8e485 commit 19c3787

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ __pycache__
66
src/arguments/__pycache__
77
.vscode/
88
src/dynamic_cli.egg-info/
9+
dynamic_cli.egg-info/
910

1011
# Environments
1112
.env

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,20 @@
22
requires = [
33
"setuptools>=42",
44
"wheel",
5+
"certifi==2020.6.20",
6+
"chardet==3.0.4",
7+
"idna==2.10",
8+
"requests==2.24.0",
9+
"termcolor==1.1.0",
10+
"urllib3==1.25.10",
11+
"rich==9.9.0",
12+
"oauthlib==3.1.0",
13+
"requests-oauthlib==1.3.0",
14+
"colorama==0.4.4",
15+
"configparser==5.0.2",
16+
"crayons==0.4.0",
17+
"selenium==3.141.0",
18+
"webdriver-manager==3.3.0",
19+
"simple-term-menu==1.0.1"
520
]
621
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setuptools.setup(
99
name="dynamic-cli",
10-
version="0.0.1",
10+
version="0.1.0",
1111
author="IOSF Community",
1212
author_email="[email protected]",
1313
description="Search for your questions in stackoverflow",
@@ -18,13 +18,14 @@
1818
"Bug Tracker": "https://github.com/IndianOpenSourceFoundation/dynamic-cli/issues",
1919
},
2020
install_requires=DEPENDENCIES,
21-
package_dir={"": "src"},
22-
packages=setuptools.find_packages(where="src"),
23-
entry_points={"console_scripts": ['dynamic=main:search_flag.search_args']},
21+
package_dir={},
22+
packages=setuptools.find_packages(),
23+
entry_points={"console_scripts": ['dynamic=src.arguments.search:search_args']},
2424
classifiers=[
2525
"Programming Language :: Python :: 3",
2626
"License :: OSI Approved :: MIT License",
2727
"Operating System :: OS Independent",
2828
],
2929
python_requires='>=3.6',
30+
zip_safe = False,
3031
)

0 commit comments

Comments
 (0)