-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
14 additions
and
17 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
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,23 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Copyright 2012 splinter authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
import os | ||
|
||
from setuptools import setup, find_packages | ||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
|
||
def read(filename: str) -> str: | ||
path = os.path.join(os.path.dirname(__file__), filename) | ||
with open(path, 'r') as f: | ||
with open(path, "r") as f: | ||
return f.read() | ||
|
||
|
||
def get_version_data() -> dict: | ||
data = {} | ||
|
||
path = os.path.join(os.path.dirname(__file__), 'splinter', 'version.py') | ||
path = os.path.join(os.path.dirname(__file__), "splinter", "version.py") | ||
|
||
with open(path) as fp: | ||
exec(fp.read(), data) | ||
|
@@ -30,18 +30,21 @@ def get_version_data() -> dict: | |
|
||
setup( | ||
name="splinter", | ||
version=version_data['__version__'], | ||
version=version_data["__version__"], | ||
url="https://github.com/cobrateam/splinter", | ||
description="browser abstraction for web acceptance testing", | ||
long_description=read('README.rst'), | ||
long_description=read("README.rst"), | ||
author="CobraTeam", | ||
author_email="[email protected]", | ||
license="BSD", | ||
classifiers=[ | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3", | ||
] | ||
+ [("Programming Language :: Python :: %s" % x) for x in "3.7 3.8 3.9 3.10 3.11".split()], | ||
+ [ | ||
("Programming Language :: Python :: %s" % x) | ||
for x in "3.8 3.9 3.10 3.11".split() | ||
], | ||
project_urls={ | ||
"Documentation": "https://splinter.readthedocs.io/", | ||
"Changelog": "https://github.com/cobrateam/splinter/tree/master/docs/news", | ||
|
@@ -50,9 +53,7 @@ def get_version_data() -> dict: | |
}, | ||
packages=find_packages(exclude=["docs", "tests", "samples"]), | ||
include_package_data=True, | ||
install_requires=[ | ||
"urllib3 >=1.26.14,<3.0" | ||
], | ||
install_requires=["urllib3 >=1.26.14,<3.0"], | ||
extras_require={ | ||
"zope.testbrowser": ["zope.testbrowser>=6.0", "lxml>=4.2.4", "cssselect"], | ||
"django": ["Django>=2.0.6", "lxml>=4.2.4", "cssselect"], | ||
|