Skip to content

Commit 4a6f0cd

Browse files
author
Cleverson Sampaio
committed
chore(configs): setup and script adjustment
removing explicit mandatory installs for external requirements file, tweaking the readme in the long description, improving the package script, and adding uninstall.txt to gitignore
1 parent 4251d3e commit 4a6f0cd

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,5 @@ results/
111111

112112
# NPM
113113
node_modules/
114-
package-lock.json
114+
package-lock.json
115+
uninstall.txt

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
"commit": "cz",
88
"install_library": "python setup.py install",
99
"package_library": "python setup.py sdist bdist_wheel",
10-
"uninstall_library": "pip uninstall robotframework-seleniumlibraryextends -y",
10+
"freeze": "pip freeze > uninstall.txt",
11+
"uninstall_library": "npm run freeze && pip uninstall -r uninstall.txt -y",
1112
"clean": "rimraf build dist results src/robotframework_seleniumlibraryextends.egg-info",
12-
"build_prod": "npm run clean && npm run uninstall_library && npm run package_library",
13+
"build_prod": "npm run clean && npm run package_library",
1314
"build_dev": "npm run clean && npm run uninstall_library && npm run install_library"
1415
},
1516
"repository": {

requirements-dev.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Requirements needed when generating releases. See BUILD.rst for details.
2+
wheel >= 0.37.1
3+
twine >= 4.0.1
4+
5+
# Include normal dependencies from requirements.txt. Makes it possible to use
6+
# requirements-dev.txt as a single requirement file in PyCharm and other IDEs.
7+
-r requirements.txt

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
robotframework-seleniumlibrary >= 6.0.0

setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@
99

1010
CURDIR = dirname(abspath(__file__))
1111

12-
with open(join(CURDIR, 'src', 'SeleniumLibraryExtends', 'version.py')) as f:
12+
with open(join(CURDIR, 'src', 'SeleniumLibraryExtends', 'version.py'), encoding="utf8") as f:
1313
VERSION = re.search("\nVERSION = '(.*)'", f.read()).group(1)
1414

15+
with open(join(CURDIR, 'README.md'), encoding="utf8") as f:
16+
DESCRIPTION = f.read()
17+
18+
with open(join(CURDIR, 'requirements.txt'), encoding="utf8") as f:
19+
REQUIREMENTS = f.read().splitlines()
20+
1521
setup(
1622
# Inclui todos os outros arquivos que estão dentro da pasta do seu projeto
1723
include_package_data = True,
@@ -32,9 +38,9 @@
3238
# Diretório do seu pacote
3339
package_dir = {'': 'src'},
3440
# Dependências/outros módulos necessários para o seu pacote funcionar
35-
install_requires = ['robotframework', 'robotframework-seleniumlibrary'],
41+
install_requires = REQUIREMENTS,
3642
# Descrição detalhada do seu pacote
37-
long_description = 'Selenium library keyword extension to support Behavior Driven Development',
43+
long_description = DESCRIPTION,
3844
# Formato da sua descrição detalhada
3945
long_description_content_type = "text/markdown",
4046
# Classificadores permitem que seu pacote seja categorizado com base na funcionalidade

0 commit comments

Comments
 (0)