Git Product home page Git Product logo

Comments (4)

boakley avatar boakley commented on August 19, 2024

from robotframework-pageobjectlibrary.

darrylwhiting avatar darrylwhiting commented on August 19, 2024

This worked for me (tested only on Python 3.6.4):

Comment out the following line in setup.py:

execfile('PageObjectLibrary/version.py')

and replace with the below.

exec(open('PageObjectLibrary/version.py').read())

if you need setup.py to be compatible with both 2.x and 3.x, add the following to setup.py (tested only on Python 3.6.4):

# N.B. to push a new version to PyPi, update the version number
# in rfhub/version.py and then run 'python setup.py sdist upload'
import sys
from setuptools import setup

if sys.version_info[0] > 2:
	exec(open('PageObjectLibrary/version.py').read())	
else:	
	execfile('PageObjectLibrary/version.py')

setup(
    name             = 'robotframework-pageobjectlibrary',
    version          = __version__,
    author           = 'Bryan Oakley',
    author_email     = '[email protected]',
    url              = 'https://github.com/boakley/robotframework-pageobjectlibrary/',
    keywords         = 'robotframework',
    license          = 'Apache License 2.0',
    description      = 'RobotFramework library that implements the Page Object pattern',
    long_description = open('README.md', encoding='latin-1').read(),
    zip_safe         = True,
    include_package_data = True,
    install_requires = ['robotframework', 'robotframework-selenium2library', 'selenium', 'six'],
    classifiers      = [
        "Development Status :: 4 - Beta",
        "License :: OSI Approved :: Apache Software License",
        "Operating System :: OS Independent",
        "Framework :: Robot Framework",
        "Programming Language :: Python",
        "Topic :: Software Development :: Testing",
        "Topic :: Software Development :: Quality Assurance",
        "Intended Audience :: Developers",
        ],
    packages         =[
        'PageObjectLibrary',
    ],
    scripts          =[], 
)

from robotframework-pageobjectlibrary.

itsanjan avatar itsanjan commented on August 19, 2024

Does not work for python 3.7.1
`Installing robotframework-pageobjectlibrary…
Collecting robotframework-pageobjectlibrary
Downloading https://files.pythonhosted.org/packages/88/21/fa58016bae1a0bbe693ed745d188ef3b01c75ad3b575c9b7cd540522da07/robotframework-pageobjectlibrary-0.1.7.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\kumanz\AppData\Local\Temp\pip-install-dcv_diio\robotframework-pageobjectlibrary\setup.py", line 5, in
execfile('PageObjectLibrary/version.py')
NameError: name 'execfile' is not defined

----------------------------------------

Error: An error occurred while installing robotframework-pageobjectlibrary!
Command "python setup.py egg_info" failed with error code 1 in C:\Users\kumanz\AppData\Local\Temp\pip-install-dcv_diio\robotframework-pageobjectlibrary`

from robotframework-pageobjectlibrary.

darrylwhiting avatar darrylwhiting commented on August 19, 2024

@itsanjan, the corrected "setup.py" is in a fork by @andrewordiales. You can manually add the changes I suggested, or go to @andrewordiales Github page: Fork

from robotframework-pageobjectlibrary.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.