Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(python): clean up python deps to add anyio #8228

Merged
merged 10 commits into from
Aug 26, 2021
Prev Previous commit
Next Next commit
fixup: revert unnecessary formatting changes
mcous committed Aug 10, 2021

Verified

This commit was signed with the committer’s verified signature.
mcous Michael Cousins
commit 5b1339e7ed79efdba81d2a5e6240dd3fd977c2e7
59 changes: 29 additions & 30 deletions api/setup.py
Original file line number Diff line number Diff line change
@@ -8,51 +8,49 @@
from setuptools import setup, find_packages

HERE = os.path.abspath(os.path.dirname(__file__))
sys.path.append(os.path.join(HERE, "..", "scripts"))
sys.path.append(os.path.join(HERE, '..', 'scripts'))

from python_build_utils import normalize_version # noqa: E402

# make stdout blocking since Travis sets it to nonblocking
if os.name == "posix":
if os.name == 'posix':
import fcntl

flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL)
fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags & ~os.O_NONBLOCK)


def get_version():
buildno = os.getenv("BUILD_NUMBER")
buildno = os.getenv('BUILD_NUMBER')
if buildno:
normalize_opts = {"extra_tag": buildno}
normalize_opts = {'extra_tag': buildno}
else:
normalize_opts = {}
return normalize_version("api", **normalize_opts)
return normalize_version('api', **normalize_opts)


VERSION = get_version()

DISTNAME = "opentrons"
LICENSE = "Apache 2.0"
DISTNAME = 'opentrons'
LICENSE = 'Apache 2.0'
AUTHOR = "Opentrons"
EMAIL = "[email protected]"
URL = "https://github.com/OpenTrons/opentrons"
DOWNLOAD_URL = ""
DOWNLOAD_URL = ''
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering",
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering',
]
KEYWORDS = ["robots", "protocols", "synbio", "pcr", "automation", "lab"]
DESCRIPTION = (
"The Opentrons API is a simple framework designed to make "
"writing automated biology lab protocols easy."
)
PACKAGES = find_packages(where="src")
"writing automated biology lab protocols easy.")
PACKAGES = find_packages(where='src')
INSTALL_REQUIRES = [
f"opentrons-shared-data=={VERSION}",
"aionotify==0.2.0",
@@ -77,7 +75,7 @@ def read(*parts):

if __name__ == "__main__":
setup(
python_requires=">=3.7",
python_requires='>=3.7',
name=DISTNAME,
description=DESCRIPTION,
license=LICENSE,
@@ -93,17 +91,18 @@ def read(*parts):
classifiers=CLASSIFIERS,
install_requires=INSTALL_REQUIRES,
include_package_data=True,
package_dir={"": "src"},
package_data={"opentrons": ["py.typed", "package.json"]},
package_dir={'': 'src'},
package_data={'opentrons': ['py.typed', 'package.json']},
entry_points={
"console_scripts": [
"opentrons_simulate = opentrons.simulate:main",
"opentrons_execute = opentrons.execute:main",
'console_scripts': [
'opentrons_simulate = opentrons.simulate:main',
'opentrons_execute = opentrons.execute:main',
]
},
project_urls={
"opentrons.com": "https://www.opentrons.com",
"Source Code On Github": "https://github.com/Opentrons/opentrons/tree/edge/api", # noqa: E501
"Documentation": "https://docs.opentrons.com",
},
'opentrons.com': "https://www.opentrons.com",
'Source Code On Github':
"https://github.com/Opentrons/opentrons/tree/edge/api",
'Documentation': "https://docs.opentrons.com"
}
)